Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xen/blkfront/block.h
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
struct xbd_command { | struct xbd_command { | ||||
TAILQ_ENTRY(xbd_command) cm_link; | TAILQ_ENTRY(xbd_command) cm_link; | ||||
struct xbd_softc *cm_sc; | struct xbd_softc *cm_sc; | ||||
xbdc_flag_t cm_flags; | xbdc_flag_t cm_flags; | ||||
bus_dmamap_t cm_map; | bus_dmamap_t cm_map; | ||||
uint64_t cm_id; | uint64_t cm_id; | ||||
grant_ref_t *cm_sg_refs; | grant_ref_t *cm_sg_refs; | ||||
struct bio *cm_bp; | struct bio *cm_bp; | ||||
grant_ref_t cm_gref_head; | |||||
void *cm_data; | void *cm_data; | ||||
size_t cm_datalen; | size_t cm_datalen; | ||||
u_int cm_nseg; | u_int cm_nseg; | ||||
int cm_operation; | int cm_operation; | ||||
blkif_sector_t cm_sector_number; | blkif_sector_t cm_sector_number; | ||||
int cm_status; | int cm_status; | ||||
xbd_cbcf_t *cm_complete; | xbd_cbcf_t *cm_complete; | ||||
void *cm_indirectionpages; | void *cm_indirectionpages; | ||||
grant_ref_t cm_indirectionrefs[BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST]; | grant_ref_t *cm_indirectionrefs; | ||||
bus_dmamap_t cm_indirectionmap; | |||||
}; | }; | ||||
typedef enum { | typedef enum { | ||||
XBD_Q_FREE, | XBD_Q_FREE, | ||||
XBD_Q_READY, | XBD_Q_READY, | ||||
XBD_Q_BUSY, | XBD_Q_BUSY, | ||||
XBD_Q_COMPLETE, | XBD_Q_COMPLETE, | ||||
XBD_Q_BIO, | XBD_Q_BIO, | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |