1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright 2008 Cisco Systems, Inc. All rights reserved.
4 * Copyright 2007 Nuova Systems, Inc. All rights reserved.
6 #ifndef _VNIC_RESOURCE_H_
7 #define _VNIC_RESOURCE_H_
9 #define VNIC_RES_MAGIC 0x766E6963L /* 'vnic' */
10 #define VNIC_RES_VERSION 0x00000000L
12 /* vNIC resource types */
14 RES_TYPE_EOL
, /* End-of-list */
15 RES_TYPE_WQ
, /* Work queues */
16 RES_TYPE_RQ
, /* Receive queues */
17 RES_TYPE_CQ
, /* Completion queues */
19 RES_TYPE_NIC_CFG
, /* Enet NIC config registers */
24 RES_TYPE_INTR_CTRL
, /* Interrupt ctrl table */
25 RES_TYPE_INTR_TABLE
, /* MSI/MSI-X Interrupt table */
26 RES_TYPE_INTR_PBA
, /* MSI/MSI-X PBA table */
27 RES_TYPE_INTR_PBA_LEGACY
, /* Legacy intr status */
30 RES_TYPE_DEVCMD
, /* Device command region */
31 RES_TYPE_PASS_THRU_PAGE
, /* Pass-thru page */
32 RES_TYPE_SUBVNIC
, /* subvnic resource type */
33 RES_TYPE_MQ_WQ
, /* MQ Work queues */
34 RES_TYPE_MQ_RQ
, /* MQ Receive queues */
35 RES_TYPE_MQ_CQ
, /* MQ Completion queues */
36 RES_TYPE_DEPRECATED1
, /* Old version of devcmd 2 */
37 RES_TYPE_DEPRECATED2
, /* Old version of devcmd 2 */
38 RES_TYPE_DEVCMD2
, /* Device control region */
40 RES_TYPE_MAX
, /* Count of resource types */
43 struct vnic_resource_header
{
48 struct vnic_resource
{
56 #endif /* _VNIC_RESOURCE_H_ */