Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
blkif.h File Reference
#include <xen/interface/io/ring.h>
#include <xen/interface/grant_table.h>

Go to the source code of this file.

Data Structures

struct  blkif_request_rw
 
struct  blkif_request_rw::blkif_request_segment
 
struct  blkif_request_segment
 
struct  blkif_request_discard
 
struct  blkif_request
 
struct  blkif_response
 

Macros

#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_DISCARD   5
 
#define BLKIF_MAX_SEGMENTS_PER_REQUEST   11
 
#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
 
#define XEN_IDE0_MAJOR   3
 
#define XEN_IDE1_MAJOR   22
 
#define XEN_SCSI_DISK0_MAJOR   8
 
#define XEN_SCSI_DISK1_MAJOR   65
 
#define XEN_SCSI_DISK2_MAJOR   66
 
#define XEN_SCSI_DISK3_MAJOR   67
 
#define XEN_SCSI_DISK4_MAJOR   68
 
#define XEN_SCSI_DISK5_MAJOR   69
 
#define XEN_SCSI_DISK6_MAJOR   70
 
#define XEN_SCSI_DISK7_MAJOR   71
 
#define XEN_SCSI_DISK8_MAJOR   128
 
#define XEN_SCSI_DISK9_MAJOR   129
 
#define XEN_SCSI_DISK10_MAJOR   130
 
#define XEN_SCSI_DISK11_MAJOR   131
 
#define XEN_SCSI_DISK12_MAJOR   132
 
#define XEN_SCSI_DISK13_MAJOR   133
 
#define XEN_SCSI_DISK14_MAJOR   134
 
#define XEN_SCSI_DISK15_MAJOR   135
 

Typedefs

typedef uint16_t blkif_vdev_t
 
typedef uint64_t blkif_sector_t
 

Functions

struct blkif_request_rw __attribute__ ((__packed__))
 
 DEFINE_RING_TYPES (blkif, struct blkif_request, struct blkif_response)
 

Variables

uint8_t nr_segments
 
blkif_vdev_t handle
 
uint64_t id
 
blkif_sector_t sector_number
 
struct blkif_request_segment seg [BLKIF_MAX_SEGMENTS_PER_REQUEST]
 
uint8_t flag
 
blkif_vdev_t _pad1
 
uint64_t nr_sectors
 
uint8_t _pad3
 
uint8_t operation
 
union {
   struct blkif_request_rw   rw
 
   struct blkif_request_discard   discard
 
u
 
struct blkif_response __attribute__
 

Macro Definition Documentation

#define BLKIF_DISCARD_SECURE   (1<<0) /* ignored if discard-secure=0 */

Definition at line 141 of file blkif.h.

#define BLKIF_MAX_SEGMENTS_PER_REQUEST   11

Definition at line 110 of file blkif.h.

#define BLKIF_OP_DISCARD   5

Definition at line 103 of file blkif.h.

#define BLKIF_OP_FLUSH_DISKCACHE   3

Definition at line 59 of file blkif.h.

#define BLKIF_OP_READ   0

Definition at line 33 of file blkif.h.

#define BLKIF_OP_WRITE   1

Definition at line 34 of file blkif.h.

#define BLKIF_OP_WRITE_BARRIER   2

Definition at line 45 of file blkif.h.

#define BLKIF_RSP_EOPNOTSUPP   -2

Definition at line 159 of file blkif.h.

#define BLKIF_RSP_ERROR   -1

Definition at line 161 of file blkif.h.

#define BLKIF_RSP_OKAY   0

Definition at line 163 of file blkif.h.

#define VDISK_CDROM   0x1

Definition at line 171 of file blkif.h.

#define VDISK_READONLY   0x4

Definition at line 173 of file blkif.h.

#define VDISK_REMOVABLE   0x2

Definition at line 172 of file blkif.h.

#define XEN_IDE0_MAJOR   3

Definition at line 177 of file blkif.h.

#define XEN_IDE1_MAJOR   22

Definition at line 178 of file blkif.h.

#define XEN_SCSI_DISK0_MAJOR   8

Definition at line 179 of file blkif.h.

#define XEN_SCSI_DISK10_MAJOR   130

Definition at line 189 of file blkif.h.

#define XEN_SCSI_DISK11_MAJOR   131

Definition at line 190 of file blkif.h.

#define XEN_SCSI_DISK12_MAJOR   132

Definition at line 191 of file blkif.h.

#define XEN_SCSI_DISK13_MAJOR   133

Definition at line 192 of file blkif.h.

#define XEN_SCSI_DISK14_MAJOR   134

Definition at line 193 of file blkif.h.

#define XEN_SCSI_DISK15_MAJOR   135

Definition at line 194 of file blkif.h.

#define XEN_SCSI_DISK1_MAJOR   65

Definition at line 180 of file blkif.h.

#define XEN_SCSI_DISK2_MAJOR   66

Definition at line 181 of file blkif.h.

#define XEN_SCSI_DISK3_MAJOR   67

Definition at line 182 of file blkif.h.

#define XEN_SCSI_DISK4_MAJOR   68

Definition at line 183 of file blkif.h.

#define XEN_SCSI_DISK5_MAJOR   69

Definition at line 184 of file blkif.h.

#define XEN_SCSI_DISK6_MAJOR   70

Definition at line 185 of file blkif.h.

#define XEN_SCSI_DISK7_MAJOR   71

Definition at line 186 of file blkif.h.

#define XEN_SCSI_DISK8_MAJOR   128

Definition at line 187 of file blkif.h.

#define XEN_SCSI_DISK9_MAJOR   129

Definition at line 188 of file blkif.h.

Typedef Documentation

Definition at line 28 of file blkif.h.

Definition at line 27 of file blkif.h.

Function Documentation

struct blkif_request_rw __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

DEFINE_RING_TYPES ( blkif  ,
struct blkif_request  ,
struct blkif_response   
)

Variable Documentation

blkif_vdev_t _pad1

Definition at line 142 of file blkif.h.

uint8_t _pad3

Definition at line 149 of file blkif.h.

Definition at line 151 of file blkif.h.

Definition at line 140 of file blkif.h.

Definition at line 128 of file blkif.h.

Definition at line 132 of file blkif.h.

uint64_t nr_sectors

Definition at line 148 of file blkif.h.

uint8_t nr_segments

Definition at line 127 of file blkif.h.

Definition at line 148 of file blkif.h.

Definition at line 150 of file blkif.h.

blkif_sector_t sector_number

Definition at line 133 of file blkif.h.

union { ... } u