ReactOS
0.4.15-dev-2359-g0dedb9b
|
Go to the source code of this file.
Classes | |
struct | _PCIPBUSDATA |
struct | _PCI_CONFIG_HANDLER |
struct | _PCI_REGISTRY_INFO_INTERNAL |
struct | _PCI_TYPE1_CFG_BITS |
struct | _PCI_TYPE2_CSE_BITS |
struct | _PCI_TYPE2_ADDRESS_BITS |
struct | _PCI_TYPE0_CFG_CYCLE_BITS |
struct | _PCI_TYPE1_CFG_CYCLE_BITS |
struct | _ARRAY |
struct | _HAL_BUS_HANDLER |
Macros | |
#define | PCI_ADDRESS_MEMORY_SPACE 0x00000000 |
#define | PASTE2(x, y) x ## y |
#define | POINTER_TO_(x) PASTE2(P,x) |
#define | READ_FROM(x) PASTE2(READ_PORT_, x) |
#define | WRITE_TO(x) PASTE2(WRITE_PORT_, x) |
#define | TYPE_DEFINE(x, y) |
#define | TYPE1_DEFINE(x) TYPE_DEFINE(x, PPCI_TYPE1_CFG_BITS); |
#define | TYPE2_DEFINE(x) TYPE_DEFINE(x, PPCI_TYPE2_ADDRESS_BITS); |
#define | TYPE1_START(x, y) |
#define | TYPE1_END(y) return sizeof(y); } |
#define | TYPE2_END TYPE1_END |
#define | TYPE1_READ(x, y) |
#define | TYPE1_WRITE(x, y) |
#define | TYPE2_START(x, y) |
#define | TYPE2_READ(x, y) |
#define | TYPE2_WRITE(x, y) |
#define | PCI_TYPE1_ADDRESS_PORT (PULONG)0xCF8 |
#define | PCI_TYPE1_DATA_PORT 0xCFC |
#define | PCI_TYPE2_CSE_PORT (PUCHAR)0xCF8 |
#define | PCI_TYPE2_FORWARD_PORT (PUCHAR)0xCFA |
#define | PCI_TYPE2_ADDRESS_BASE 0xC |
#define TYPE1_DEFINE | ( | x | ) | TYPE_DEFINE(x, PPCI_TYPE1_CFG_BITS); |
#define TYPE2_DEFINE | ( | x | ) | TYPE_DEFINE(x, PPCI_TYPE2_ADDRESS_BITS); |
typedef struct _HAL_BUS_HANDLER HAL_BUS_HANDLER |
typedef NTSTATUS(NTAPI * PciIrqRange) (IN PBUS_HANDLER BusHandler, IN PBUS_HANDLER RootHandler, IN PCI_SLOT_NUMBER PciSlot, OUT PSUPPORTED_RANGE *Interrupt) |
typedef struct _PCIPBUSDATA PCIPBUSDATA |
typedef struct _HAL_BUS_HANDLER * PHAL_BUS_HANDLER |
typedef struct _PCI_CONFIG_HANDLER * PPCI_CONFIG_HANDLER |
typedef struct _PCI_TYPE1_CFG_BITS * PPCI_TYPE1_CFG_BITS |
typedef struct _PCIPBUSDATA * PPCIPBUSDATA |
BOOLEAN NTAPI HaliFindBusAddressTranslation | ( | IN PHYSICAL_ADDRESS | BusAddress, |
IN OUT PULONG | AddressSpace, | ||
OUT PPHYSICAL_ADDRESS | TranslatedAddress, | ||
IN OUT PULONG_PTR | Context, | ||
IN BOOLEAN | NextBus | ||
) |
Definition at line 1193 of file bussupp.c.
Referenced by HalpInitBusHandler().
PBUS_HANDLER FASTCALL HaliReferenceHandlerForConfigSpace | ( | IN BUS_DATA_TYPE | ConfigType, |
IN ULONG | BusNumber | ||
) |
Definition at line 197 of file bushndlr.c.
Referenced by HalGetBusDataByOffset(), and HalSetBusDataByOffset().
BOOLEAN NTAPI HaliTranslateBusAddress | ( | IN INTERFACE_TYPE | InterfaceType, |
IN ULONG | BusNumber, | ||
IN PHYSICAL_ADDRESS | BusAddress, | ||
IN OUT PULONG | AddressSpace, | ||
OUT PPHYSICAL_ADDRESS | TranslatedAddress | ||
) |
Definition at line 1267 of file bussupp.c.
Referenced by HalpInitBusHandler(), and HalTranslateBusAddress().
NTSTATUS NTAPI HalpAdjustPCIResourceList | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN OUT PIO_RESOURCE_REQUIREMENTS_LIST * | pResourceList | ||
) |
Definition at line 675 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler().
NTSTATUS NTAPI HalpAssignPCISlotResources | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PUNICODE_STRING | RegistryPath, | ||
IN PUNICODE_STRING DriverClassName | OPTIONAL, | ||
IN PDRIVER_OBJECT | DriverObject, | ||
IN PDEVICE_OBJECT DeviceObject | OPTIONAL, | ||
IN ULONG | Slot, | ||
IN OUT PCM_RESOURCE_LIST * | pAllocatedResources | ||
) |
Definition at line 490 of file pci.c.
Referenced by HalpAllocateAndInitPciBusHandler(), and HalpAssignSlotResources().
NTSTATUS NTAPI HalpAssignSlotResources | ( | IN PUNICODE_STRING | RegistryPath, |
IN PUNICODE_STRING | DriverClassName, | ||
IN PDRIVER_OBJECT | DriverObject, | ||
IN PDEVICE_OBJECT | DeviceObject, | ||
IN INTERFACE_TYPE | BusType, | ||
IN ULONG | BusNumber, | ||
IN ULONG | SlotNumber, | ||
IN OUT PCM_RESOURCE_LIST * | AllocatedResources | ||
) |
Definition at line 39 of file bus.c.
Referenced by HalAssignSlotResources(), HalpInitBusHandler(), and HalpInitNonBusHandler().
ULONG NTAPI HalpcGetCmosData | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
PBUS_HANDLER NTAPI HalpContextToBusHandler | ( | IN ULONG_PTR | ContextValue | ) |
Definition at line 206 of file bushndlr.c.
Referenced by HaliFindBusAddressTranslation().
ULONG NTAPI HalpcSetCmosData | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
BOOLEAN NTAPI HalpFindBusAddressTranslation | ( | IN PHYSICAL_ADDRESS | BusAddress, |
IN OUT PULONG | AddressSpace, | ||
OUT PPHYSICAL_ADDRESS | TranslatedAddress, | ||
IN OUT PULONG_PTR | Context, | ||
IN BOOLEAN | NextBus | ||
) |
Definition at line 98 of file bus.c.
Referenced by HalpInitNonBusHandler().
ULONG NTAPI HalpGetCmosData | ( | _In_ ULONG | BusNumber, |
_In_ ULONG | SlotNumber, | ||
_Out_writes_bytes_(Length) PVOID | Buffer, | ||
_In_ ULONG | Length | ||
) |
Definition at line 49 of file cmos.c.
NTSTATUS NTAPI HalpGetISAFixedPCIIrq | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PCI_SLOT_NUMBER | PciSlot, | ||
OUT PSUPPORTED_RANGE * | Range | ||
) |
Definition at line 574 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler().
ULONG NTAPI HalpGetPCIData | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootBusHandler, | ||
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
Definition at line 378 of file pcibus.c.
ULONG NTAPI HalpGetPCIIntOnISABus | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN ULONG | BusInterruptLevel, | ||
IN ULONG | BusInterruptVector, | ||
OUT PKIRQL | Irql, | ||
OUT PKAFFINITY | Affinity | ||
) |
Definition at line 532 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler().
ULONG NTAPI HalpGetSystemInterruptVector | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN ULONG | BusInterruptLevel, | ||
IN ULONG | BusInterruptVector, | ||
OUT PKIRQL | Irql, | ||
OUT PKAFFINITY | Affinity | ||
) |
Definition at line 144 of file sysbus.c.
ULONG NTAPI HalpGetSystemInterruptVector_Acpi | ( | ULONG | BusNumber, |
ULONG | BusInterruptLevel, | ||
ULONG | BusInterruptVector, | ||
PKIRQL | Irql, | ||
PKAFFINITY | Affinity | ||
) |
Definition at line 420 of file bushndlr.c.
Referenced by HalpRegisterInternalBusHandlers(), and LoadBootDeviceDriver().
Definition at line 674 of file pci.c.
Referenced by HalpInitializePciBus(), HalReportResourceUsage(), and LoadBootDeviceDriver().
ULONG NTAPI HalpNoBusData | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
Definition at line 108 of file bushndlr.c.
Referenced by HaliRegisterBusHandler(), and HalpRegisterInternalBusHandlers().
VOID NTAPI HalpPCIISALine2Pin | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PCI_SLOT_NUMBER | SlotNumber, | ||
IN PPCI_COMMON_CONFIG | PciNewData, | ||
IN PPCI_COMMON_CONFIG | PciOldData | ||
) |
VOID NTAPI HalpPCIPin2ISALine | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PCI_SLOT_NUMBER | SlotNumber, | ||
IN PPCI_COMMON_CONFIG | PciData | ||
) |
VOID NTAPI HalpPCISynchronizeType1 | ( | IN PBUS_HANDLER | BusHandler, |
IN PCI_SLOT_NUMBER | Slot, | ||
IN PKIRQL | Irql, | ||
IN PPCI_TYPE1_CFG_BITS | PciCfg | ||
) |
VOID NTAPI HalpPCISynchronizeType2 | ( | IN PBUS_HANDLER | BusHandler, |
IN PCI_SLOT_NUMBER | Slot, | ||
IN PKIRQL | Irql, | ||
IN PPCI_TYPE2_ADDRESS_BITS | PciCfg | ||
) |
PPCI_REGISTRY_INFO_INTERNAL NTAPI HalpQueryPciRegistryInfo | ( | VOID | ) |
Definition at line 543 of file pci.c.
Referenced by HalpInitializePciBus(), and HalpInitializePciStubs().
VOID NTAPI HalpReadPCIConfig | ( | IN PBUS_HANDLER | BusHandler, |
IN PCI_SLOT_NUMBER | Slot, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
Definition at line 255 of file pci.c.
Referenced by HaliPciInterfaceReadConfig(), HalpAllocateAndInitPciBusHandler(), HalpAssignPCISlotResources(), HalpGetPciBridgeConfig(), HalpGetPCIData(), HalpInitializePciBus(), HalpIsValidPCIDevice(), HalpSetPCIData(), and HalpValidPCISlot().
Definition at line 640 of file pcibus.c.
Referenced by HalReportResourceUsage().
ULONG NTAPI HalpSetCmosData | ( | IN ULONG | BusNumber, |
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Length | ||
) |
Definition at line 99 of file cmos.c.
Referenced by HalSetBusDataByOffset().
ULONG NTAPI HalpSetPCIData | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootBusHandler, | ||
IN ULONG | SlotNumber, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
Definition at line 462 of file pcibus.c.
BOOLEAN NTAPI HalpTranslateBusAddress | ( | IN INTERFACE_TYPE | InterfaceType, |
IN ULONG | BusNumber, | ||
IN PHYSICAL_ADDRESS | BusAddress, | ||
IN OUT PULONG | AddressSpace, | ||
OUT PPHYSICAL_ADDRESS | TranslatedAddress | ||
) |
Definition at line 71 of file bus.c.
Referenced by HalpInitNonBusHandler().
BOOLEAN NTAPI HalpTranslateIsaBusAddress | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PHYSICAL_ADDRESS | BusAddress, | ||
IN OUT PULONG | AddressSpace, | ||
OUT PPHYSICAL_ADDRESS | TranslatedAddress | ||
) |
Definition at line 21 of file isabus.c.
BOOLEAN NTAPI HalpTranslateSystemBusAddress | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PHYSICAL_ADDRESS | BusAddress, | ||
IN OUT PULONG | AddressSpace, | ||
OUT PPHYSICAL_ADDRESS | TranslatedAddress | ||
) |
Definition at line 21 of file sysbus.c.
Referenced by HalpRegisterInternalBusHandlers(), and HalpTranslateIsaBusAddress().
BOOLEAN NTAPI HalpValidPCISlot | ( | IN PBUS_HANDLER | BusHandler, |
IN PCI_SLOT_NUMBER | Slot | ||
) |
Definition at line 302 of file pci.c.
Referenced by HalpReadPCIConfig(), and HalpWritePCIConfig().
VOID NTAPI HalpWritePCIConfig | ( | IN PBUS_HANDLER | BusHandler, |
IN PCI_SLOT_NUMBER | Slot, | ||
IN PVOID | Buffer, | ||
IN ULONG | Offset, | ||
IN ULONG | Length | ||
) |
Definition at line 281 of file pci.c.
Referenced by HalpAllocateAndInitPciBusHandler(), HalpAssignPCISlotResources(), and HalpSetPCIData().
TYPE1_DEFINE | ( | HalpPCIReadUcharType1 | ) |
TYPE1_DEFINE | ( | HalpPCIReadUshortType1 | ) |
TYPE1_DEFINE | ( | HalpPCIReadUlongType1 | ) |
TYPE1_DEFINE | ( | HalpPCIWriteUcharType1 | ) |
TYPE1_DEFINE | ( | HalpPCIWriteUshortType1 | ) |
TYPE1_DEFINE | ( | HalpPCIWriteUlongType1 | ) |
TYPE2_DEFINE | ( | HalpPCIReadUcharType2 | ) |
TYPE2_DEFINE | ( | HalpPCIReadUshortType2 | ) |
TYPE2_DEFINE | ( | HalpPCIReadUlongType2 | ) |
TYPE2_DEFINE | ( | HalpPCIWriteUcharType2 | ) |
TYPE2_DEFINE | ( | HalpPCIWriteUshortType2 | ) |
TYPE2_DEFINE | ( | HalpPCIWriteUlongType2 | ) |
LIST_ENTRY HalpAllBusHandlers |
Definition at line 19 of file bushndlr.c.
Referenced by HaliFindBusAddressTranslation(), HaliRegisterBusHandler(), HalpContextToBusHandler(), and HalpInitBusHandler().
ULONG HalpBusType |
Definition at line 17 of file bus.c.
Referenced by HalHandleNMI(), HalInitSystem(), HalpInitDma(), HalpInitializeCmos(), HalpIs16BitPortDecodeSupported(), HalpRegisterInternalBusHandlers(), and HalReportResourceUsage().
BUS_HANDLER HalpFakePciBusHandler |
Definition at line 91 of file pci.c.
Referenced by HalGetBusDataByOffset(), HaliPciInterfaceReadConfig(), HalpAssignSlotResources(), HalpInitializePciStubs(), and HalSetBusDataByOffset().
ULONG HalpMaxPciBus |
Definition at line 18 of file pci.c.
Referenced by HalGetBusDataByOffset(), HaliPciInterfaceReadConfig(), and HalpInitializePciStubs().
ULONG HalpMinPciBus |
Definition at line 18 of file pci.c.
Referenced by HalGetBusDataByOffset().
BOOLEAN HalpPCIConfigInitialized |
Definition at line 17 of file pci.c.
Referenced by HalGetBusDataByOffset(), HalpInitializePciStubs(), and HalSetBusDataByOffset().
PCI_CONFIG_HANDLER PCIConfigHandler |
Definition at line 20 of file pci.c.
Referenced by HalpAllocateAndInitPciBusHandler(), HalpInitializePciStubs(), HalpPCIConfig(), HalpReadPCIConfig(), and HalpWritePCIConfig().
PCI_CONFIG_HANDLER PCIConfigHandlerType1 |
Definition at line 32 of file pci.c.
Referenced by HalpAllocateAndInitPciBusHandler(), and HalpInitializePciStubs().
PCI_CONFIG_HANDLER PCIConfigHandlerType2 |
Definition at line 54 of file pci.c.
Referenced by HalpAllocateAndInitPciBusHandler(), and HalpInitializePciStubs().