ia64/xen-unstable

view extras/mini-os/include/blkfront.h @ 16838:945820bfedb6

minios: POSIX fixes
Fixes some functions which are POSIX. Also make them ifndef HAVE_LIBC.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jan 22 14:20:22 2008 +0000 (2008-01-22)
parents 80e177b12fd2
children 0672d5b11262
line source
1 #include <wait.h>
2 #include <xen/io/blkif.h>
3 #include <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 void *data;
13 grant_ref_t gref[BLKIF_MAX_SEGMENTS_PER_REQUEST];
15 void (*aio_cb)(struct blkfront_aiocb *aiocb, int ret);
16 };
17 struct blkfront_dev *init_blkfront(char *nodename, uint64_t *sectors, unsigned *sector_size, int *mode);
18 #ifdef HAVE_LIBC
19 int blkfront_open(struct blkfront_dev *dev);
20 #endif
21 void blkfront_aio(struct blkfront_aiocb *aiocbp, int write);
22 void blkfront_aio_read(struct blkfront_aiocb *aiocbp);
23 void blkfront_aio_write(struct blkfront_aiocb *aiocbp);
24 int blkfront_aio_poll(struct blkfront_dev *dev);
25 void blkfront_sync(struct blkfront_dev *dev);
26 void shutdown_blkfront(struct blkfront_dev *dev);
28 extern struct wait_queue_head blkfront_queue;