ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

isa.c
Go to the documentation of this file.
00001 /* $Id: isa.c 23907 2006-09-04 05:52:23Z arty $
00002  *
00003  * COPYRIGHT:       See COPYING in the top level directory
00004  * PROJECT:         ReactOS kernel
00005  * FILE:            ntoskrnl/hal/isa.c
00006  * PURPOSE:         Interfaces to the ISA bus
00007  * PROGRAMMER:      David Welch (welch@mcmail.com)
00008  * UPDATE HISTORY:
00009  *               05/06/98: Created
00010  */
00011 
00012 /* INCLUDES ***************************************************************/
00013 
00014 #include <hal.h>
00015 #define NDEBUG
00016 #include <debug.h>
00017 
00018 /* FUNCTIONS *****************************************************************/
00019 
00020 BOOLEAN HalIsaProbe(VOID)
00021 /*
00022  * FUNCTION: Probes for an ISA bus
00023  * RETURNS: True if detected
00024  * NOTE: Since ISA is the default we are called last and always return
00025  * true
00026  */
00027 {
00028    DbgPrint("Assuming ISA bus\n");
00029 
00030    /*
00031     * Probe for plug and play support
00032     */
00033    return(TRUE);
00034 }
00035 
00036 
00037 BOOLEAN NTAPI
00038 HalpTranslateIsaBusAddress(PBUS_HANDLER BusHandler,
00039                ULONG BusNumber,
00040                PHYSICAL_ADDRESS BusAddress,
00041                PULONG AddressSpace,
00042                PPHYSICAL_ADDRESS TranslatedAddress)
00043 {
00044    BOOLEAN Result;
00045 
00046    Result = HalTranslateBusAddress(PCIBus,
00047                    BusNumber,
00048                    BusAddress,
00049                    AddressSpace,
00050                    TranslatedAddress);
00051    if (Result != FALSE)
00052      return Result;
00053 
00054    Result = HalTranslateBusAddress(Internal,
00055                    BusNumber,
00056                    BusAddress,
00057                    AddressSpace,
00058                    TranslatedAddress);
00059    return Result;
00060 }
00061 
00062 ULONG NTAPI
00063 HalpGetIsaInterruptVector(PVOID BusHandler,
00064               ULONG BusNumber,
00065               ULONG BusInterruptLevel,
00066               ULONG BusInterruptVector,
00067               PKIRQL Irql,
00068               PKAFFINITY Affinity)
00069 {
00070   ULONG Vector = IRQ2VECTOR(BusInterruptVector);
00071   *Irql = VECTOR2IRQL(Vector);
00072   *Affinity = 0xFFFFFFFF;
00073   return Vector;
00074 }
00075 /* EOF */

Generated on Sun May 27 2012 04:28:41 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.