ReactOS  0.4.14-dev-552-g2fad488
winldr.h
Go to the documentation of this file.
1 /*
2  * PROJECT: FreeLoader
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Windows-compatible NT OS Loader.
5  * COPYRIGHT: Copyright 2006-2019 Aleksey Bragin <aleksey@reactos.org>
6  */
7 
8 #pragma once
9 
10 #include <arc/setupblk.h>
11 
12 // See freeldr/ntldr/winldr.h
13 #define TAG_WLDR_DTE 'eDlW'
14 #define TAG_WLDR_BDE 'dBlW'
15 #define TAG_WLDR_NAME 'mNlW'
16 
17 // Some definitions
18 
19 #include <pshpack1.h>
20 typedef struct /* Root System Descriptor Pointer */
21 {
22  CHAR signature [8]; /* contains "RSD PTR " */
23  UCHAR checksum; /* to make sum of struct == 0 */
24  CHAR oem_id [6]; /* OEM identification */
25  UCHAR revision; /* Must be 0 for 1.0, 2 for 2.0 */
26  ULONG rsdt_physical_address; /* 32-bit physical address of RSDT */
27  ULONG length; /* XSDT Length in bytes including hdr */
28  ULONGLONG xsdt_physical_address; /* 64-bit physical address of XSDT */
29  UCHAR extended_checksum; /* Checksum of entire table */
30  CHAR reserved [3]; /* reserved field must be 0 */
32 #include <poppack.h>
33 
34 typedef struct _ARC_DISK_SIGNATURE_EX
35 {
39 
41 //
42 // ReactOS Loading Functions
43 //
45 
48  IN ULONG Argc,
49  IN PCHAR Argv[],
50  IN PCHAR Envp[]);
51 
54  IN ULONG Argc,
55  IN PCHAR Argv[],
56  IN PCHAR Envp[]);
57 
58 
59 // conversion.c and conversion.h
60 PVOID VaToPa(PVOID Va);
61 PVOID PaToVa(PVOID Pa);
62 VOID List_PaToVa(_In_ LIST_ENTRY *ListEntry);
UCHAR revision
Definition: winldr.h:25
signed char * PCHAR
Definition: retypes.h:7
UCHAR checksum
Definition: winldr.h:23
struct _ARC_DISK_SIGNATURE_EX ARC_DISK_SIGNATURE_EX
ULONGLONG xsdt_physical_address
Definition: winldr.h:28
#define IN
Definition: typedefs.h:38
ARC_STATUS LoadAndBootWindows(IN ULONG Argc, IN PCHAR Argv[], IN PCHAR Envp[])
Definition: winldr.c:722
VOID List_PaToVa(_In_ LIST_ENTRY *ListEntry)
PVOID PaToVa(PVOID Pa)
Definition: conversion.h:22
char CHAR
Definition: xmlstorage.h:175
ULONG ARC_STATUS
Definition: arc.h:4
struct RSDP_DESCRIPTOR * PRSDP_DESCRIPTOR
PVOID VaToPa(PVOID Va)
Definition: conversion.h:15
ULONG length
Definition: winldr.h:27
struct _ARC_DISK_SIGNATURE_EX * PARC_DISK_SIGNATURE_EX
r reserved
Definition: btrfs.c:2865
CHAR ArcName[MAX_PATH]
Definition: winldr.h:37
uint64_t ULONGLONG
Definition: typedefs.h:65
#define MAX_PATH
Definition: compat.h:26
ARC_DISK_SIGNATURE DiskSignature
Definition: winldr.h:36
unsigned char UCHAR
Definition: xmlstorage.h:181
Definition: typedefs.h:117
#define _In_
Definition: no_sal2.h:204
ULONG rsdt_physical_address
Definition: winldr.h:26
UCHAR extended_checksum
Definition: winldr.h:29
ARC_STATUS LoadReactOSSetup(IN ULONG Argc, IN PCHAR Argv[], IN PCHAR Envp[])
Definition: setupldr.c:178
unsigned int ULONG
Definition: retypes.h:1