ReactOS  0.4.13-dev-479-gec9c8fd
pcbios.h File Reference
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for pcbios.h:

Go to the source code of this file.

Classes

struct  BIOS_MEMORY_MAP
 
struct  _ACPI_BIOS_DATA
 
struct  DWORDREGS
 
struct  WORDREGS
 
struct  BYTEREGS
 
union  REGS
 

Macros

#define INT386_SUCCESS(regs)   ((regs.x.eflags & EFLAGS_CF) == 0)
 
#define REGS_EAX   0
 
#define REGS_EBX   4
 
#define REGS_ECX   8
 
#define REGS_EDX   12
 
#define REGS_ESI   16
 
#define REGS_EDI   20
 
#define REGS_EBP   24
 
#define REGS_DS   28
 
#define REGS_ES   30
 
#define REGS_FS   32
 
#define REGS_GS   34
 
#define REGS_EFLAGS   36
 
#define REGS_SIZE   40
 

Typedefs

typedef struct BIOS_MEMORY_MAPPBIOS_MEMORY_MAP
 
typedef struct _ACPI_BIOS_DATA ACPI_BIOS_DATA
 
typedef struct _ACPI_BIOS_DATAPACPI_BIOS_DATA
 

Enumerations

enum  BIOS_MEMORY_TYPE {
  BiosMemoryUsable = 1, BiosMemoryBootLoader, BiosMemoryBootStrap, BiosMemoryReserved,
  BiosMemoryUsable = 1, BiosMemoryReserved = 2, BiosMemoryAcpiReclaim = 3, BiosMemoryAcpiNvs = 4,
  BiosMemoryUnusable = 5, BiosMemoryDisabled = 6, BiosMemoryPersistent = 7, BiosMemoryUndefined08 = 8,
  BiosMemoryUndefined09 = 9, BiosMemoryUndefined10 = 10, BiosMemoryUndefined11 = 11, BiosMemoryOemDefined12 = 12
}
 

Functions

 C_ASSERT (FIELD_OFFSET(BIOS_MEMORY_MAP, ExtendedAttributes)==20)
 
 C_ASSERT (sizeof(BIOS_MEMORY_MAP)==24)
 
int __cdecl Int386 (int ivec, REGS *in, REGS *out)
 
void EnableA20 (void)
 
VOID __cdecl ChainLoadBiosBootSectorCode (VOID)
 
VOID __cdecl Reboot (VOID)
 
VOID DetectHardware (VOID)
 

Macro Definition Documentation

◆ INT386_SUCCESS

#define INT386_SUCCESS (   regs)    ((regs.x.eflags & EFLAGS_CF) == 0)

Definition at line 159 of file pcbios.h.

◆ REGS_DS

#define REGS_DS   28

Definition at line 176 of file pcbios.h.

◆ REGS_EAX

#define REGS_EAX   0

Definition at line 169 of file pcbios.h.

◆ REGS_EBP

#define REGS_EBP   24

Definition at line 175 of file pcbios.h.

◆ REGS_EBX

#define REGS_EBX   4

Definition at line 170 of file pcbios.h.

◆ REGS_ECX

#define REGS_ECX   8

Definition at line 171 of file pcbios.h.

◆ REGS_EDI

#define REGS_EDI   20

Definition at line 174 of file pcbios.h.

◆ REGS_EDX

#define REGS_EDX   12

Definition at line 172 of file pcbios.h.

◆ REGS_EFLAGS

#define REGS_EFLAGS   36

Definition at line 180 of file pcbios.h.

◆ REGS_ES

#define REGS_ES   30

Definition at line 177 of file pcbios.h.

◆ REGS_ESI

#define REGS_ESI   16

Definition at line 173 of file pcbios.h.

◆ REGS_FS

#define REGS_FS   32

Definition at line 178 of file pcbios.h.

◆ REGS_GS

#define REGS_GS   34

Definition at line 179 of file pcbios.h.

◆ REGS_SIZE

#define REGS_SIZE   40

Definition at line 181 of file pcbios.h.

Typedef Documentation

◆ ACPI_BIOS_DATA

◆ PACPI_BIOS_DATA

◆ PBIOS_MEMORY_MAP

Enumeration Type Documentation

◆ BIOS_MEMORY_TYPE

Enumerator
BiosMemoryUsable 
BiosMemoryBootLoader 
BiosMemoryBootStrap 
BiosMemoryReserved 
BiosMemoryUsable 
BiosMemoryReserved 
BiosMemoryAcpiReclaim 
BiosMemoryAcpiNvs 
BiosMemoryUnusable 
BiosMemoryDisabled 
BiosMemoryPersistent 
BiosMemoryUndefined08 
BiosMemoryUndefined09 
BiosMemoryUndefined10 
BiosMemoryUndefined11 
BiosMemoryOemDefined12 

Definition at line 6 of file pcbios.h.

7 {
8  // ACPI 1.0.
13  // ACPI 3.0.
15  // ACPI 4.0.
17  // ACPI 6.0.
24  // BiosMemoryUndefinedNN = 13-0xEFFFFFFF
25  // BiosMemoryOemDefinedNN = 0xF0000000-0xFFFFFFFF
BIOS_MEMORY_TYPE
Definition: pcbios.h:6

Function Documentation

◆ C_ASSERT() [1/2]

C_ASSERT ( FIELD_OFFSET(BIOS_MEMORY_MAP, ExtendedAttributes)  = =20)

◆ C_ASSERT() [2/2]

C_ASSERT ( sizeof(BIOS_MEMORY_MAP = =24)

◆ ChainLoadBiosBootSectorCode()

VOID __cdecl ChainLoadBiosBootSectorCode ( VOID  )

◆ DetectHardware()

VOID DetectHardware ( VOID  )

◆ EnableA20()

void EnableA20 ( void  )

◆ Int386()

◆ Reboot()

VOID __cdecl Reboot ( VOID  )

Definition at line 37 of file hardware.h.

38 {
39  DbgBreakPoint();
40 }
void DbgBreakPoint()
Definition: mach.c:558