#include "precomp.h"
#include <bootmbr.h>
Go to the source code of this file.
Classes | |
struct | _tagCHS |
Defines | |
#define | MAX_TRANSFER 65536 |
#define | PSTART(p) |
#define | PLENGTH(p) |
#define | ZeroPartitionTableEntry(p) SetPartitionTableEntry(p,0,SYSID_UNUSED,0,0,NULL); |
#define | SECCNT(l) ((ULONG)(((ULONGLONG)l.QuadPart)/((ULONGLONG)bps))) |
Typedefs | |
typedef _tagCHS | CHS |
typedef _tagCHS * | PCHS |
Functions | |
ARC_STATUS | LowOpenDisk (IN PCHAR DevicePath, OUT PULONG DiskId) |
ARC_STATUS | LowCloseDisk (IN ULONG DiskId) |
ARC_STATUS | LowGetDriveGeometry (IN PCHAR DevicePath, OUT PULONG TotalSectorCount, OUT PULONG SectorSize, OUT PULONG SectorsPerTrack, OUT PULONG Heads) |
ARC_STATUS | LowGetPartitionGeometry (IN PCHAR PartitionPath, OUT PULONG TotalSectorCount, OUT PULONG SectorSize, OUT PULONG SectorsPerTrack, OUT PULONG Heads) |
ARC_STATUS | LowReadSectors (IN ULONG VolumeId, IN ULONG SectorSize, IN ULONG StartingSector, IN ULONG NumberOfSectors, OUT PVOID Buffer) |
ARC_STATUS | LowWriteSectors (IN ULONG VolumeId, IN ULONG SectorSize, IN ULONG StartingSector, IN ULONG NumberOfSectors, IN PVOID Buffer) |
PCHAR | AlGetPathnameFromComponent (IN PCONFIGURATION_COMPONENT Component) |
ARC_STATUS | LowQueryPathFromComponent (IN PCONFIGURATION_COMPONENT Component, OUT PCHAR *Path) |
ARC_STATUS | LowTraverseChildren (IN PCONFIGURATION_COMPONENT Parent, IN CONFIGURATION_CLASS *ConfigClass OPTIONAL, IN CONFIGURATION_TYPE *ConfigType OPTIONAL, IN OUT PCONFIGURATION_COMPONENT *MatchingArray OPTIONAL, IN OUT PULONG CurrentLength) |
ARC_STATUS | LowQueryComponentList (IN CONFIGURATION_CLASS *ConfigClass OPTIONAL, IN CONFIGURATION_TYPE *ConfigType OPTIONAL, OUT PCONFIGURATION_COMPONENT **ComponentList, OUT PULONG ListLength) |
ARC_STATUS | LowQueryPathList (IN CONFIGURATION_CLASS *ConfigClass OPTIONAL, IN CONFIGURATION_TYPE *ConfigType OPTIONAL, OUT PCHAR **PathList, OUT PULONG ListLength) |
ARC_STATUS | LowFreePathList (IN PCHAR *PathList, IN ULONG ListLength) |
ARC_STATUS | LowQueryFdiskPathList (OUT PCHAR **PathList, OUT PULONG ListLength) |
ARC_STATUS | LowFreeFdiskPathList (IN OUT PCHAR *PathList, IN ULONG ListLength) |
ARC_STATUS | LowGetDiskLayout (IN PCHAR Path, OUT PDRIVE_LAYOUT_INFORMATION *DriveLayout) |
VOID | CalculateCHSVals (IN ULONG Start, IN ULONG Size, IN ULONG spt, IN ULONG h, OUT PCHS chs) |
VOID | SetPartitionTableEntry (IN OUT PPARTITION_DESCRIPTOR p, IN UCHAR Active, IN UCHAR SysID, IN ULONG RelativeSector, IN ULONG SectorCount, IN PCHS chs) |
VOID | ZeroPartitionTable (PPARTITION_DESCRIPTOR PartitionTable) |
ARC_STATUS | LowSetDiskLayout (IN PCHAR Path, IN PDRIVE_LAYOUT_INFORMATION DriveLayout) |
Variables | |
PCHAR | MnemonicTable [] |
CHAR | Pathname [256] |
|
Definition at line 208 of file low.c. Referenced by LowReadSectors(), and LowWriteSectors(). |
|
Value:
Referenced by LowGetDiskLayout(). |
|
Value:
Referenced by LowGetDiskLayout(). |
|
Referenced by LowSetDiskLayout(). |
|
Definition at line 1060 of file low.c. Referenced by LowSetDiskLayout(), and ZeroPartitionTable(). |
|
|
|
|
|
Definition at line 422 of file low.c. References ArcGetParent, CHAR, MnemonicTable, NULL, Pathname, PCONFIGURATION_COMPONENT, and sprintf(). Referenced by LowQueryPathFromComponent().
|
|
Definition at line 980 of file low.c. References End, Size, Start, and USHORT. Referenced by LowSetDiskLayout().
|
|
Definition at line 36 of file low.c. References ArcClose. Referenced by CheckIfDiskIsOffLine(), LowGetDiskLayout(), LowSetDiskLayout(), and ZapSector().
|
|
Definition at line 786 of file low.c. References LowFreePathList(). Referenced by FdiskCleanUp().
|
|
Definition at line 721 of file low.c. References ESUCCESS, and FreeMemory. Referenced by FmtFreeFatPartitionList(), FmtQueryFatPartitionList(), LowFreeFdiskPathList(), and LowQueryPathList().
|
|
Definition at line 812 of file low.c. References _PARTITION_DESCRIPTOR::ActiveFlag, AlAllocateHeap(), AlDeallocateHeap(), AlReallocateHeap(), ARC_STATUS, BOOT_RECORD_SIGNATURE, BOOT_SIGNATURE_OFFSET, dummy(), ENOMEM, ESUCCESS, FALSE, Handle, LowCloseDisk(), LowGetDriveGeometry(), LowOpenDisk(), LowReadSectors(), NULL, NUM_PARTITION_TABLE_ENTRIES, PARTITION_TABLE_OFFSET, _PARTITION_DESCRIPTOR::PartitionType, PLENGTH, PSTART, PUSHORT, SYSID_EXTENDED, SYSID_UNUSED, and TRUE. Referenced by InitializePartitionLists().
|
|
Definition at line 59 of file low.c. References Buffer, LowGetPartitionGeometry(), SectorSize, and sprintf(). Referenced by GetGeometry(), LowGetDiskLayout(), and LowSetDiskLayout().
|
|
Definition at line 76 of file low.c. References ARC_STATUS, ArcClose, ArcGetComponent, ArcGetConfigurationData, ArcGetFileInformation, ArcOpen, ArcOpenReadOnly, CHAR, _CONFIGURATION_COMPONENT::ConfigurationDataLength, E2BIG, EINVAL, _FILE_INFORMATION::EndingAddress, ESUCCESS, FILE_INFORMATION, NULL, SectorSize, and _FILE_INFORMATION::StartingAddress. Referenced by FmtFatFormat(), FmtIsFat(), and LowGetDriveGeometry().
|
|
Definition at line 6 of file low.c. References ArcOpen, ArcOpenReadWrite, and sprintf(). Referenced by CheckIfDiskIsOffLine(), LowGetDiskLayout(), LowSetDiskLayout(), and ZapSector().
|
|
Definition at line 595 of file low.c. References AllocateMemory, ARC_STATUS, ENOMEM, ESUCCESS, LowTraverseChildren(), and NULL. Referenced by LowQueryPathList().
|
|
Definition at line 756 of file low.c. References CONFIGURATION_TYPE, DiskPeripheral, LowQueryPathList(), and NULL. Referenced by FdiskInitialize().
|
|
Definition at line 486 of file low.c. References AlGetPathnameFromComponent(), AllocateMemory, ENOMEM, ESUCCESS, path, and strlen(). Referenced by LowQueryPathList().
|
|
Definition at line 651 of file low.c. References AllocateMemory, ARC_STATUS, ENOMEM, ESUCCESS, FreeMemory, LowFreePathList(), LowQueryComponentList(), LowQueryPathFromComponent(), and NULL. Referenced by FmtQueryFatPartitionList(), and LowQueryFdiskPathList().
|
|
Definition at line 212 of file low.c. References ARC_STATUS, ArcRead, ArcSeek, Buffer, c, EIO, ESUCCESS, MAX_TRANSFER, min, SectorSize, and SeekAbsolute. Referenced by FmtIsFatPartition(), FmtVerifySectors(), and LowGetDiskLayout().
|
|
Definition at line 1076 of file low.c. References AlAllocateHeap(), AlDeallocateHeap(), ARC_STATUS, ASRT, BOOT_RECORD_SIGNATURE, BOOT_SIGNATURE_OFFSET, CalculateCHSVals(), dummy(), ENOMEM, ENTRIES_PER_BOOTSECTOR, ESUCCESS, FALSE, Handle, LowCloseDisk(), LowGetDriveGeometry(), LowOpenDisk(), LowWriteSectors(), min, NULL, PARTITION_TABLE_OFFSET, _PARTITION_DESCRIPTOR::PartitionType, PUSHORT, SECCNT, SetPartitionTableEntry(), SYSID_EXTENDED, SYSID_UNUSED, TRUE, ZeroPartitionTable(), and ZeroPartitionTableEntry. Referenced by WriteDriveLayout().
|
|
Definition at line 528 of file low.c. References ARC_STATUS, ArcGetChild, ArcGetPeer, _CONFIGURATION_COMPONENT::Class, CurrentLength, ESUCCESS, and _CONFIGURATION_COMPONENT::Type. Referenced by LowQueryComponentList().
|
|
Definition at line 281 of file low.c. References ARC_STATUS, ArcSeek, ArcWrite, Buffer, c, EIO, ESUCCESS, MAX_TRANSFER, min, SectorSize, and SeekAbsolute. Referenced by FmtFatFormat(), LowSetDiskLayout(), and ZapSector().
|
|
Definition at line 1005 of file low.c. References Active. Referenced by LowSetDiskLayout().
|
|
Definition at line 1063 of file low.c. References ENTRIES_PER_BOOTSECTOR, and ZeroPartitionTableEntry. Referenced by LowSetDiskLayout().
|
|
Definition at line 373 of file low.c. Referenced by AlGetPathnameFromComponent(). |
|
Definition at line 418 of file low.c. Referenced by AlGetPathnameFromComponent(). |