summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/include
diff options
context:
space:
mode:
authorMichael Brown2005-04-26 14:30:14 +0200
committerMichael Brown2005-04-26 14:30:14 +0200
commit3dbdeb588f27eea038b5b5ac9819e67698d636e0 (patch)
treeb7c62bb438157e9fd7499cdff0cc4784a8d0e742 /src/arch/i386/include
parentPCI_DRIVER changed (diff)
downloadipxe-3dbdeb588f27eea038b5b5ac9819e67698d636e0.tar.gz
ipxe-3dbdeb588f27eea038b5b5ac9819e67698d636e0.tar.xz
ipxe-3dbdeb588f27eea038b5b5ac9819e67698d636e0.zip
ISA bus driver updated to report devices as present only if a driver
thinks they are. Other bus drivers modified for consistency.
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r--src/arch/i386/include/bios_disks.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/arch/i386/include/bios_disks.h b/src/arch/i386/include/bios_disks.h
index 1a2c31aa..0dd7c4eb 100644
--- a/src/arch/i386/include/bios_disks.h
+++ b/src/arch/i386/include/bios_disks.h
@@ -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