ia64/xen-unstable

view tools/internal/physdev.h @ 522:07cb518caf2f

bitkeeper revision 1.289 (3f09877bT-kkJTOM1WvHevpN2wY-qw)

Prune old code
author rac61@labyrinth.cl.cam.ac.uk
date Mon Jul 07 14:45:15 2003 +0000 (2003-07-07)
parents 1786bde3fc7e
children
line source
1 #define XEN_BLOCK_PHYSDEV_GRANT 10 /* grant access to range of disk blocks */
2 #define XEN_BLOCK_PHYSDEV_PROBE 11 /* probe for a domain's physdev
3 accesses */
5 #define PHYSDISK_MODE_R 1
6 #define PHYSDISK_MODE_W 2
7 typedef struct xp_disk
8 {
9 int mode; /* PHYSDISK_MODEs or 0 for revoke. */
10 int domain;
11 unsigned short device;
12 unsigned long start_sect;
13 unsigned long n_sectors;
14 } xp_disk_t;
16 #define PHYSDISK_MAX_ACES_PER_REQUEST 254
17 typedef struct {
18 int n_aces;
19 int domain;
20 int start_ind;
21 struct {
22 unsigned short device;
23 unsigned long start_sect;
24 unsigned long n_sectors;
25 unsigned mode;
26 } entries[PHYSDISK_MAX_ACES_PER_REQUEST];
27 } physdisk_probebuf_t;