ReactOS  0.4.14-dev-293-g2b39b42
isa.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * FILE: hal/halppc/generic/isa.c
5  * PURPOSE: Interfaces to the ISA bus
6  * PROGRAMMER: David Welch (welch@mcmail.com)
7  * UPDATE HISTORY:
8  * 05/06/98: Created
9  */
10 
11 /* INCLUDES ***************************************************************/
12 
13 #include <hal.h>
14 #define NDEBUG
15 #include <debug.h>
16 
17 /* FUNCTIONS *****************************************************************/
18 
20 /*
21  * FUNCTION: Probes for an ISA bus
22  * RETURNS: True if detected
23  * NOTE: Since ISA is the default we are called last and always return
24  * true
25  */
26 {
27  DbgPrint("Assuming ISA bus\n");
28 
29  /*
30  * Probe for plug and play support
31  */
32  return(TRUE);
33 }
34 
35 
42 {
44 
46  BusNumber,
47  BusAddress,
50  if (Result != FALSE)
51  return Result;
52 
54  BusNumber,
55  BusAddress,
58  return Result;
59 }
60 
66  PKIRQL Irql,
68 {
71  *Affinity = 0xFFFFFFFF;
72  return Vector;
73 }
74 /* EOF */
_In_ ULONG _In_ ULONG BusInterruptLevel
Definition: halfuncs.h:170
#define TRUE
Definition: types.h:120
_In_ ULONG _In_ PHYSICAL_ADDRESS BusAddress
Definition: iofuncs.h:2268
#define DbgPrint
Definition: loader.c:25
_In_ ULONG _In_ PHYSICAL_ADDRESS _Inout_ PULONG AddressSpace
Definition: iofuncs.h:2268
_In_ ULONG _In_ ULONG _In_ ULONG BusInterruptVector
Definition: halfuncs.h:170
_In_ ULONG _In_ PHYSICAL_ADDRESS _Inout_ PULONG _Out_ PPHYSICAL_ADDRESS TranslatedAddress
Definition: iofuncs.h:2268
_Out_ PKIRQL Irql
Definition: csq.h:179
BOOLEAN HalIsaProbe(VOID)
Definition: isa.c:19
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
BOOLEAN NTAPI HalpTranslateIsaBusAddress(PBUS_HANDLER BusHandler, ULONG BusNumber, PHYSICAL_ADDRESS BusAddress, PULONG AddressSpace, PPHYSICAL_ADDRESS TranslatedAddress)
Definition: isa.c:37
KAFFINITY * PKAFFINITY
Definition: basetsd.h:197
unsigned char BOOLEAN
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:426
#define VECTOR2IRQL(vector)
Definition: halirq.h:26
_In_opt_ PUNICODE_STRING _In_ PDRIVER_OBJECT _In_ PDEVICE_OBJECT _In_ INTERFACE_TYPE _In_ ULONG BusNumber
Definition: halfuncs.h:156
ULONG NTAPI HalpGetIsaInterruptVector(PVOID BusHandler, ULONG BusNumber, ULONG BusInterruptLevel, ULONG BusInterruptVector, PKIRQL Irql, PKAFFINITY Affinity)
Definition: isa.c:62
_In_ ULONG _In_ ULONG _In_ ULONG _Out_ PKIRQL _Out_ PKAFFINITY Affinity
Definition: halfuncs.h:170
KIRQL * PKIRQL
Definition: env_spec_w32.h:592
BOOLEAN NTAPI HalTranslateBusAddress(IN INTERFACE_TYPE InterfaceType, IN ULONG BusNumber, IN PHYSICAL_ADDRESS BusAddress, IN OUT PULONG AddressSpace, OUT PPHYSICAL_ADDRESS TranslatedAddress)
Definition: bus.c:140
_In_ PKSERVICE_ROUTINE _In_opt_ PVOID _In_opt_ PKSPIN_LOCK _In_ ULONG Vector
Definition: iofuncs.h:798
unsigned int * PULONG
Definition: retypes.h:1
unsigned int ULONG
Definition: retypes.h:1
#define IRQ2VECTOR(irq)
Definition: halirq.h:27