ReactOS  0.4.13-dev-257-gfabbd7c
archmach.c File Reference
#include <freeldr.h>
Include dependency graph for archmach.c:

Go to the source code of this file.

Functions

VOID MachInit (const char *CmdLine)
 

Function Documentation

◆ MachInit()

VOID MachInit ( const char CmdLine)

Definition at line 22 of file archmach.c.

23 {
24  ULONG PciId;
25 
26  memset(&MachVtbl, 0, sizeof(MACHVTBL));
27 
28  /* Check for Xbox by identifying device at PCI 0:0:0, if it's
29  * 0x10de/0x02a5 then we're running on an Xbox */
30  WRITE_PORT_ULONG((ULONG*) 0xcf8, CONFIG_CMD(0, 0, 0));
31  PciId = READ_PORT_ULONG((ULONG*) 0xcfc);
32  if (0x02a510de == PciId)
33  {
35  }
36  else
37  {
39  }
40 
42 }
char CmdLine[0x100]
Definition: mach.c:35
VOID HalpCalibrateStallExecution(VOID)
Definition: hardware.c:102
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
Definition: portio.c:70
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
Definition: portio.c:123
VOID XboxMachInit(const char *CmdLine)
Definition: machxbox.c:171
VOID PcMachInit(const char *CmdLine)
Definition: machpc.c:1360
#define CONFIG_CMD(bus, dev_fn, where)
Definition: hardware.h:23
unsigned int ULONG
Definition: retypes.h:1
MACHVTBL MachVtbl
Definition: machine.c:21
#define memset(x, y, z)
Definition: compat.h:39