diff options
author | phk <phk@FreeBSD.org> | 1999-08-29 13:28:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-29 13:28:55 +0000 |
commit | df39983a633a9255cb03784338b81cd63bf45aae (patch) | |
tree | 79eca77d576f589366f8ad6373076623eb9979ce /sys/sys/disk.h | |
parent | 453dfe962a82e34fdb22f268a15ef009304eea59 (diff) | |
download | FreeBSD-src-df39983a633a9255cb03784338b81cd63bf45aae.zip FreeBSD-src-df39983a633a9255cb03784338b81cd63bf45aae.tar.gz |
Add micro "disk" layer which should enable us to pull all the slice/label
stuff out of the device drivers.
Diffstat (limited to 'sys/sys/disk.h')
-rw-r--r-- | sys/sys/disk.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/sys/disk.h b/sys/sys/disk.h new file mode 100644 index 0000000..b292128 --- /dev/null +++ b/sys/sys/disk.h @@ -0,0 +1,35 @@ +/* + * ---------------------------------------------------------------------------- + * "THE BEER-WARE LICENSE" (Revision 42): + * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you + * can do whatever you want with this stuff. If we meet some day, and you think + * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp + * ---------------------------------------------------------------------------- + * + * $FreeBSD$ + * + */ + +#ifndef _SYS_DISK_H_ +#define _SYS_DISK_H_ + +#ifndef _SYS_DISKSLICE_H_ +#include <sys/diskslice.h> +#endif /* _SYS_DISKSLICE_H_ */ + +#ifndef _SYS_DISKLABEL +#include <sys/disklabel.h> +#endif /* _SYS_DISKLABEL */ + +struct disk { + int d_opencount; + struct cdevsw *d_devsw; + dev_t d_dev; + struct diskslices *d_slice; + struct disklabel d_label; +}; + +dev_t disk_create __P((int unit, struct disk *disk, struct cdevsw *cdevsw)); +void disk_delete __P((dev_t dev)); + +#endif /* _SYS_DISK_H_ */ |