Pass 'drive_s' pointer instead of driveid.
authorKevin O'Connor <kevin@koconnor.net>
Fri, 23 Oct 2009 01:48:39 +0000 (21:48 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 23 Oct 2009 01:48:39 +0000 (21:48 -0400)
commit77d227b650c50a7dd0dbaf0ff2ec8681084ddc5f
treed8a9944c41e922f2c88269066230bc2effd1d425
parent9db772a3e6f609ff2969aa644785c7cb66fbd988
Pass 'drive_s' pointer instead of driveid.

Pass a pointer to the drive_s struct instead of a driveid array offset.
Don't allocate ata drive's until a real drive found.
Introduce getDrive() and allocDrive() functions.
src/ata.c
src/ata.h
src/biosvar.h
src/block.c
src/boot.c
src/boot.h
src/cdrom.c
src/disk.c
src/disk.h
src/floppy.c
src/ramdisk.c