|
ReactOS 0.4.16-dev-2208-g6350669
|

Go to the source code of this file.
Classes | |
| struct | _GPT_TABLE_HEADER |
| struct | _GPT_PARTITION_ENTRY |
| struct | tagDISKCONTEXT |
| struct | _INTERNAL_UEFI_DISK |
Macros | |
| #define | TAG_HW_RESOURCE_LIST 'lRwH' |
| #define | TAG_HW_DISK_CONTEXT 'cDwH' |
| #define | FIRST_BIOS_DISK 0x80 |
| #define | FIRST_PARTITION 1 |
| #define | MAX_SUPPORTED_BLOCK_SIZE 8192 |
| #define | EFI_PARTITION_HEADER_SIGNATURE "EFI PART" |
| #define | EFI_HEADER_LOCATION 1ULL |
| #define | EFI_TABLE_REVISION 0x00010000 |
| #define | EFI_PARTITION_ENTRIES_BLOCK 2ULL |
| #define | EFI_PARTITION_ENTRY_COUNT 128 |
| #define | EFI_PARTITION_ENTRY_SIZE 128 |
| #define | EFI_PARTITION_NAME_LENGTH 36 |
| #define | EFI_PART_TYPE_UNUSED_GUID {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}} |
| #define | EFI_PART_TYPE_EFI_SYSTEM_PART_GUID {0xc12a7328, 0xf81f, 0x11d2, {0xba, 0x4b, 0x00, 0xa0, 0xc9, 0x3e, 0xc9, 0x3b}} |
Typedefs | |
| typedef struct _GPT_TABLE_HEADER | GPT_TABLE_HEADER |
| typedef struct _GPT_TABLE_HEADER * | PGPT_TABLE_HEADER |
| typedef struct _GPT_PARTITION_ENTRY | GPT_PARTITION_ENTRY |
| typedef struct _GPT_PARTITION_ENTRY * | PGPT_PARTITION_ENTRY |
| typedef struct tagDISKCONTEXT | DISKCONTEXT |
| typedef struct _INTERNAL_UEFI_DISK | INTERNAL_UEFI_DISK |
| typedef struct _INTERNAL_UEFI_DISK * | PINTERNAL_UEFI_DISK |
Variables | |
| EFI_SYSTEM_TABLE * | GlobalSystemTable |
| EFI_HANDLE | GlobalImageHandle |
| EFI_HANDLE | PublicBootHandle |
| PVOID | DiskReadBuffer |
| static PVOID | DiskReadBufferRaw |
| static ULONG | DiskReadBufferAlignment |
| static BOOLEAN | DiskReadBufferFromPool |
| UCHAR | PcBiosDiskCount |
| UCHAR | FrldrBootDrive |
| ULONG | FrldrBootPartition |
| SIZE_T | DiskReadBufferSize |
| PVOID | Buffer |
| static const CHAR | Hex [] = "0123456789abcdef" |
| static CHAR | PcDiskIdentifier [32][20] |
| static ULONG | UefiBootRootIndex = 0 |
| static ULONG | PublicBootArcDisk = 0 |
| static INTERNAL_UEFI_DISK * | InternalUefiDisk = NULL |
| static EFI_GUID | BlockIoGuid = BLOCK_IO_PROTOCOL |
| static EFI_HANDLE * | handles = NULL |
| static ULONG | HandleCount = 0 |
| static LONG | lReportError = 0 |
| static const DEVVTBL | UefiDiskVtbl |
Definition at line 25 of file uefidisk.c.
| #define EFI_PART_TYPE_EFI_SYSTEM_PART_GUID {0xc12a7328, 0xf81f, 0x11d2, {0xba, 0x4b, 0x00, 0xa0, 0xc9, 0x3e, 0xc9, 0x3b}} |
Definition at line 36 of file uefidisk.c.
| #define EFI_PART_TYPE_UNUSED_GUID {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}} |
Definition at line 33 of file uefidisk.c.
Definition at line 27 of file uefidisk.c.
| #define EFI_PARTITION_ENTRY_COUNT 128 |
Definition at line 28 of file uefidisk.c.
| #define EFI_PARTITION_ENTRY_SIZE 128 |
Definition at line 29 of file uefidisk.c.
| #define EFI_PARTITION_HEADER_SIGNATURE "EFI PART" |
Definition at line 24 of file uefidisk.c.
| #define EFI_PARTITION_NAME_LENGTH 36 |
Definition at line 30 of file uefidisk.c.
| #define EFI_TABLE_REVISION 0x00010000 |
Definition at line 26 of file uefidisk.c.
| #define FIRST_BIOS_DISK 0x80 |
Definition at line 17 of file uefidisk.c.
| #define FIRST_PARTITION 1 |
Definition at line 18 of file uefidisk.c.
| #define MAX_SUPPORTED_BLOCK_SIZE 8192 |
Definition at line 21 of file uefidisk.c.
| #define TAG_HW_DISK_CONTEXT 'cDwH' |
Definition at line 16 of file uefidisk.c.
| #define TAG_HW_RESOURCE_LIST 'lRwH' |
Definition at line 15 of file uefidisk.c.
| typedef struct tagDISKCONTEXT DISKCONTEXT |
| typedef struct _GPT_TABLE_HEADER GPT_TABLE_HEADER |
| typedef struct _GPT_PARTITION_ENTRY * PGPT_PARTITION_ENTRY |
| typedef struct _GPT_TABLE_HEADER * PGPT_TABLE_HEADER |
| typedef struct _INTERNAL_UEFI_DISK * PINTERNAL_UEFI_DISK |
| DBG_DEFAULT_CHANNEL | ( | WARNING | ) |
Definition at line 194 of file uefidisk.c.
Referenced by GetHarddiskInformation().
Definition at line 835 of file uefidisk.c.
Referenced by UefiSetupBlockDevices().
|
static |
Definition at line 573 of file uefidisk.c.
Definition at line 1563 of file uefidisk.c.
Referenced by MachInit().
Definition at line 1513 of file uefidisk.c.
Referenced by MachInit().
|
static |
Definition at line 582 of file uefidisk.c.
|
static |
Definition at line 604 of file uefidisk.c.
|
static |
Definition at line 697 of file uefidisk.c.
| BOOLEAN UefiDiskReadLogicalSectors | ( | IN UCHAR | DriveNumber, |
| IN ULONGLONG | SectorNumber, | ||
| IN ULONG | SectorCount, | ||
| OUT PVOID | Buffer | ||
| ) |
Definition at line 1378 of file uefidisk.c.
Referenced by MachInit().
|
static |
Definition at line 793 of file uefidisk.c.
Definition at line 137 of file uefidisk.c.
Referenced by UefiDiskRead(), UefiDiskReadLogicalSectors(), UefiInitializeBootDevices(), UefiReadGptHeader(), and UefiSetupBlockDevices().
|
static |
Definition at line 360 of file uefidisk.c.
Referenced by UefiSetBootpath().
Definition at line 1371 of file uefidisk.c.
Referenced by MachInit().
| BOOLEAN UefiGetGptPartitionEntry | ( | IN UCHAR | DriveNumber, |
| IN ULONG | PartitionNumber, | ||
| OUT PPARTITION_TABLE_ENTRY | PartitionTableEntry | ||
| ) |
Definition at line 273 of file uefidisk.c.
Referenced by DiskGetPartitionEntry().
Definition at line 1282 of file uefidisk.c.
Referenced by MachInit().
Definition at line 122 of file uefidisk.c.
Referenced by UefiDiskReadLogicalSectors(), and UefiEnsureDiskReadBufferAligned().
|
static |
Definition at line 207 of file uefidisk.c.
Referenced by UefiGetBootPartitionEntry(), and UefiGetGptPartitionEntry().
Definition at line 1191 of file uefidisk.c.
Referenced by UefiInitializeBootDevices().
Definition at line 935 of file uefidisk.c.
Referenced by UefiInitializeBootDevices().
|
static |
Definition at line 116 of file uefidisk.c.
Referenced by UefiDiskGetCacheableBlockCount(), UefiDiskGetDriveGeometry(), UefiDiskOpen(), UefiDiskRead(), UefiDiskReadLogicalSectors(), UefiGetBootPartitionEntry(), UefiGetGptPartitionEntry(), UefiInitializeBootDevices(), UefiReadGptHeader(), UefiSetBootpath(), and UefiSetupBlockDevices().
Definition at line 107 of file uefidisk.c.
Referenced by GetHarddiskInformation(), and UefiInitializeBootDevices().
| PVOID DiskReadBuffer |
Definition at line 98 of file uefidisk.c.
Referenced by GetHarddiskInformation(), UefiDiskRead(), UefiDiskReadLogicalSectors(), UefiEnsureDiskReadBufferAligned(), UefiGetBootPartitionEntry(), UefiGetGptPartitionEntry(), UefiInitializeBootDevices(), and UefiReadGptHeader().
|
static |
Definition at line 100 of file uefidisk.c.
Referenced by UefiEnsureDiskReadBufferAligned(), and UefiInitializeBootDevices().
|
static |
Definition at line 101 of file uefidisk.c.
Referenced by UefiEnsureDiskReadBufferAligned(), and UefiInitializeBootDevices().
|
static |
Definition at line 99 of file uefidisk.c.
Referenced by UefiEnsureDiskReadBufferAligned(), and UefiInitializeBootDevices().
| SIZE_T DiskReadBufferSize |
Definition at line 106 of file uefidisk.c.
Referenced by UefiDiskOpen(), UefiDiskRead(), UefiDiskReadLogicalSectors(), UefiEnsureDiskReadBufferAligned(), and UefiInitializeBootDevices().
| UCHAR FrldrBootDrive |
Definition at line 104 of file uefidisk.c.
Referenced by ChainLoadBiosBootSectorCode(), DiskGetBootPath(), DiskGetConfigType(), EnumerateHarddisks(), FrldrGetBootDrive(), Pc98InitializeBootDevices(), PcInitializeBootDevices(), UefiInitializeBootDevices(), and UefiSetBootpath().
| ULONG FrldrBootPartition |
Definition at line 105 of file uefidisk.c.
Referenced by ChainLoadBiosBootSectorCode(), DiskGetBootPath(), DiskGetConfigType(), FrldrGetBootPartition(), Pc98InitializeBootDevices(), and UefiSetBootpath().
|
extern |
|
extern |
Definition at line 16 of file uefildr.c.
Referenced by UefiDiskGetCacheableBlockCount(), UefiDiskGetDriveGeometry(), UefiDiskOpen(), UefiDiskRead(), UefiDiskReadLogicalSectors(), UefiEnsureDiskReadBufferAligned(), UefiGetBootPartitionEntry(), UefiGetGptPartitionEntry(), UefiInitializeBootDevices(), UefiReadGptHeader(), UefiSetBootpath(), and UefiSetupBlockDevices().
|
static |
Definition at line 118 of file uefidisk.c.
Referenced by $include(), ConsoleEfiGraphicalOpenProtocol(), CopyBackStatus(), EfiLocateHandleBuffer(), ExpDesktopOpen(), GetPerformanceInfo(), IopCloseFile(), LockHandles(), NtQueryInformationProcess(), NtQueryOpenSubKeys(), ObGetProcessHandleCount(), OpenProc(), PerfDataGetHandleCount(), PerfDataGetSystemHandleCount(), test_query_process(), UefiGetBootPartitionEntry(), UefiSetBootpath(), UefiSetupBlockDevices(), UnlockHandles(), UserCreateHandleTable(), VfatLockOrUnlockVolume(), WahInsertHandleContext(), WSPSelect(), and ZeroEvents().
|
static |
Definition at line 117 of file uefidisk.c.
Referenced by _enumerateConnectedW(), apartment_hostobject_in_hostapt(), create_io_inherit_block(), d3dx9_fragment_linker_LinkPixelShader(), d3dx9_fragment_linker_LinkShader(), d3dx9_fragment_linker_LinkVertexShader(), decode_file_layout_handles(), EMF_PlayEnhMetaFileCallback(), get_constant_by_name(), local_server_thread(), MCI_SendCommandAsync(), PlayEnhMetaFileRecord(), PlayMetaFileRecord(), start_debugger(), task_proc(), test_CoWaitForMultipleHandles(), test_CoWaitForMultipleHandles_thread(), test_ffcnMultipleThreads(), test_file_inherit(), test_ProcThreadAttributeList(), test_register_local_server(), UefiGetBootPartitionEntry(), UefiSetBootpath(), UefiSetupBlockDevices(), wait_async_request(), wait_for_completion(), Wait_thread_proc(), WaitForMultipleObjects(), WaitForMultipleObjectsEx(), waitqueue_thread_proc(), and WNetCloseEnum().
Definition at line 109 of file uefidisk.c.
Referenced by GetHarddiskInformation().
|
static |
Definition at line 115 of file uefidisk.c.
Referenced by GetHarddiskInformation(), UefiDiskGetCacheableBlockCount(), UefiDiskGetDriveGeometry(), UefiDiskOpen(), UefiDiskRead(), UefiDiskReadLogicalSectors(), UefiGetBootPartitionEntry(), UefiGetGptPartitionEntry(), UefiInitializeBootDevices(), UefiReadGptHeader(), UefiSetBootpath(), and UefiSetupBlockDevices().
|
static |
Definition at line 191 of file uefidisk.c.
Referenced by DiskReportError().
| UCHAR PcBiosDiskCount |
Definition at line 102 of file uefidisk.c.
Referenced by DetectBiosDisks(), GetHarddiskInformation(), UefiDiskOpen(), UefiDiskRead(), UefiDiskReadLogicalSectors(), UefiGetBootPartitionEntry(), UefiGetGptPartitionEntry(), UefiInitializeBootDevices(), UefiReadGptHeader(), UefiSetBootpath(), and UefiSetupBlockDevices().
|
static |
Definition at line 110 of file uefidisk.c.
Referenced by GetHarddiskIdentifier(), and GetHarddiskInformation().
|
static |
Definition at line 114 of file uefidisk.c.
Referenced by UefiInitializeBootDevices(), UefiSetBootpath(), and UefiSetupBlockDevices().
|
extern |
Definition at line 38 of file uefimem.c.
Referenced by UefiMemGetMemoryMap(), and UefiSetupBlockDevices().
|
static |
Definition at line 113 of file uefidisk.c.
Referenced by UefiGetBootPartitionEntry(), UefiSetBootpath(), and UefiSetupBlockDevices().
Definition at line 824 of file uefidisk.c.
Referenced by GetHarddiskInformation(), and UefiInitializeBootDevices().