drm/panel: simple: add Multi-Inno Technology MI0700A2T-30
[drm/drm-misc.git] / drivers / scsi / fnic / vnic_resource.h
blob3d260b831fc515647bb4ddf7cf5c50bdd9aee915
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright 2008 Cisco Systems, Inc. All rights reserved.
4 * Copyright 2007 Nuova Systems, Inc. All rights reserved.
5 */
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 */
13 enum vnic_res_type {
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 */
18 RES_TYPE_RSVD1,
19 RES_TYPE_NIC_CFG, /* Enet NIC config registers */
20 RES_TYPE_RSVD2,
21 RES_TYPE_RSVD3,
22 RES_TYPE_RSVD4,
23 RES_TYPE_RSVD5,
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 */
28 RES_TYPE_RSVD6,
29 RES_TYPE_RSVD7,
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 {
44 u32 magic;
45 u32 version;
48 struct vnic_resource {
49 u8 type;
50 u8 bar;
51 u8 pad[2];
52 u32 bar_offset;
53 u32 count;
56 #endif /* _VNIC_RESOURCE_H_ */