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 * ----------------------------------------------------------------------------
9 * $FreeBSD: src/sys/sys/disk.h,v 1.16.2.3 2001/06/20 16:11:01 scottl Exp $
10 * $DragonFly: src/sys/sys/disk.h,v 1.4 2003/08/20 07:31:21 rob Exp $
17 #ifndef _SYS_DISKSLICE_H_
18 #include <sys/diskslice.h>
21 #ifndef _SYS_DISKLABEL
22 #include <sys/disklabel.h>
25 #ifndef _SYS_DISKLABEL
26 #include <sys/msgport.h>
30 struct lwkt_port d_port; /* interception port */
31 struct lwkt_port *d_fwdport; /* forward to real port */
35 struct diskslices *d_slice;
36 struct disklabel d_label;
37 LIST_ENTRY(disk) d_list;
40 #define DISKFLAG_LOCK 0x1
41 #define DISKFLAG_WANTED 0x2
43 dev_t disk_create (int unit, struct disk *disk, int flags, struct cdevsw *cdevsw);
44 void disk_destroy (struct disk *disk);
45 int disk_dumpcheck (dev_t dev, u_int *count, u_int *blkno, u_int *secsize);
46 struct disk *disk_enumerate (struct disk *disk);
47 void disk_invalidate (struct disk *disk);
49 #endif /* _SYS_DISK_H_ */