]> xenbits.xensource.com Git - seabios.git/commit
Dynamically allocate ata_channel info; introduce custom atadrive_s struct.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 28 Feb 2010 06:28:11 +0000 (01:28 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 28 Feb 2010 06:28:11 +0000 (01:28 -0500)
commit8f469b9676127ba6bb52609d89ec774e61db0ee1
treedfb521bc0905ff1419c77dcc1a63943a856f6296
parent575ffc8fd1127e3cb8fbb7f587cadfa85eb9b73d
Dynamically allocate ata_channel info; introduce custom atadrive_s struct.

Don't limit the number of ATA controllers supported - just dynamically
allocate the structs.

Create an atadrive_s struct that extends the standard 'struct drive_s'
and have the new struct store a pointer to the ata channel info.

Also, prefer storing drive_s pointers as 32bit "flat" pointers -
adjust them as needed in the 16bit code.
src/ata.c
src/ata.h
src/biosvar.h
src/block.c
src/cdrom.c
src/config.h
src/disk.c
src/disk.h