ia64/xen-unstable

view extras/mini-os/include/blkfront.h @ 19836:d9890e67d2b7

tools: add SHAREDIR to buildmakevars2file

c/s 19818 dropped SHAREDIR from xen/util/path.py, which broke the "xm
new" command. This patch adds SHAREDIR back to the new
buildmakevars2file-closure function.

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:05:10 2009 +0100 (2009-06-25)
parents f2cf89a4e762
children
line source
1 #include <mini-os/wait.h>
2 #include <xen/io/blkif.h>
3 #include <mini-os/types.h>
4 struct blkfront_dev;
5 struct blkfront_aiocb
6 {
7 struct blkfront_dev *aio_dev;
8 uint8_t *aio_buf;
9 size_t aio_nbytes;
10 off_t aio_offset;
11 size_t total_bytes;
12 uint8_t is_write;
13 void *data;
15 grant_ref_t gref[BLKIF_MAX_SEGMENTS_PER_REQUEST];
16 int n;
18 void (*aio_cb)(struct blkfront_aiocb *aiocb, int ret);
19 };
20 struct blkfront_info
21 {
22 uint64_t sectors;
23 unsigned sector_size;
24 int mode;
25 int info;
26 int barrier;
27 int flush;
28 };
29 struct blkfront_dev *init_blkfront(char *nodename, struct blkfront_info *info);
30 #ifdef HAVE_LIBC
31 int blkfront_open(struct blkfront_dev *dev);
32 #endif
33 void blkfront_aio(struct blkfront_aiocb *aiocbp, int write);
34 #define blkfront_aio_read(aiocbp) blkfront_aio(aiocbp, 0)
35 #define blkfront_aio_write(aiocbp) blkfront_aio(aiocbp, 1)
36 void blkfront_io(struct blkfront_aiocb *aiocbp, int write);
37 #define blkfront_read(aiocbp) blkfront_io(aiocbp, 0)
38 #define blkfront_write(aiocbp) blkfront_io(aiocbp, 1)
39 void blkfront_aio_push_operation(struct blkfront_aiocb *aiocbp, uint8_t op);
40 int blkfront_aio_poll(struct blkfront_dev *dev);
41 void blkfront_sync(struct blkfront_dev *dev);
42 void shutdown_blkfront(struct blkfront_dev *dev);
44 extern struct wait_queue_head blkfront_queue;