migrate substitution keywords to SVN
[reactos.git] / reactos / hal / halx86 / generic / isa.c
1 /* $Id$
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/hal/isa.c
6 * PURPOSE: Interfaces to the ISA bus
7 * PROGRAMMER: David Welch (welch@mcmail.com)
8 * UPDATE HISTORY:
9 * 05/06/98: Created
10 */
11
12 /* INCLUDES ***************************************************************/
13
14 #include <ddk/ntddk.h>
15 #include <bus.h>
16 #include <halirq.h>
17
18 #define NDEBUG
19 #include <internal/debug.h>
20
21 /* FUNCTIONS *****************************************************************/
22
23 BOOL HalIsaProbe(VOID)
24 /*
25 * FUNCTION: Probes for an ISA bus
26 * RETURNS: True if detected
27 * NOTE: Since ISA is the default we are called last and always return
28 * true
29 */
30 {
31 DbgPrint("Assuming ISA bus\n");
32
33 /*
34 * Probe for plug and play support
35 */
36 return(TRUE);
37 }
38
39
40 BOOLEAN STDCALL
41 HalpTranslateIsaBusAddress(PBUS_HANDLER BusHandler,
42 ULONG BusNumber,
43 PHYSICAL_ADDRESS BusAddress,
44 PULONG AddressSpace,
45 PPHYSICAL_ADDRESS TranslatedAddress)
46 {
47 BOOLEAN Result;
48
49 Result = HalTranslateBusAddress(PCIBus,
50 BusNumber,
51 BusAddress,
52 AddressSpace,
53 TranslatedAddress);
54 if (Result != FALSE)
55 return Result;
56
57 Result = HalTranslateBusAddress(Internal,
58 BusNumber,
59 BusAddress,
60 AddressSpace,
61 TranslatedAddress);
62 return Result;
63 }
64
65 ULONG STDCALL
66 HalpGetIsaInterruptVector(PVOID BusHandler,
67 ULONG BusNumber,
68 ULONG BusInterruptLevel,
69 ULONG BusInterruptVector,
70 PKIRQL Irql,
71 PKAFFINITY Affinity)
72 {
73 ULONG Vector = IRQ2VECTOR(BusInterruptVector);
74 *Irql = VECTOR2IRQL(Vector);
75 *Affinity = 0xFFFFFFFF;
76 return Vector;
77 }
78 /* EOF */