ReactOS  0.4.15-dev-318-g99b52df
halxbox.h File Reference
#include <hal.h>
#include <ntdddisk.h>
Include dependency graph for halxbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TAG_HAL_XBOX   'XlaH'
 
#define SMB_IO_BASE   0xC000
 
#define SMB_GLOBAL_STATUS   (0 + SMB_IO_BASE)
 
#define SMB_GLOBAL_ENABLE   (2 + SMB_IO_BASE)
 
#define SMB_HOST_ADDRESS   (4 + SMB_IO_BASE)
 
#define SMB_HOST_DATA   (6 + SMB_IO_BASE)
 
#define SMB_HOST_COMMAND   (8 + SMB_IO_BASE)
 
#define SMB_DEVICE_SMC_PIC16LC   0x10
 
#define SMC_REG_POWER   0x02
 
#define SMC_REG_POWER_RESET   0x01
 
#define SMC_REG_POWER_CYCLE   0x40
 
#define SMC_REG_POWER_SHUTDOWN   0x80
 

Functions

VOID HalpXboxInitPciBus (PBUS_HANDLER BusHandler)
 
VOID HalpXboxInitPartIo (VOID)
 

Macro Definition Documentation

◆ SMB_DEVICE_SMC_PIC16LC

#define SMB_DEVICE_SMC_PIC16LC   0x10

Definition at line 30 of file halxbox.h.

◆ SMB_GLOBAL_ENABLE

#define SMB_GLOBAL_ENABLE   (2 + SMB_IO_BASE)

Definition at line 25 of file halxbox.h.

◆ SMB_GLOBAL_STATUS

#define SMB_GLOBAL_STATUS   (0 + SMB_IO_BASE)

Definition at line 24 of file halxbox.h.

◆ SMB_HOST_ADDRESS

#define SMB_HOST_ADDRESS   (4 + SMB_IO_BASE)

Definition at line 26 of file halxbox.h.

◆ SMB_HOST_COMMAND

#define SMB_HOST_COMMAND   (8 + SMB_IO_BASE)

Definition at line 28 of file halxbox.h.

◆ SMB_HOST_DATA

#define SMB_HOST_DATA   (6 + SMB_IO_BASE)

Definition at line 27 of file halxbox.h.

◆ SMB_IO_BASE

#define SMB_IO_BASE   0xC000

Definition at line 22 of file halxbox.h.

◆ SMC_REG_POWER

#define SMC_REG_POWER   0x02

Definition at line 32 of file halxbox.h.

◆ SMC_REG_POWER_CYCLE

#define SMC_REG_POWER_CYCLE   0x40

Definition at line 34 of file halxbox.h.

◆ SMC_REG_POWER_RESET

#define SMC_REG_POWER_RESET   0x01

Definition at line 33 of file halxbox.h.

◆ SMC_REG_POWER_SHUTDOWN

#define SMC_REG_POWER_SHUTDOWN   0x80

Definition at line 35 of file halxbox.h.

◆ TAG_HAL_XBOX

#define TAG_HAL_XBOX   'XlaH'

Definition at line 20 of file halxbox.h.

Function Documentation

◆ HalpXboxInitPartIo()

VOID HalpXboxInitPartIo ( VOID  )

Definition at line 331 of file part_xbox.c.

332 {
341 }
static VOID FASTCALL HalpXboxExamineMBR(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG MBRTypeIdentifier, OUT PVOID *Buffer)
Definition: part_xbox.c:156
static NTSTATUS FASTCALL HalpXboxIoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
Definition: part_xbox.c:290
static pHalIoSetPartitionInformation NtoskrnlIoSetPartitionInformation
Definition: part_xbox.c:25
#define HalIoReadPartitionTable
Definition: part_xbox.c:326
#define HalIoSetPartitionInformation
Definition: part_xbox.c:327
#define HalIoWritePartitionTable
Definition: part_xbox.c:328
#define HalExamineMBR
Definition: part_xbox.c:325
static pHalExamineMBR NtoskrnlExamineMBR
Definition: part_xbox.c:23
static NTSTATUS FASTCALL HalpXboxIoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG PartitionNumber, IN ULONG PartitionType)
Definition: part_xbox.c:257
static pHalIoWritePartitionTable NtoskrnlIoWritePartitionTable
Definition: part_xbox.c:26
static NTSTATUS FASTCALL HalpXboxIoReadPartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN BOOLEAN ReturnRecognizedPartitions, OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer)
Definition: part_xbox.c:190
static pHalIoReadPartitionTable NtoskrnlIoReadPartitionTable
Definition: part_xbox.c:24

Referenced by HalpInitPhase0().

◆ HalpXboxInitPciBus()

VOID HalpXboxInitPciBus ( PBUS_HANDLER  BusHandler)