OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
BdsPlatform.h File Reference
#include <Library/DuetBdsLib.h>
#include <Library/DevicePathLib.h>
#include <Protocol/DevicePath.h>

Go to the source code of this file.

Data Structures

struct  PLATFORM_ROOT_BRIDGE_DEVICE_PATH
 
struct  PLATFORM_DUMMY_ISA_KEYBOARD_DEVICE_PATH
 
struct  USB_CLASS_FORMAT_DEVICE_PATH
 

Macros

#define EFI_MEMORY_PRESENT   0x0100000000000000ULL
 
#define EFI_MEMORY_INITIALIZED   0x0200000000000000ULL
 
#define EFI_MEMORY_TESTED   0x0400000000000000ULL
 
#define VarConsoleInpDev   L"ConInDev"
 
#define VarConsoleInp   L"ConIn"
 
#define VarConsoleOutDev   L"ConOutDev"
 
#define VarConsoleOut   L"ConOut"
 
#define VarErrorOutDev   L"ErrOutDev"
 
#define VarErrorOut   L"ErrOut"
 
#define IS_PCI_ISA_PDECODE(_p)
 
#define PCI_DEVICE_PATH_NODE(Func, Dev)
 
#define PNPID_DEVICE_PATH_NODE(PnpId)
 
#define gPciRootBridge    PNPID_DEVICE_PATH_NODE(0x0A03)
 
#define gPciIsaBridge    PCI_DEVICE_PATH_NODE(0, 0x1f)
 
#define gPnpPs2Keyboard    PNPID_DEVICE_PATH_NODE(0x0303)
 
#define gEndEntire
 
#define EFI_SYSTEM_TABLE_MAX_ADDRESS   0xFFFFFFFF
 
#define SYS_TABLE_PAD(ptr)
 
#define CLASS_HID   3
 
#define SUBCLASS_BOOT   1
 
#define PROTOCOL_KEYBOARD   1
 

Variables

BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole []
 
EFI_DEVICE_PATH_PROTOCOL * gPlatformDriverOption []
 
EFI_DEVICE_PATH_PROTOCOL * gPlatformRootBridges []
 
ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode
 
USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath
 
PLATFORM_ROOT_BRIDGE_DEVICE_PATH gPlatformRootBridge0
 

Macro Definition Documentation

◆ CLASS_HID

#define CLASS_HID   3

Definition at line 123 of file BdsPlatform.h.

◆ EFI_MEMORY_INITIALIZED

#define EFI_MEMORY_INITIALIZED   0x0200000000000000ULL

Definition at line 38 of file BdsPlatform.h.

◆ EFI_MEMORY_PRESENT

#define EFI_MEMORY_PRESENT   0x0100000000000000ULL

Definition at line 37 of file BdsPlatform.h.

◆ EFI_MEMORY_TESTED

#define EFI_MEMORY_TESTED   0x0400000000000000ULL

Definition at line 39 of file BdsPlatform.h.

◆ EFI_SYSTEM_TABLE_MAX_ADDRESS

#define EFI_SYSTEM_TABLE_MAX_ADDRESS   0xFFFFFFFF

Definition at line 97 of file BdsPlatform.h.

◆ gEndEntire

#define gEndEntire
Value:
{ \
END_DEVICE_PATH_TYPE, \
END_ENTIRE_DEVICE_PATH_SUBTYPE, \
{ \
END_DEVICE_PATH_LENGTH, \
0 \
} \
}

Definition at line 87 of file BdsPlatform.h.

◆ gPciIsaBridge

#define gPciIsaBridge    PCI_DEVICE_PATH_NODE(0, 0x1f)

Definition at line 81 of file BdsPlatform.h.

◆ gPciRootBridge

#define gPciRootBridge    PNPID_DEVICE_PATH_NODE(0x0A03)

Definition at line 78 of file BdsPlatform.h.

◆ gPnpPs2Keyboard

#define gPnpPs2Keyboard    PNPID_DEVICE_PATH_NODE(0x0303)

Definition at line 84 of file BdsPlatform.h.

◆ IS_PCI_ISA_PDECODE

#define IS_PCI_ISA_PDECODE ( _p)
Value:
IS_CLASS3 (_p, PCI_CLASS_BRIDGE, PCI_CLASS_BRIDGE_ISA_PDECODE, 0)

Definition at line 48 of file BdsPlatform.h.

◆ PCI_DEVICE_PATH_NODE

#define PCI_DEVICE_PATH_NODE ( Func,
Dev )
Value:
{ \
{ \
HARDWARE_DEVICE_PATH, \
HW_PCI_DP, \
{ \
(UINT8) (sizeof (PCI_DEVICE_PATH)), \
(UINT8) ((sizeof (PCI_DEVICE_PATH)) >> 8) \
} \
}, \
(Func), \
(Dev) \
}

Definition at line 50 of file BdsPlatform.h.

◆ PNPID_DEVICE_PATH_NODE

#define PNPID_DEVICE_PATH_NODE ( PnpId)
Value:
{ \
{ \
ACPI_DEVICE_PATH, \
ACPI_DP, \
{ \
(UINT8) (sizeof (ACPI_HID_DEVICE_PATH)), \
(UINT8) ((sizeof (ACPI_HID_DEVICE_PATH)) >> 8) \
} \
}, \
EISA_PNP_ID((PnpId)), \
0 \
}

Definition at line 64 of file BdsPlatform.h.

◆ PROTOCOL_KEYBOARD

#define PROTOCOL_KEYBOARD   1

Definition at line 125 of file BdsPlatform.h.

◆ SUBCLASS_BOOT

#define SUBCLASS_BOOT   1

Definition at line 124 of file BdsPlatform.h.

◆ SYS_TABLE_PAD

#define SYS_TABLE_PAD ( ptr)
Value:
(((~ptr) +1) & 0x07 )

Definition at line 98 of file BdsPlatform.h.

◆ VarConsoleInp

#define VarConsoleInp   L"ConIn"

Definition at line 42 of file BdsPlatform.h.

◆ VarConsoleInpDev

#define VarConsoleInpDev   L"ConInDev"

Definition at line 41 of file BdsPlatform.h.

◆ VarConsoleOut

#define VarConsoleOut   L"ConOut"

Definition at line 44 of file BdsPlatform.h.

◆ VarConsoleOutDev

#define VarConsoleOutDev   L"ConOutDev"

Definition at line 43 of file BdsPlatform.h.

◆ VarErrorOut

#define VarErrorOut   L"ErrOut"

Definition at line 46 of file BdsPlatform.h.

◆ VarErrorOutDev

#define VarErrorOutDev   L"ErrOutDev"

Definition at line 45 of file BdsPlatform.h.

Variable Documentation

◆ gPlatformConsole

BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[]
extern

Definition at line 81 of file PlatformData.c.

◆ gPlatformDriverOption

EFI_DEVICE_PATH_PROTOCOL* gPlatformDriverOption[]
extern

Definition at line 102 of file PlatformData.c.

◆ gPlatformRootBridge0

PLATFORM_ROOT_BRIDGE_DEVICE_PATH gPlatformRootBridge0
extern

Definition at line 30 of file PlatformData.c.

◆ gPlatformRootBridges

EFI_DEVICE_PATH_PROTOCOL* gPlatformRootBridges[]
extern

Definition at line 35 of file PlatformData.c.

◆ gPnpPs2KeyboardDeviceNode

ACPI_HID_DEVICE_PATH gPnpPs2KeyboardDeviceNode
extern

Definition at line 25 of file PlatformData.c.

◆ gUsbClassKeyboardDevicePath

USB_CLASS_FORMAT_DEVICE_PATH gUsbClassKeyboardDevicePath
extern

Definition at line 40 of file PlatformData.c.