Home
last modified time | relevance | path

Searched refs:DriveNumber (Results 1 – 25 of 41) sorted by relevance

12

/reactos/boot/freeldr/freeldr/arch/i386/pc/
H A Dpcdisk.c212 if ((DriveNumber >= 0x80) || (DriveNumber == 0x49)) in DiskIsDriveRemovable()
295 IN UCHAR DriveNumber, in DiskGetExtendedDriveParameters() argument
373 IN UCHAR DriveNumber, in InitDriveGeometry() argument
458 DriveNumber, in InitDriveGeometry()
469 IN UCHAR DriveNumber, in PcDiskDriveInit() argument
488 DriveNumber, in PcDiskDriveInit()
502 ASSERT((0 <= DriveNumber) && (DriveNumber < RTL_NUMBER_OF(PcDiskDrive))); in PcDiskDriveNumberToDrive()
536 ASSERT((0 <= DriveNumber) && (DriveNumber <= 0xFF)); in PcDiskDriveNumberToDrive()
564 IN UCHAR DriveNumber, in PcDiskReadLogicalSectorsLBA() argument
628 IN UCHAR DriveNumber, in PcDiskReadLogicalSectorsCHS() argument
[all …]
H A Dpchw.c48 GetHarddiskIdentifier(UCHAR DriveNumber);
173 GetFloppyType(UCHAR DriveNumber) in GetFloppyType() argument
180 if (DriveNumber == 0) in GetFloppyType()
182 else if (DriveNumber == 1) in GetFloppyType()
351 UCHAR DiskCount, DriveNumber; in DetectBiosDisks() local
391 DriveNumber = 0x80 + i; in DetectBiosDisks()
393 if (MachDiskGetDriveGeometry(DriveNumber, &Geometry)) in DetectBiosDisks()
395 Int13Drives[i].DriveSelect = DriveNumber; in DetectBiosDisks()
402 DriveNumber, in DetectBiosDisks()
418 DriveNumber = 0x80 + i; in DetectBiosDisks()
[all …]
/reactos/boot/freeldr/freeldr/disk/
H A Dpartition.c53 IN UCHAR DriveNumber, in DiskReadBootRecord() argument
135 IN UCHAR DriveNumber, in DiskGetActivePartitionEntry() argument
195 IN UCHAR DriveNumber, in DiskGetMbrPartitionEntry() argument
286 IN UCHAR DriveNumber, in DiskGetBrfrPartitionEntry() argument
315 IN UCHAR DriveNumber) in DiskDetectPartitionType() argument
368 IN UCHAR DriveNumber, in DiskGetBootPartitionEntry() argument
372 switch (DiskPartitionType[DriveNumber]) in DiskGetBootPartitionEntry()
399 …Drive 0x%X partition type = %d, should not happen!\n", DriveNumber, DiskPartitionType[DriveNumber]… in DiskGetBootPartitionEntry()
408 IN UCHAR DriveNumber, in DiskGetPartitionEntry() argument
412 switch (DiskPartitionType[DriveNumber]) in DiskGetPartitionEntry()
[all …]
/reactos/boot/freeldr/freeldr/arch/i386/
H A Dhwdisk.c36 UCHAR DriveNumber; member
87 UCHAR DriveNumber; in DiskOpen() local
147 Context->DriveNumber = DriveNumber; in DiskOpen()
252 GetHarddiskIdentifier(UCHAR DriveNumber) in GetHarddiskIdentifier() argument
258 GetHarddiskInformation(UCHAR DriveNumber) in GetHarddiskInformation() argument
271 DiskDetectPartitionType(DriveNumber); in GetHarddiskInformation()
347 UCHAR DiskCount, DriveNumber; in EnumerateHarddisks() local
356 DriveNumber = FIRST_BIOS_DISK; in EnumerateHarddisks()
390 DriveNumber++; in EnumerateHarddisks()
405 DiskIsDriveRemovable(UCHAR DriveNumber) in DiskIsDriveRemovable() argument
[all …]
/reactos/boot/freeldr/freeldr/arch/i386/xbox/
H A Dxboxdisk.c63 XboxDiskDriveNumberToDeviceUnit(UCHAR DriveNumber) in XboxDiskDriveNumberToDeviceUnit() argument
66 if (DriveNumber < 0x80 || (DriveNumber & 0x0F) >= 2) in XboxDiskDriveNumberToDeviceUnit()
73 if ((DriveNumber == 0x80) && HardDrive) in XboxDiskDriveNumberToDeviceUnit()
77 if (((DriveNumber & 0xF0) > 0x80) && CdDrive) in XboxDiskDriveNumberToDeviceUnit()
85 IN UCHAR DriveNumber, in XboxDiskReadLogicalSectors() argument
93 DriveNumber, SectorNumber, SectorCount, Buffer); in XboxDiskReadLogicalSectors()
95 DeviceUnit = XboxDiskDriveNumberToDeviceUnit(DriveNumber); in XboxDiskReadLogicalSectors()
107 TRACE("XboxDiskGetDriveGeometry(0x%x)\n", DriveNumber); in XboxDiskGetDriveGeometry()
109 DeviceUnit = XboxDiskDriveNumberToDeviceUnit(DriveNumber); in XboxDiskGetDriveGeometry()
123 XboxDiskGetCacheableBlockCount(UCHAR DriveNumber) in XboxDiskGetCacheableBlockCount() argument
[all …]
H A Dmachxbox.c94 XboxGetHarddiskConfigurationData(UCHAR DriveNumber, ULONG* pSize) in XboxGetHarddiskConfigurationData() argument
129 if (XboxDiskGetDriveGeometry(DriveNumber, &Geometry)) in XboxGetHarddiskConfigurationData()
143 DriveNumber, in XboxGetHarddiskConfigurationData()
/reactos/boot/freeldr/freeldr/arch/uefi/
H A Duefidisk.c22 UCHAR DriveNumber; member
67 GetHarddiskIdentifier(UCHAR DriveNumber) in GetHarddiskIdentifier() argument
87 IN UCHAR DriveNumber, in UefiGetBootPartitionEntry() argument
143 UCHAR DriveNumber; in UefiDiskOpen() local
163 UefiDriveNumber = DriveNumber - FIRST_BIOS_DISK; in UefiDiskOpen()
195 Context->DriveNumber = DriveNumber; in UefiDiskOpen()
298 GetHarddiskInformation(UCHAR DriveNumber) in GetHarddiskInformation() argument
311 DiskDetectPartitionType(DriveNumber); in GetHarddiskInformation()
360 InternalUefiDisk[DriveNumber].NumOfPartitions = i; in GetHarddiskInformation()
557 IN UCHAR DriveNumber, in UefiDiskReadLogicalSectors() argument
[all …]
/reactos/boot/freeldr/freeldr/
H A Darcname.c28 OUT PUCHAR DriveNumber, in DissectArcPath() argument
37 *DriveNumber = 0x49; in DissectArcPath()
59 *DriveNumber = atoi(p); in DissectArcPath()
73 *DriveNumber = atoi(p) + 0x80; in DissectArcPath()
87 *DriveNumber = atoi(p) + 0x80; in DissectArcPath()
215 UCHAR DriveNumber = 0;
228 DriveNumber = atoi(p);
237 DriveNumber = atoi(p) + 0x80;
240 return DriveNumber;
/reactos/boot/freeldr/freeldr/lib/cache/
H A Dcache.c37 BOOLEAN CacheInitializeDrive(UCHAR DriveNumber) in CacheInitializeDrive() argument
46 (DriveNumber == CacheManagerDrive.DriveNumber) && in CacheInitializeDrive()
47 (DriveNumber >= 0x80) && in CacheInitializeDrive()
83 CacheManagerDrive.DriveNumber = DriveNumber; in CacheInitializeDrive()
84 if (!MachDiskGetDriveGeometry(DriveNumber, &DriveGeometry)) in CacheInitializeDrive()
91 CacheManagerDrive.BlockSize = MachDiskGetCacheableBlockCount(DriveNumber); in CacheInitializeDrive()
100 TRACE("Initializing BIOS drive 0x%x.\n", DriveNumber); in CacheInitializeDrive()
H A Dblocklist.c122 …if (!MachDiskReadLogicalSectors(CacheDrive->DriveNumber, (BlockNumber * CacheDrive->BlockSize), Ca… in CacheInternalAddBlockToCache()
198 TRACE("Dumping block list for BIOS drive 0x%x.\n", CacheDrive->DriveNumber); in CacheInternalDumpBlockList()
/reactos/boot/freeldr/freeldr/arch/i386/pc98/
H A Dmachpc98.c44 Pc98GetBootSectorLoadAddress(IN UCHAR DriveNumber) in Pc98GetBootSectorLoadAddress() argument
48 DiskDrive = Pc98DiskDriveNumberToDrive(DriveNumber); in Pc98GetBootSectorLoadAddress()
51 ERR("Failed to get drive 0x%x\n", DriveNumber); in Pc98GetBootSectorLoadAddress()
76 UCHAR DriveNumber = BootDrive ? BootDrive : FrldrBootDrive; in ChainLoadBiosBootSectorCode() local
78 DiskDrive = Pc98DiskDriveNumberToDrive(DriveNumber); in ChainLoadBiosBootSectorCode()
81 ERR("Failed to get drive 0x%x\n", DriveNumber); in ChainLoadBiosBootSectorCode()
85 LoadAddress = (USHORT)(Pc98GetBootSectorLoadAddress(DriveNumber) >> 4); in ChainLoadBiosBootSectorCode()
H A Dpc98disk.c141 Pc98DiskDriveNumberToDrive(IN UCHAR DriveNumber) in Pc98DiskDriveNumberToDrive() argument
145 ASSERT((0 <= DriveNumber) && (DriveNumber < RTL_NUMBER_OF(Pc98DiskDrive))); in Pc98DiskDriveNumberToDrive()
148 DiskDrive = &Pc98DiskDrive[DriveNumber]; in Pc98DiskDriveNumberToDrive()
839 IN UCHAR DriveNumber, in Pc98DiskReadLogicalSectors() argument
847 DriveNumber, SectorNumber, SectorCount, Buffer); in Pc98DiskReadLogicalSectors()
852 DiskDrive = Pc98DiskDriveNumberToDrive(DriveNumber); in Pc98DiskReadLogicalSectors()
871 Pc98DiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY Geometry) in Pc98DiskGetDriveGeometry() argument
875 TRACE("Pc98DiskGetDriveGeometry(0x%x)\n", DriveNumber); in Pc98DiskGetDriveGeometry()
877 DiskDrive = Pc98DiskDriveNumberToDrive(DriveNumber); in Pc98DiskGetDriveGeometry()
887 Pc98DiskGetCacheableBlockCount(UCHAR DriveNumber) in Pc98DiskGetCacheableBlockCount() argument
[all …]
H A Dpc98hw.c34 GetHarddiskIdentifier(UCHAR DriveNumber);
316 Pc98GetHarddiskConfigurationData(UCHAR DriveNumber, ULONG* pSize) in Pc98GetHarddiskConfigurationData() argument
348 if (Pc98DiskGetDriveGeometry(DriveNumber, &Geometry)) in Pc98GetHarddiskConfigurationData()
362 DriveNumber, in Pc98GetHarddiskConfigurationData()
381 UCHAR DiskCount, DriveNumber; in DetectBiosDisks() local
420 DriveNumber = 0x80 + i; in DetectBiosDisks()
422 if (Pc98DiskGetDriveGeometry(DriveNumber, &Geometry)) in DetectBiosDisks()
424 Int13Drives[i].DriveSelect = DriveNumber; in DetectBiosDisks()
431 DriveNumber, in DetectBiosDisks()
447 DriveNumber = 0x80 + i; in DetectBiosDisks()
[all …]
/reactos/boot/freeldr/freeldr/include/arch/i386/
H A Dmachpc98.h147 BOOLEAN Pc98DiskReadLogicalSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PV…
148 BOOLEAN Pc98DiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY DriveGeometry);
149 ULONG Pc98DiskGetCacheableBlockCount(UCHAR DriveNumber);
151 PPC98_DISK_DRIVE Pc98DiskDriveNumberToDrive(IN UCHAR DriveNumber);
153 ULONG Pc98GetBootSectorLoadAddress(IN UCHAR DriveNumber);
H A Dmachxbox.h55 BOOLEAN XboxDiskReadLogicalSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PV…
56 BOOLEAN XboxDiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY DriveGeometry);
57 ULONG XboxDiskGetCacheableBlockCount(UCHAR DriveNumber);
/reactos/boot/freeldr/freeldr/include/arch/pc/
H A Dmachpc.h60 BOOLEAN DiskResetController(UCHAR DriveNumber);
62 BOOLEAN PcDiskReadLogicalSectors(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PVOI…
63 BOOLEAN PcDiskGetDriveGeometry(UCHAR DriveNumber, PGEOMETRY DriveGeometry);
64 ULONG PcDiskGetCacheableBlockCount(UCHAR DriveNumber);
/reactos/boot/freeldr/freeldr/include/
H A Ddisk.h138 IN UCHAR DriveNumber);
142 IN UCHAR DriveNumber,
148 IN UCHAR DriveNumber,
H A Dcache.h56 UCHAR DriveNumber; member
90 BOOLEAN CacheInitializeDrive(UCHAR DriveNumber);
H A Dmachine.h67 …BOOLEAN (*DiskReadLogicalSectors)(UCHAR DriveNumber, ULONGLONG SectorNumber, ULONG SectorCount, PV…
68 BOOLEAN (*DiskGetDriveGeometry)(UCHAR DriveNumber, PGEOMETRY DriveGeometry);
69 ULONG (*DiskGetCacheableBlockCount)(UCHAR DriveNumber);
/reactos/boot/freeldr/freeldr/include/arch/uefi/
H A Dmachuefi.h79 UefiDiskReadLogicalSectors(IN UCHAR DriveNumber,
85 UefiDiskGetDriveGeometry(UCHAR DriveNumber,
89 UefiDiskGetCacheableBlockCount(UCHAR DriveNumber);
/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/
H A Ddos.c80 BYTE DriveNumber; in DosChangeDirectory() local
97 DriveNumber = RtlUpperChar(Directory[0]) - 'A'; in DosChangeDirectory()
100 if (DriveNumber >= SysVars->NumLocalDrives) in DosChangeDirectory()
109 DriveNumber = Sda->CurrentDrive; in DosChangeDirectory()
124 if (DriveNumber == Sda->CurrentDrive) in DosChangeDirectory()
548 else Fcb->DriveNumber = 0; in DosInt21h()
1214 BYTE DriveNumber = getDL(); in DosInt21h() local
1218 if (DriveNumber == 0) in DosInt21h()
1220 DriveNumber = Sda->CurrentDrive; in DosInt21h()
1225 DriveNumber--; in DosInt21h()
[all …]
/reactos/boot/freeldr/bootsect/
H A Disoboot.S112 mov byte ptr ds:[DriveNumber], dl
121 cmp byte ptr ds:[DriveNumber], HEX(80)
205 mov dl, byte ptr ds:[DriveNumber]
215 mov dl, byte ptr ds:[DriveNumber]
299 movzx dx, byte ptr ds:[DriveNumber]
420 mov byte ptr ds:[DriveNumber], dl
428 mov al, byte ptr ds:[DriveNumber]
449 mov dl, byte ptr ds:[DriveNumber]
850 mov dl, byte ptr ds:[DriveNumber]
879 mov dl, byte ptr ds:[DriveNumber]
[all …]
/reactos/subsystems/mvdm/ntvdm/dos/
H A Ddem.h101 IN UCHAR DriveNumber
117 OUT PUCHAR DriveNumber
/reactos/boot/freeldr/freeldr/include/fs/
H A Dfat.h39 UCHAR DriveNumber; // Int 0x13 drive number (e.g. 0x80) member
75 UCHAR DriveNumber; // Int 0x13 drive number (e.g. 0x80) member
/reactos/base/setup/lib/utils/
H A Dbldrsup.c246 ULONG DriveNumber = 0; in FreeLdrMigrateBootDrivePartWorker() local
256 DriveNumber = wcstoul(p, (PWCHAR*)&p, 0); in FreeLdrMigrateBootDrivePartWorker()
257 if (DriveNumber >= 0x80) in FreeLdrMigrateBootDrivePartWorker()
260 DriveNumber -= 0x80; in FreeLdrMigrateBootDrivePartWorker()
273 DriveNumber = _wtoi(&p[2]); in FreeLdrMigrateBootDrivePartWorker()
284 L"multi(0)disk(0)fdisk(%lu)", DriveNumber); in FreeLdrMigrateBootDrivePartWorker()
291 DriveNumber, PartitionNumber); in FreeLdrMigrateBootDrivePartWorker()
297 L"multi(0)disk(0)cdrom(%lu)", DriveNumber); in FreeLdrMigrateBootDrivePartWorker()

12