[tcp] Allow out-of-order receive queue to be discarded
[gpxe.git] / src / arch / i386 / include / bios_disks.h
blob0dd7c4ebbb38dea4a286172eeb6bd48362ce4daa
1 #ifndef BIOS_DISKS_H
2 #define BIOS_DISKS_H
4 #include "dev.h"
6 /*
7 * Constants
9 */
11 #define BIOS_DISK_MAX_NAME_LEN 6
13 struct bios_disk_sector {
14 char data[512];
18 * The location of a BIOS disk
21 struct bios_disk_loc {
22 uint8_t drive;
26 * A physical BIOS disk device
29 struct bios_disk_device {
30 char name[BIOS_DISK_MAX_NAME_LEN];
31 uint8_t drive;
32 uint8_t type;
36 * A BIOS disk driver, with a valid device ID range and naming
37 * function.
40 struct bios_disk_driver {
41 void ( *fill_drive_name ) ( char *buf, uint8_t drive );
42 uint8_t min_drive;
43 uint8_t max_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 */