mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
ISA bus driver updated to report devices as present only if a driver
thinks they are. Other bus drivers modified for consistency.
This commit is contained in:
@@ -21,8 +21,7 @@ static void floppy_disable ( struct disk *disk,
|
||||
|
||||
}
|
||||
|
||||
static struct bios_disk_driver floppy_driver =
|
||||
BIOS_DISK_DRIVER ( fill_floppy_name, 0x00, 0x7f );
|
||||
BIOS_DISK_DRIVER ( floppy_driver, fill_floppy_name, 0x00, 0x7f );
|
||||
|
||||
DRIVER ( "floppy", disk_driver, bios_disk_driver, floppy_driver,
|
||||
floppy_probe, floppy_disable );
|
||||
|
||||
@@ -47,11 +47,12 @@ struct bios_disk_driver {
|
||||
* Define a BIOS disk driver
|
||||
*
|
||||
*/
|
||||
#define BIOS_DISK_DRIVER( _fill_drive_name, _min_drive, _max_drive ) { \
|
||||
.fill_drive_name = _fill_drive_name, \
|
||||
.min_drive = _min_drive, \
|
||||
.max_drive = _max_drive, \
|
||||
}
|
||||
#define BIOS_DISK_DRIVER( _name, _fill_drive_name, _min_drive, _max_drive ) \
|
||||
static struct bios_disk_driver _name = { \
|
||||
.fill_drive_name = _fill_drive_name, \
|
||||
.min_drive = _min_drive, \
|
||||
.max_drive = _max_drive, \
|
||||
}
|
||||
|
||||
/*
|
||||
* Functions in bios_disks.c
|
||||
|
||||
@@ -145,6 +145,9 @@ SECTIONS {
|
||||
device_drivers = .;
|
||||
*(.drivers.device)
|
||||
device_drivers_end = .;
|
||||
isa_drivers = . ;
|
||||
*(.drivers.isa)
|
||||
isa_drivers_end = .;
|
||||
bus_drivers = .;
|
||||
*(.drivers.bus)
|
||||
bus_drivers_end = .;
|
||||
|
||||
Reference in New Issue
Block a user