11 #define BIOS_DISK_MAX_NAME_LEN 6
13 struct bios_disk_sector
{
18 * The location of a BIOS disk
21 struct bios_disk_loc
{
26 * A physical BIOS disk device
29 struct bios_disk_device
{
30 char name
[BIOS_DISK_MAX_NAME_LEN
];
36 * A BIOS disk driver, with a valid device ID range and naming
40 struct bios_disk_driver
{
41 void ( *fill_drive_name
) ( char *buf
, uint8_t drive
);
47 * Define a BIOS disk driver
50 #define BIOS_DISK_DRIVER( _name, _fill_drive_name, _min_drive, _max_drive ) \
51 static struct bios_disk_driver _name = { \
52 .fill_drive_name = _fill_drive_name, \
53 .min_drive = _min_drive, \
54 .max_drive = _max_drive, \
58 * Functions in bios_disks.c
64 * bios_disk bus global definition
67 extern struct bus_driver bios_disk_driver
;
69 #endif /* BIOS_DISKS_H */