ReactOS 0.4.16-dev-306-g647d351
|
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 |
union | _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 union _PCI_TYPE1_CFG_CYCLE_BITS PCI_TYPE1_CFG_CYCLE_BITS |
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 union _PCI_TYPE1_CFG_CYCLE_BITS * PPCI_TYPE1_CFG_CYCLE_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 1331 of file bussupp.c.
Referenced by HalpInitBusHandler().
PBUS_HANDLER FASTCALL HaliReferenceHandlerForConfigSpace | ( | IN BUS_DATA_TYPE | ConfigType, |
IN ULONG | BusNumber | ||
) |
Definition at line 221 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 1413 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 757 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 798 of file pcibus.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 45 of file busemul.c.
Referenced by HalAssignSlotResources(), HalpInitBusHandler(), and HalpInitNonBusHandler().
ULONG NTAPI HalpcGetCmosData | ( | _In_ PBUS_HANDLER | BusHandler, |
_In_ PBUS_HANDLER | RootHandler, | ||
_In_ ULONG | SlotNumber, | ||
_Out_writes_bytes_(Length) PVOID | Buffer, | ||
_In_ ULONG | Offset, | ||
_In_ ULONG | Length | ||
) |
Definition at line 16 of file cmosbus.c.
Referenced by HalpRegisterInternalBusHandlers().
PBUS_HANDLER NTAPI HalpContextToBusHandler | ( | IN ULONG_PTR | ContextValue | ) |
Definition at line 230 of file bushndlr.c.
Referenced by HaliFindBusAddressTranslation().
ULONG NTAPI HalpcSetCmosData | ( | _In_ PBUS_HANDLER | BusHandler, |
_In_ PBUS_HANDLER | RootHandler, | ||
_In_ ULONG | SlotNumber, | ||
_In_reads_bytes_(Length) PVOID | Buffer, | ||
_In_ ULONG | Offset, | ||
_In_ ULONG | Length | ||
) |
Definition at line 38 of file cmosbus.c.
Referenced by HalpRegisterInternalBusHandlers().
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 90 of file busemul.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.
Referenced by HalGetBusDataByOffset(), and HalpcGetCmosData().
NTSTATUS NTAPI HalpGetISAFixedPCIIrq | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PCI_SLOT_NUMBER | PciSlot, | ||
OUT PSUPPORTED_RANGE * | Range | ||
) |
Definition at line 702 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 507 of file pcibus.c.
Referenced by HalGetBusDataByOffset(), and HalpAllocateAndInitPciBusHandler().
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 658 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler().
ULONG NTAPI HalpGetRootInterruptVector | ( | _In_ ULONG | BusInterruptLevel, |
_In_ ULONG | BusInterruptVector, | ||
_Out_ PKIRQL | Irql, | ||
_Out_ PKAFFINITY | Affinity | ||
) |
Definition at line 400 of file apic.c.
Referenced by HalGetInterruptVector(), and HalpGetSystemInterruptVector().
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 115 of file sysbus.c.
Referenced by HalpRegisterInternalBusHandlers().
Definition at line 444 of file bushndlr.c.
Referenced by HalpRegisterInternalBusHandlers(), and LoadBootDeviceDriver().
Definition at line 913 of file halacpi.c.
Referenced by HalReportResourceUsage().
Definition at line 1190 of file pcibus.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 | ||
) |
Handler for buses without configuration space.
Definition at line 111 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 | ||
) |
Definition at line 690 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler().
VOID NTAPI HalpPCIPin2ISALine | ( | IN PBUS_HANDLER | BusHandler, |
IN PBUS_HANDLER | RootHandler, | ||
IN PCI_SLOT_NUMBER | SlotNumber, | ||
IN PPCI_COMMON_CONFIG | PciData | ||
) |
Definition at line 680 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler().
Definition at line 193 of file pcibus.c.
Definition at line 137 of file pcibus.c.
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 | ||
) |
ULONG HalpPhase0GetPciDataByOffset | ( | _In_ ULONG | Bus, |
_In_ PCI_SLOT_NUMBER | PciSlot, | ||
_Out_writes_bytes_all_(Length) PVOID | Buffer, | ||
_In_ ULONG | Offset, | ||
_In_ ULONG | Length | ||
) |
Definition at line 368 of file pcibus.c.
Referenced by HalpConfigureDebuggingDevice(), and HalpFindMatchingDebuggingDevice().
ULONG HalpPhase0SetPciDataByOffset | ( | _In_ ULONG | Bus, |
_In_ PCI_SLOT_NUMBER | PciSlot, | ||
_In_reads_bytes_(Length) PVOID | Buffer, | ||
_In_ ULONG | Offset, | ||
_In_ ULONG | Length | ||
) |
Definition at line 437 of file pcibus.c.
Referenced by HalpConfigureDebuggingDevice().
PPCI_REGISTRY_INFO_INTERNAL NTAPI HalpQueryPciRegistryInfo | ( | VOID | ) |
Definition at line 957 of file pcibus.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 257 of file pcibus.c.
Referenced by HaliPciInterfaceReadConfig(), HalpAllocateAndInitPciBusHandler(), HalpAssignPCISlotResources(), HalpDebugPciDumpBus(), HalpGetPciBridgeConfig(), HalpGetPCIData(), HalpInitializePciBus(), HalpIsValidPCIDevice(), HalpSetPCIData(), and HalpValidPCISlot().
Definition at line 331 of file kdpci.c.
Referenced by HalReportResourceUsage().
ULONG NTAPI HalpSetCmosData | ( | _In_ ULONG | BusNumber, |
_In_ ULONG | SlotNumber, | ||
_In_reads_bytes_(Length) PVOID | Buffer, | ||
_In_ ULONG | Length | ||
) |
Definition at line 104 of file cmos.c.
Referenced by HalpcSetCmosData(), and 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 587 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler(), and HalSetBusDataByOffset().
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 77 of file busemul.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.
Referenced by HalpRegisterInternalBusHandlers().
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 329 of file pcibus.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 283 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler(), HalpAssignPCISlotResources(), HalpDebugPciDumpBus(), and HalpSetPCIData().
TYPE1_DEFINE | ( | HalpPCIReadUcharType1 | ) |
TYPE1_DEFINE | ( | HalpPCIReadUlongType1 | ) |
TYPE1_DEFINE | ( | HalpPCIReadUshortType1 | ) |
TYPE1_DEFINE | ( | HalpPCIWriteUcharType1 | ) |
TYPE1_DEFINE | ( | HalpPCIWriteUlongType1 | ) |
TYPE1_DEFINE | ( | HalpPCIWriteUshortType1 | ) |
TYPE2_DEFINE | ( | HalpPCIReadUcharType2 | ) |
TYPE2_DEFINE | ( | HalpPCIReadUlongType2 | ) |
TYPE2_DEFINE | ( | HalpPCIReadUshortType2 | ) |
TYPE2_DEFINE | ( | HalpPCIWriteUcharType2 | ) |
TYPE2_DEFINE | ( | HalpPCIWriteUlongType2 | ) |
TYPE2_DEFINE | ( | HalpPCIWriteUshortType2 | ) |
|
extern |
Definition at line 19 of file bushndlr.c.
Referenced by HaliFindBusAddressTranslation(), HaliRegisterBusHandler(), HalpContextToBusHandler(), and HalpInitBusHandler().
|
extern |
Definition at line 18 of file pcibus.c.
Referenced by HalHandleNMI(), HalInitSystem(), HalpInitDma(), HalpInitializeCmos(), HalpIs16BitPortDecodeSupported(), HalpRegisterInternalBusHandlers(), and HalReportResourceUsage().
|
extern |
Definition at line 94 of file pcibus.c.
Referenced by HalGetBusDataByOffset(), HaliPciInterfaceReadConfig(), HalpAssignSlotResources(), HalpInitializePciStubs(), and HalSetBusDataByOffset().
ULONG HalpMaxPciBus |
Definition at line 635 of file bus.h.
Referenced by HalGetBusDataByOffset().
|
extern |
Definition at line 21 of file pcibus.c.
Referenced by HalGetBusDataByOffset().
|
extern |
Definition at line 20 of file pcibus.c.
Referenced by HalGetBusDataByOffset(), HalpInitializePciStubs(), and HalSetBusDataByOffset().
|
extern |
Definition at line 23 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler(), HalpInitializePciStubs(), HalpPCIConfig(), HalpReadPCIConfig(), and HalpWritePCIConfig().
|
extern |
Definition at line 35 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler(), and HalpInitializePciStubs().
|
extern |
Definition at line 57 of file pcibus.c.
Referenced by HalpAllocateAndInitPciBusHandler(), and HalpInitializePciStubs().