Return type KIRQL fixed to allow compilation.
[reactos.git] / reactos / ntoskrnl / hal / x86 / isa.c
1 /* $Id: isa.c,v 1.6 2000/04/09 15:58:13 ekohl Exp $
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
16
17 typedef struct _BUS_HANDLER *PBUS_HANDLER;
18
19
20 /* FUNCTIONS *****************************************************************/
21
22 BOOL HalIsaProbe(VOID)
23 /*
24 * FUNCTION: Probes for an ISA bus
25 * RETURNS: True if detected
26 * NOTE: Since ISA is the default we are called last and always return
27 * true
28 */
29 {
30 DbgPrint("Assuming ISA bus\n");
31
32 /*
33 * Probe for plug and play support
34 */
35 return(TRUE);
36 }
37
38
39 BOOLEAN
40 STDCALL
41 HalpTranslateIsaBusAddress (
42 PBUS_HANDLER BusHandler,
43 ULONG BusNumber,
44 PHYSICAL_ADDRESS BusAddress,
45 PULONG AddressSpace,
46 PPHYSICAL_ADDRESS TranslatedAddress
47 )
48 {
49 BOOLEAN Result;
50
51 Result = HalTranslateBusAddress (PCIBus,
52 BusNumber,
53 BusAddress,
54 AddressSpace,
55 TranslatedAddress);
56
57 if (Result != FALSE)
58 return Result;
59
60 Result = HalTranslateBusAddress (Internal,
61 BusNumber,
62 BusAddress,
63 AddressSpace,
64 TranslatedAddress);
65
66 return Result;
67 }
68
69 /* EOF */