#include "../nvme.h"
结构体 | |
struct | Oc12GetL2PTbl |
struct | Oc12BbtGet |
struct | Oc12BbtSet |
struct | Oc12RwCmd |
struct | Oc12DmCmd |
struct | Oc12IdAddrFormat |
struct | Oc12AddrF |
struct | Oc12IdGroup |
struct | Oc12IdCtrl |
struct | Oc12Bbt |
struct | Oc12Params |
struct | Oc12Ctrl |
struct | oc12_metadata_format |
struct | oc12_tgt_meta |
struct | AddrBucket |
宏定义 | |
#define | OC12_MAX_GRPS_PR_IDENT (20) |
#define | OC12_FEAT_EXT_START 64 |
#define | OC12_FEAT_EXT_END 127 |
#define | OC12_PBA_UNMAPPED UINT64_MAX |
#define | OC12_LBA_UNMAPPED UINT64_MAX |
类型定义 | |
typedef struct Oc12GetL2PTbl | Oc12GetL2PTbl |
typedef struct Oc12BbtGet | Oc12BbtGet |
typedef struct Oc12BbtSet | Oc12BbtSet |
typedef struct Oc12RwCmd | Oc12RwCmd |
typedef struct Oc12DmCmd | Oc12DmCmd |
typedef struct Oc12IdAddrFormat | Oc12IdAddrFormat |
typedef struct Oc12AddrF | Oc12AddrF |
typedef struct Oc12IdGroup | Oc12IdGroup |
typedef struct Oc12IdCtrl | Oc12IdCtrl |
typedef struct Oc12Bbt | Oc12Bbt |
typedef struct Oc12Params | Oc12Params |
typedef struct Oc12Ctrl | Oc12Ctrl |
typedef struct AddrBucket | AddrBucket |
枚举 | |
enum | Oc12AdminCommands { OC12_ADM_CMD_IDENTITY = 0xe2, OC12_ADM_CMD_GET_L2P_TBL = 0xea, OC12_ADM_CMD_GET_BB_TBL = 0xf2, OC12_ADM_CMD_SET_BB_TBL = 0xf1 } |
enum | Oc12DmCommands { OC12_CMD_WRITE = 0x91, OC12_CMD_READ = 0x92, OC12_CMD_ERASE = 0x90 } |
enum | Oc12MetaState { OC12_SEC_UNKNOWN = 0x0, OC12_SEC_WRITTEN = 0xAC, OC12_SEC_ERASED = 0xDC } |
enum | Oc12Pmode { Oc12PMODE_SNGL = 0x0, Oc12PMODE_DUAL = 0x1, Oc12PMODE_QUAD = 0x2 } |
enum | Oc12Responsibility { Oc12RSP_L2P = 1 << 0, Oc12RSP_ECC = 1 << 1 } |
函数 | |
struct oc12_metadata_format | __attribute__ ((__packed__)) |
static void | oc12_check_size (void) |
变量 | |
uint32_t | state |
uint64_t | rsv [2] |
uint64_t | lba |
uint64_t | rsvd |
#define OC12_FEAT_EXT_END 127 |
#define OC12_FEAT_EXT_START 64 |
#define OC12_LBA_UNMAPPED UINT64_MAX |
#define OC12_MAX_GRPS_PR_IDENT (20) |
#define OC12_PBA_UNMAPPED UINT64_MAX |
typedef struct AddrBucket AddrBucket |
typedef struct Oc12BbtGet Oc12BbtGet |
typedef struct Oc12BbtSet Oc12BbtSet |
typedef struct Oc12GetL2PTbl Oc12GetL2PTbl |
typedef struct Oc12IdAddrFormat Oc12IdAddrFormat |
typedef struct Oc12IdCtrl Oc12IdCtrl |
typedef struct Oc12IdGroup Oc12IdGroup |
typedef struct Oc12Params Oc12Params |
enum Oc12AdminCommands |
enum Oc12DmCommands |
enum Oc12MetaState |
enum Oc12Pmode |
enum Oc12Responsibility |
struct oc12_tgt_meta __attribute__ | ( | (__packed__) | ) |
|
inlinestatic |
uint64_t lba |
uint64_t rsv[2] |
uint64_t rsvd |
uint32_t state |