diff options
author | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2004-04-15 15:55:59 +0000 |
---|---|---|
committer | iap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk> | 2004-04-15 15:55:59 +0000 |
commit | 778d03a089c7cc31c5d3f983ecd18704d287fa0e (patch) | |
tree | dabfe9171855f64dd1f2fd00f473763dd1dbf154 /xenolinux-2.4.25-sparse/arch/xen/drivers/block/block.h | |
parent | 0a4286ffcd388d268719a7b05cdf4276ff546169 (diff) | |
download | xen-778d03a089c7cc31c5d3f983ecd18704d287fa0e.tar.gz xen-778d03a089c7cc31c5d3f983ecd18704d287fa0e.tar.bz2 xen-778d03a089c7cc31c5d3f983ecd18704d287fa0e.zip |
bitkeeper revision 1.864.1.1 (407eb08fW2eUAKOIh6v4T-Ew4bCchg)
upgrade to linux 2.4.26
Diffstat (limited to 'xenolinux-2.4.25-sparse/arch/xen/drivers/block/block.h')
-rw-r--r-- | xenolinux-2.4.25-sparse/arch/xen/drivers/block/block.h | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/xenolinux-2.4.25-sparse/arch/xen/drivers/block/block.h b/xenolinux-2.4.25-sparse/arch/xen/drivers/block/block.h deleted file mode 100644 index e41e03970e..0000000000 --- a/xenolinux-2.4.25-sparse/arch/xen/drivers/block/block.h +++ /dev/null @@ -1,82 +0,0 @@ -/****************************************************************************** - * block.h - * - * Shared definitions between all levels of XenoLinux Virtual block devices. - */ - -#ifndef __XEN_DRIVERS_BLOCK_H__ -#define __XEN_DRIVERS_BLOCK_H__ - -#include <linux/config.h> -#include <linux/module.h> - -#include <linux/kernel.h> -#include <linux/sched.h> -#include <linux/slab.h> -#include <linux/string.h> -#include <linux/errno.h> - -#include <linux/fs.h> -#include <linux/hdreg.h> -#include <linux/blkdev.h> -#include <linux/major.h> - -#include <asm/hypervisor-ifs/hypervisor-if.h> -#include <asm/hypervisor-ifs/vbd.h> -#include <asm/io.h> -#include <asm/atomic.h> -#include <asm/uaccess.h> - -#if 0 -#define DPRINTK(_f, _a...) printk ( KERN_ALERT _f , ## _a ) -#else -#define DPRINTK(_f, _a...) ((void)0) -#endif - -#if 0 -#define DPRINTK_IOCTL(_f, _a...) printk ( KERN_ALERT _f , ## _a ) -#else -#define DPRINTK_IOCTL(_f, _a...) ((void)0) -#endif - -/* Private gendisk->flags[] values. */ -#define GENHD_FL_XEN 2 /* Is unit a Xen block device? */ -#define GENHD_FL_VIRT_PARTNS 4 /* Are unit partitions virtual? */ - -/* - * We have one of these per vbd, whether ide, scsi or 'other'. - * They hang in an array off the gendisk structure. We may end up putting - * all kinds of interesting stuff here :-) - */ -typedef struct xl_disk { - int usage; -} xl_disk_t; - -extern int xen_control_msg(int operration, char *buffer, int size); -extern int xen_block_open(struct inode *inode, struct file *filep); -extern int xen_block_release(struct inode *inode, struct file *filep); -extern int xen_block_ioctl(struct inode *inode, struct file *filep, - unsigned command, unsigned long argument); -extern int xen_block_check(kdev_t dev); -extern int xen_block_revalidate(kdev_t dev); -extern void do_xlblk_request (request_queue_t *rq); - -extern void xlvbd_update_vbds(void); - -static inline xl_disk_t *xldev_to_xldisk(kdev_t xldev) -{ - struct gendisk *gd = get_gendisk(xldev); - - if ( gd == NULL ) - return NULL; - - return (xl_disk_t *)gd->real_devices + - (MINOR(xldev) >> gd->minor_shift); -} - - -/* Virtual block-device subsystem. */ -extern int xlvbd_init(void); -extern void xlvbd_cleanup(void); - -#endif /* __XEN_DRIVERS_BLOCK_H__ */ |