mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Used Ext partition detection macro and less intrusive register maps
svn path=/trunk/; revision=103
This commit is contained in:
parent
fd5a21279e
commit
ce0b82afeb
1 changed files with 7 additions and 7 deletions
|
@ -71,7 +71,7 @@ typedef DISK_GEOMETRY *PDISK_GEOMETRY;
|
|||
// -------------------------------------------------------------------------
|
||||
|
||||
#include <internal/kernel.h>
|
||||
#include <internal/hal/io.h>
|
||||
#include <internal/i386/io.h>
|
||||
#include <internal/string.h>
|
||||
|
||||
//#define NDEBUG
|
||||
|
@ -81,7 +81,7 @@ typedef DISK_GEOMETRY *PDISK_GEOMETRY;
|
|||
#include "idep.h"
|
||||
#include "partitio.h"
|
||||
|
||||
#define VERSION "V0.1.2"
|
||||
#define VERSION "V0.1.3"
|
||||
|
||||
// ------------------------------------------------------- File Static Data
|
||||
|
||||
|
@ -105,10 +105,10 @@ typedef struct _IDE_CONTROLLER_PARAMETERS
|
|||
#define IDE_MAX_CONTROLLERS 4
|
||||
IDE_CONTROLLER_PARAMETERS Controllers[IDE_MAX_CONTROLLERS] =
|
||||
{
|
||||
{0x01f0, 8, 0x03f0, 8, 14, 14, 15, LevelSensitive, 0xffff},
|
||||
{0x0170, 8, 0x0370, 8, 15, 15, 15, LevelSensitive, 0xffff},
|
||||
{0x01E8, 8, 0x03e8, 8, 11, 11, 15, LevelSensitive, 0xffff},
|
||||
{0x0168, 8, 0x0368, 8, 10, 10, 15, LevelSensitive, 0xffff}
|
||||
{0x01f0, 8, 0x03f6, 1, 14, 14, 15, LevelSensitive, 0xffff},
|
||||
{0x0170, 8, 0x0376, 1, 15, 15, 15, LevelSensitive, 0xffff},
|
||||
{0x01E8, 8, 0x03ee, 1, 11, 11, 15, LevelSensitive, 0xffff},
|
||||
{0x0168, 8, 0x036e, 1, 10, 10, 15, LevelSensitive, 0xffff}
|
||||
};
|
||||
|
||||
static BOOLEAN IDEInitialized = FALSE;
|
||||
|
@ -634,7 +634,7 @@ IDECreateDevices(IN PDRIVER_OBJECT DriverObject,
|
|||
|
||||
// Create devices for logical partitions within an extended partition
|
||||
}
|
||||
else if (p->PartitionType == PTDosExtended)
|
||||
else if (PartitionIsExtended(p))
|
||||
{
|
||||
ExtOffset = p->StartingBlock;
|
||||
|
||||
|
|
Loading…
Reference in a new issue