diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-08-11 21:59:37 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-08-11 21:59:37 -0400 |
commit | c892b138d897f93f8e863fff605e8c2a456b3fa6 (patch) | |
tree | 676f67b33b4cfe0844add2d999a6d746515ea09d /src/config.h | |
parent | f2d48a3d6584b05f6357e3efc34d78db1501eaa5 (diff) | |
download | seabios-c892b138d897f93f8e863fff605e8c2a456b3fa6.tar.gz |
Separate ATA code from generic disk code.
Move generic code from ata.c to new file block.c.
Rename atabits.h to ata.h and move ata header definitions from disk.h.
Rename ATA.channels to ATA_channels.
Rename ATA structure to Drives.
Support both CONFIG_DRIVES and CONFIG_ATA options.
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 98b69e82..a81e1ecc 100644 --- a/src/config.h +++ b/src/config.h @@ -24,7 +24,9 @@ // Screen writes are also sent to debug ports. #define CONFIG_SCREEN_AND_DEBUG 1 -// Support for int13 floppy drive access +// Support int13 disk/floppy drive functions +#define CONFIG_DRIVES 1 +// Support floppy drive access #define CONFIG_FLOPPY_SUPPORT 1 // Support for IDE disk code #define CONFIG_ATA 1 @@ -104,8 +106,12 @@ // Space to reserve in high-memory for tables #define CONFIG_MAX_HIGHTABLE (64*1024) +// Maximum number of ATA controllers to support #define CONFIG_MAX_ATA_INTERFACES 4 -#define CONFIG_MAX_ATA_DEVICES (CONFIG_MAX_ATA_INTERFACES*2) +// Maximum number of internal drives supported +#define CONFIG_MAX_DRIVES 8 +// Largest supported externaly facing drive id +#define CONFIG_MAX_EXTDRIVE 16 #define CONFIG_MODEL_ID 0xFC #define CONFIG_SUBMODEL_ID 0x00 |