12#ifndef __XEN_PUBLIC_IO_BLKIF_H__
13#define __XEN_PUBLIC_IO_BLKIF_H__
16#include "../grant_table.h"
31#define blkif_vdev_t UINT16
33#define blkif_sector_t UINT64
418#define BLKIF_OP_READ 0
419#define BLKIF_OP_WRITE 1
429#define BLKIF_OP_WRITE_BARRIER 2
437#define BLKIF_OP_FLUSH_DISKCACHE 3
443#define BLKIF_OP_RESERVED_1 4
465#define BLKIF_OP_DISCARD 5
489#define BLKIF_OP_INDIRECT 6
496#define BLKIF_MAX_SEGMENTS_PER_REQUEST 11
501#define BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST 8
515 UINT8 first_sect, last_sect;
521#if defined (MDE_CPU_IA32)
534 blkif_sector_t sector_number;
547 #define BLKIF_DISCARD_SECURE (1<<0)
550 blkif_sector_t sector_number;
561 blkif_sector_t sector_number;
563 grant_ref_t indirect_grefs[BLKIF_MAX_INDIRECT_PAGES_PER_REQUEST];
578#if defined (MDE_CPU_IA32)
586#define BLKIF_RSP_EOPNOTSUPP -2
588#define BLKIF_RSP_ERROR -1
590#define BLKIF_RSP_OKAY 0
597#define VDISK_CDROM 0x1
598#define VDISK_REMOVABLE 0x2
599#define VDISK_READONLY 0x4