Changeset View
Changeset View
Standalone View
Standalone View
sys/geom/geom_disk.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | struct disk { | ||||
u_int d_unit; | u_int d_unit; | ||||
struct bio_queue_head *d_queue; | struct bio_queue_head *d_queue; | ||||
struct mtx *d_lock; | struct mtx *d_lock; | ||||
/* Disk methods */ | /* Disk methods */ | ||||
disk_open_t *d_open; | disk_open_t *d_open; | ||||
disk_close_t *d_close; | disk_close_t *d_close; | ||||
disk_strategy_t *d_strategy; | disk_strategy_t *d_strategy; | ||||
disk_ioctl_t *d_ioctl; | disk_ioctl_t *d_ioctl; | ||||
imp: this breaks binary compat, so we need
#define DISK_VERSION_06 0x5856105f
#define… | |||||
Not Done Inline ActionsThanks! Done. eugen_grosbein.net: Thanks! Done. | |||||
dumper_t *d_dump; | dumper_t *d_dump; | ||||
disk_getattr_t *d_getattr; | disk_getattr_t *d_getattr; | ||||
disk_gone_t *d_gone; | disk_gone_t *d_gone; | ||||
/* Info fields from driver to geom_disk.c. Valid when open */ | /* Info fields from driver to geom_disk.c. Valid when open */ | ||||
u_int d_sectorsize; | u_int d_sectorsize; | ||||
off_t d_mediasize; | off_t d_mediasize; | ||||
u_int d_fwsectors; | u_int d_fwsectors; | ||||
u_int d_fwheads; | u_int d_fwheads; | ||||
u_int d_maxsize; | u_int d_maxsize; | ||||
off_t d_delmaxsize; | off_t d_delmaxsize; | ||||
u_int d_stripeoffset; | off_t d_stripeoffset; | ||||
u_int d_stripesize; | off_t d_stripesize; | ||||
char d_ident[DISK_IDENT_SIZE]; | char d_ident[DISK_IDENT_SIZE]; | ||||
char d_descr[DISK_IDENT_SIZE]; | char d_descr[DISK_IDENT_SIZE]; | ||||
uint16_t d_hba_vendor; | uint16_t d_hba_vendor; | ||||
uint16_t d_hba_device; | uint16_t d_hba_device; | ||||
uint16_t d_hba_subvendor; | uint16_t d_hba_subvendor; | ||||
uint16_t d_hba_subdevice; | uint16_t d_hba_subdevice; | ||||
uint16_t d_rotation_rate; | uint16_t d_rotation_rate; | ||||
Show All 23 Lines | |||||
void disk_add_alias(struct disk *disk, const char *); | void disk_add_alias(struct disk *disk, const char *); | ||||
#define DISK_VERSION_00 0x58561059 | #define DISK_VERSION_00 0x58561059 | ||||
#define DISK_VERSION_01 0x5856105a | #define DISK_VERSION_01 0x5856105a | ||||
#define DISK_VERSION_02 0x5856105b | #define DISK_VERSION_02 0x5856105b | ||||
#define DISK_VERSION_03 0x5856105c | #define DISK_VERSION_03 0x5856105c | ||||
#define DISK_VERSION_04 0x5856105d | #define DISK_VERSION_04 0x5856105d | ||||
#define DISK_VERSION_05 0x5856105e | #define DISK_VERSION_05 0x5856105e | ||||
#define DISK_VERSION DISK_VERSION_05 | #define DISK_VERSION_06 0x5856105f | ||||
#define DISK_VERSION DISK_VERSION_06 | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _GEOM_GEOM_DISK_H_ */ | #endif /* _GEOM_GEOM_DISK_H_ */ |
this breaks binary compat, so we need
#define DISK_VERSION_06 0x5856105f
#define DISK_VERSION DISK_VERSION_06
to make sure the breakage is enforced.