2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
16 #ifndef _SYS_DISKSLICE_H_
17 #include <sys/diskslice.h>
18 #endif /* _SYS_DISKSLICE_H_ */
20 #ifndef _SYS_DISKLABEL
21 #include <sys/disklabel.h>
22 #endif /* _SYS_DISKLABEL */
27 struct cdevsw *d_devsw;
29 struct diskslices *d_slice;
30 struct disklabel d_label;
33 #define DISKFLAG_LOCK 0x1
34 #define DISKFLAG_WANTED 0x2
36 dev_t disk_create __P((int unit, struct disk *disk, int flags, struct cdevsw *cdevsw, struct cdevsw *diskdevsw));
37 void disk_delete __P((dev_t dev));
38 int disk_dumpcheck __P((dev_t dev, u_int *count, u_int *blkno, u_int *secsize));
39 void disk_invalidate __P((struct disk *disk));
41 #endif /* _SYS_DISK_H_ */