46#ifndef REQUEST_FORMAT_H_
47#define REQUEST_FORMAT_H_
51#define REQ_TYPE_SLICE 0x0
52#define REQ_TYPE_NAND 0x1
53#define REQ_TYPE_NVME_DMA 0x2
60#define REQ_QUEUE_TYPE_NONE 0x0
61#define REQ_QUEUE_TYPE_FREE 0x1
62#define REQ_QUEUE_TYPE_SLICE 0x2
63#define REQ_QUEUE_TYPE_BLOCKED_BY_BUF_DEP 0x3
64#define REQ_QUEUE_TYPE_BLOCKED_BY_ROW_ADDR_DEP 0x4
65#define REQ_QUEUE_TYPE_NVME_DMA 0x5
66#define REQ_QUEUE_TYPE_NAND 0x6
72#define REQ_CODE_WRITE 0x00
73#define REQ_CODE_READ 0x08
74#define REQ_CODE_READ_TRANSFER 0x09
75#define REQ_CODE_ERASE 0x0C
76#define REQ_CODE_RESET 0x0D
77#define REQ_CODE_SET_FEATURE 0x0E
78#define REQ_CODE_FLUSH 0x0F
79#define REQ_CODE_RxDMA 0x10
80#define REQ_CODE_TxDMA 0x20
82#define REQ_CODE_OCSSD_PHY_TYPE_BASE 0xA0
83#define REQ_CODE_OCSSD_PHY_WRITE 0xA0
84#define REQ_CODE_OCSSD_PHY_READ 0xA8
85#define REQ_CODE_OCSSD_PHY_ERASE 0xAC
101#define REQ_OPT_DATA_BUF_ENTRY 0
102#define REQ_OPT_DATA_BUF_TEMP_ENTRY 1
103#define REQ_OPT_DATA_BUF_ADDR 2
104#define REQ_OPT_DATA_BUF_NONE 3
106#define REQ_OPT_NAND_ADDR_VSA 0
107#define REQ_OPT_NAND_ADDR_PHY_ORG 1
109#define REQ_OPT_NAND_ECC_OFF 0
110#define REQ_OPT_NAND_ECC_ON 1
112#define REQ_OPT_NAND_ECC_WARNING_OFF 0
113#define REQ_OPT_NAND_ECC_WARNING_ON 1
115#define REQ_OPT_WRAPPING_NONE 0
116#define REQ_OPT_WRAPPING_REQ 1
119#define REQ_OPT_ROW_ADDR_DEPENDENCY_NONE 0
121#define REQ_OPT_ROW_ADDR_DEPENDENCY_CHECK 1
142#define REQ_OPT_BLOCK_SPACE_MAIN 0
143#define REQ_OPT_BLOCK_SPACE_TOTAL 1
145#define LOGICAL_SLICE_ADDR_NONE 0xffffffff
The real address or entry index of the request.
unsigned int phyReserved1
unsigned int phyReserved0
unsigned int physicalBlock
unsigned int programmedPageCnt
unsigned int physicalPage
unsigned int virtualSliceAddr
The structure that manages the LBA and LSA info needed by NVMe DMA requests.
unsigned int numOfNvmeBlock
unsigned int nvmeBlockOffset
unsigned int nandEccWarning
unsigned int dataBufFormat
Type of address stored in the SSD_REQ_FORMAT::dataBufInfo.
unsigned int nandAddr
Type of address stored in the SSD_REQ_FORMAT::nandInfo.
unsigned int rowAddrDependencyCheck