gBootDriveID is now uint8, no longer uint16.
Now prints out a comment if LBA access doesn't work (since CHS access is not yet implemented). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7250 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
extern uint16 gBootDriveID;
|
extern uint8 gBootDriveID;
|
||||||
|
|
||||||
// int 0x13 definitions
|
// int 0x13 definitions
|
||||||
#define BIOS_GET_DRIVE_PARAMETERS 0x0800
|
#define BIOS_GET_DRIVE_PARAMETERS 0x0800
|
||||||
@@ -191,6 +191,7 @@ BIOSDrive::BIOSDrive(uint8 driveID)
|
|||||||
{
|
{
|
||||||
if (get_ext_drive_parameters(driveID, &fParameters) != B_OK) {
|
if (get_ext_drive_parameters(driveID, &fParameters) != B_OK) {
|
||||||
// ToDo: old style CHS support
|
// ToDo: old style CHS support
|
||||||
|
printf("%d requires CHS support - not yet implemented...\n", driveID);
|
||||||
fBlockSize = 512;
|
fBlockSize = 512;
|
||||||
fSize = 0;
|
fSize = 0;
|
||||||
fLBA = false;
|
fLBA = false;
|
||||||
@@ -258,7 +259,7 @@ BIOSDrive::ReadAt(void *cookie, off_t pos, void *buffer, size_t bufferSize)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
chs_read:
|
chs_read:
|
||||||
// Left to be done!
|
// ToDo: Left to be done!
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user