Go to the source code of this file.
|
| enum | mvumi_qc_result { MV_QUEUE_COMMAND_RESULT_SENT = 0,
MV_QUEUE_COMMAND_RESULT_NO_RESOURCE
} |
| |
| enum | {
DRBL_HANDSHAKE = 1 << 0,
DRBL_SOFT_RESET = 1 << 1,
DRBL_BUS_CHANGE = 1 << 2,
DRBL_EVENT_NOTIFY = 1 << 3,
DRBL_MU_RESET = 1 << 4,
DRBL_HANDSHAKE_ISR = DRBL_HANDSHAKE,
CMD_FLAG_NON_DATA = 1 << 0,
CMD_FLAG_DMA = 1 << 1,
CMD_FLAG_PIO = 1 << 2,
CMD_FLAG_DATA_IN = 1 << 3,
CMD_FLAG_DATA_OUT = 1 << 4,
CMD_FLAG_PRDT_IN_HOST = 1 << 5
} |
| |
| enum | resource_type { RESOURCE_CACHED_MEMORY = 0,
RESOURCE_UNCACHED_MEMORY
} |
| |
| #define APICDB0_EVENT 0xF4 |
| #define APICDB1_EVENT_GETEVENT 0 |
| #define APICDB1_HOST_GETEVENT 1 |
| #define CDB_CORE_MODULE 0x1 |
| #define CDB_CORE_SHUTDOWN 0xB |
| #define CL_FUN_SCSI_CMD 0x1 |
| #define CL_RSP_FLAG_NODATA 0x0 |
| #define CL_RSP_FLAG_SENSEDATA 0x1 |
| #define FW_STATE_HANDSHAKING 2 |
| #define FW_STATE_STARTED 3 |
| #define FW_STATE_STARTING 1 |
| #define HANDSHAKE_DONESTATE 0x55AAA55AL |
| #define HANDSHAKE_READYSTATE 0x55AA5AA5L |
| #define HANDSHAKE_SIGNATURE 0x5A5A5A5AL |
| #define HS_CAPABILITY_NEW_PAGE_IO_DEPTH_DEF (1U << 14) |
| #define HS_CAPABILITY_SUPPORT_COMPACT_SG (1U << 4) |
| #define HS_CAPABILITY_SUPPORT_DYN_SRC (1U << 6) |
| #define HS_CAPABILITY_SUPPORT_PRD_HOST (1U << 5) |
| #define HS_GET_STATE |
( |
|
a | ) |
(a & 0xFFFF) |
| #define HS_GET_STATUS |
( |
|
a | ) |
((a & 0xFFFF0000) >> 16) |
| #define HS_PAGE_CL_INFO 0x4 |
| #define HS_PAGE_FIRM_CAP 0x1 |
| #define HS_PAGE_FIRM_CTL 0x3 |
| #define HS_PAGE_HOST_INFO 0x2 |
| #define HS_PAGE_TOTAL 0x5 |
| #define HS_PAGE_VERIFY_SIZE 128 |
| #define HS_S_QUERY_PAGE 4 |
| #define HS_SET_STATE |
( |
|
a, |
|
|
|
b |
|
) |
| (a |= (b & 0xFFFF)) |
| #define HS_SET_STATUS |
( |
|
a, |
|
|
|
b |
|
) |
| (a |= ((b & 0xFFFF) << 16)) |
| #define HS_STATUS_INVALID 3 |
| #define MAX_BASE_ADDRESS 6 |
| #define MAX_EVENTS_RETURNED 6 |
| #define MV_DRIVER_NAME "mvumi" |
| #define MVUMI_FW_ALLOC (1U << 2) |
| #define MVUMI_FW_ATTACH (1U << 1) |
| #define MVUMI_FW_BUSY (1U << 0) |
| #define MVUMI_INQUIRY_LENGTH 44 |
| #define MVUMI_INQUIRY_UUID_LEN 8 |
| #define MVUMI_INQUIRY_UUID_OFF 36 |
| #define MVUMI_INTERNAL_CMD_WAIT_TIME 45 |
| #define MVUMI_MAX_SG_ENTRY 32 |
| #define PCI_DEVICE_ID_MARVELL_MV9143 0x9143 |
| #define PCI_DEVICE_ID_MARVELL_MV9580 0x9580 |
| #define PCI_VENDOR_ID_MARVELL_2 0x1b4b |
| #define REQ_STATUS_PENDING 0x80 |
| #define SCSI_CMD_MARVELL_SPECIFIC 0xE1 |
| #define SET_COMPACT_SGD_SIZE |
( |
|
sgd, |
|
|
|
sz |
|
) |
| |
| #define SGD_EOT (1L << 27) |
| #define SGD_EOT_CP (1L << 22) |
| #define sgd_getsz |
( |
|
_mhba, |
|
|
|
sgd, |
|
|
|
sz |
|
) |
| |
Value:do { \
else \
} while (0)
Definition at line 207 of file mvumi.h.
| #define sgd_inc |
( |
|
_mhba, |
|
|
|
sgd |
|
) |
| |
Value:do { \
else \
sgd = (
struct mvumi_sgl *)(((
unsigned char *) (
sgd)) + 16); \
} while (0)
Definition at line 221 of file mvumi.h.
| #define sgd_setsz |
( |
|
_mhba, |
|
|
|
sgd, |
|
|
|
sz |
|
) |
| |
Value:do { \
SET_COMPACT_SGD_SIZE(
sgd, sz); \
else \
} while (0)
Definition at line 214 of file mvumi.h.
- Enumerator:
| DRBL_HANDSHAKE |
|
| DRBL_SOFT_RESET |
|
| DRBL_BUS_CHANGE |
|
| DRBL_EVENT_NOTIFY |
|
| DRBL_MU_RESET |
|
| DRBL_HANDSHAKE_ISR |
|
| CMD_FLAG_NON_DATA |
|
| CMD_FLAG_DMA |
|
| CMD_FLAG_PIO |
|
| CMD_FLAG_DATA_IN |
|
| CMD_FLAG_DATA_OUT |
|
| CMD_FLAG_PRDT_IN_HOST |
|
Definition at line 117 of file mvumi.h.
- Enumerator:
| MV_QUEUE_COMMAND_RESULT_SENT |
|
| MV_QUEUE_COMMAND_RESULT_NO_RESOURCE |
|
Definition at line 46 of file mvumi.h.
- Enumerator:
| RESOURCE_CACHED_MEMORY |
|
| RESOURCE_UNCACHED_MEMORY |
|
Definition at line 237 of file mvumi.h.