OvmfPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
blkif.h File Reference

Data Structures

struct  blkif_request_segment
 
struct  blkif_request
 
struct  blkif_request_discard
 
struct  blkif_request_indirect
 
struct  blkif_response
 

Macros

#define blkif_vdev_t   UINT16
 
#define blkif_sector_t   UINT64
 
#define BLKIF_OP_READ   0
 
#define BLKIF_OP_WRITE   1
 
#define BLKIF_OP_WRITE_BARRIER   2
 
#define BLKIF_OP_FLUSH_DISKCACHE   3
 
#define BLKIF_OP_RESERVED_1   4
 
#define BLKIF_OP_DISCARD   5
 
#define BLKIF_OP_INDIRECT   6
 
#define BLKIF_MAX_SEGMENTS_PER_REQUEST   11
 
#define BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST   8
 
#define BLKIF_DISCARD_SECURE   (1<<0) /* ignored if discard-secure=0 */
 
#define BLKIF_RSP_EOPNOTSUPP   -2
 
#define BLKIF_RSP_ERROR   -1
 
#define BLKIF_RSP_OKAY   0
 
#define VDISK_CDROM   0x1
 
#define VDISK_REMOVABLE   0x2
 
#define VDISK_READONLY   0x4
 

Typedefs

typedef struct blkif_request blkif_request_t
 
typedef struct
blkif_request_discard 
blkif_request_discard_t
 
typedef struct
blkif_request_indirect 
blkif_request_indirect_t
 
typedef struct blkif_response blkif_response_t
 

Functions

 DEFINE_RING_TYPES (blkif, struct blkif_request, struct blkif_response)
 

Macro Definition Documentation

#define BLKIF_DISCARD_SECURE   (1<<0) /* ignored if discard-secure=0 */
#define BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST   8
#define BLKIF_MAX_SEGMENTS_PER_REQUEST   11
#define BLKIF_OP_DISCARD   5
#define BLKIF_OP_FLUSH_DISKCACHE   3
#define BLKIF_OP_INDIRECT   6
#define BLKIF_OP_READ   0
#define BLKIF_OP_RESERVED_1   4
#define BLKIF_OP_WRITE   1
#define BLKIF_OP_WRITE_BARRIER   2
#define BLKIF_RSP_EOPNOTSUPP   -2
#define BLKIF_RSP_ERROR   -1
#define BLKIF_RSP_OKAY   0
#define blkif_sector_t   UINT64
#define blkif_vdev_t   UINT16
#define VDISK_CDROM   0x1
#define VDISK_READONLY   0x4
#define VDISK_REMOVABLE   0x2

Typedef Documentation

Function Documentation

DEFINE_RING_TYPES ( blkif  ,
struct blkif_request  ,
struct blkif_response   
)