2001-08-21 20:18:27 +00:00
|
|
|
/*
|
2005-06-18 14:30:09 +00:00
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS Hardware Abstraction Layer
|
|
|
|
* FILE: hal/halx86/include/hal.h
|
|
|
|
* PURPOSE: HAL Header
|
|
|
|
* PROGRAMMER: Alex Ionescu (alex@relsoft.net)
|
2001-08-21 20:18:27 +00:00
|
|
|
*/
|
|
|
|
|
2014-02-10 16:50:32 +00:00
|
|
|
#ifndef _HAL_PCH_
|
|
|
|
#define _HAL_PCH_
|
|
|
|
|
2005-06-18 14:30:09 +00:00
|
|
|
/* INCLUDES ******************************************************************/
|
|
|
|
|
2005-07-26 14:00:45 +00:00
|
|
|
/* C Headers */
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2006-11-17 04:18:41 +00:00
|
|
|
/* WDK HAL Compilation hack */
|
2006-11-14 18:17:33 +00:00
|
|
|
#include <excpt.h>
|
|
|
|
#include <ntdef.h>
|
2010-03-03 21:56:52 +00:00
|
|
|
#ifndef _MINIHAL_
|
2009-08-07 10:45:59 +00:00
|
|
|
#undef NTSYSAPI
|
|
|
|
#define NTSYSAPI __declspec(dllimport)
|
2010-03-03 21:56:52 +00:00
|
|
|
#else
|
[FREELDR] Define _BLDR_ for WDK header compatibility
[HAL] Define _NTHALDLL_ for WDK header compatibility, get rif of DECLSPEC_IMPORT header hack
[NDK/RTL] Fix some Rtl prototypes (PCHAR -> PCCH)
[NDK] Fix ZwOpenEvent prototype
[NTIFS] Fix definition of NTKERNELAPI, move some types, fix PRTL_ALLOCATE_STRING_ROUTINE, PRTL_REALLOCATE_STRING_ROUTINE, PRTL_FREE_STRING_ROUTINE, define CTL_CODE, DEVICE_TYPE_FROM_CTL_CODE, FILE_ANY_ACCESS, FILE_SPECIAL_ACCESS, FILE_READ_ACCESS, FILE_WRITE_ACCESS identical to wdm.h, remove duplicate RtlGenerate8dot3Name, remove ZwOpenEvent
[NTPOAPI] Guard some types with #ifndef _PO_DDK_
[WDM] Create reactos compatible definition of NTKERNELAPI, add KDPC_WATCHDOG_INFORMATION, BATTERY_REPORTING_SCALE, fix ALIGN_UP_POINTER_BY, guard some types with #ifndef _PO_DDK_, update POWER_INFORMATION_LEVEL, make some FILE_DEVICE_ definitions identical to ntifs.h, fix HalAllocateCommonBuffer
svn path=/branches/header-work/; revision=46050
2010-03-10 04:16:52 +00:00
|
|
|
#undef NTSYSAPI
|
|
|
|
#define NTSYSAPI
|
2010-03-03 21:56:52 +00:00
|
|
|
#endif
|
2006-11-14 18:17:33 +00:00
|
|
|
|
2005-06-24 01:37:08 +00:00
|
|
|
/* IFS/DDK/NDK Headers */
|
2005-12-01 21:37:19 +00:00
|
|
|
#include <ntifs.h>
|
2006-05-10 17:47:44 +00:00
|
|
|
#include <arc/arc.h>
|
2011-08-17 14:04:33 +00:00
|
|
|
|
|
|
|
#include <ndk/asm.h>
|
|
|
|
#include <ndk/halfuncs.h>
|
|
|
|
#include <ndk/inbvfuncs.h>
|
|
|
|
#include <ndk/iofuncs.h>
|
|
|
|
#include <ndk/kefuncs.h>
|
|
|
|
#include <ndk/rtlfuncs.h>
|
2005-06-26 01:12:21 +00:00
|
|
|
|
2021-04-09 01:38:35 +00:00
|
|
|
/* For MSVC, this is required before using DATA_SEG (used in pcidata) */
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
# pragma section("INIT", read,execute,discard)
|
2021-05-11 15:13:14 +00:00
|
|
|
# pragma section("INITDATA", read,discard)
|
2021-04-09 01:38:35 +00:00
|
|
|
#endif
|
|
|
|
|
2010-06-28 04:25:38 +00:00
|
|
|
/* Internal shared PCI and ACPI header */
|
2010-06-27 23:54:47 +00:00
|
|
|
#include <drivers/pci/pci.h>
|
2010-06-28 04:25:38 +00:00
|
|
|
#include <drivers/acpi/acpi.h>
|
2010-06-27 23:54:47 +00:00
|
|
|
|
2006-11-17 04:18:41 +00:00
|
|
|
/* Internal kernel headers */
|
2008-09-03 00:44:50 +00:00
|
|
|
#ifdef _M_AMD64
|
2010-06-03 23:18:20 +00:00
|
|
|
#include <internal/amd64/ke.h>
|
|
|
|
#include <internal/amd64/mm.h>
|
2008-09-03 00:44:50 +00:00
|
|
|
#include "internal/amd64/intrin_i.h"
|
|
|
|
#else
|
2021-06-06 13:37:47 +00:00
|
|
|
#define KeGetCurrentThread _KeGetCurrentThread
|
2010-06-03 23:18:20 +00:00
|
|
|
#include <internal/i386/ke.h>
|
|
|
|
#include <internal/i386/mm.h>
|
2006-11-17 04:18:41 +00:00
|
|
|
#include "internal/i386/intrin_i.h"
|
2008-09-03 00:44:50 +00:00
|
|
|
#endif
|
2005-06-18 14:30:09 +00:00
|
|
|
|
2011-05-26 22:22:37 +00:00
|
|
|
#define TAG_HAL ' laH'
|
|
|
|
#define TAG_BUS_HANDLER 'BusH'
|
|
|
|
|
2005-06-18 14:30:09 +00:00
|
|
|
/* Internal HAL Headers */
|
|
|
|
#include "bus.h"
|
|
|
|
#include "halirq.h"
|
2005-08-22 08:39:42 +00:00
|
|
|
#include "haldma.h"
|
2020-07-25 13:31:02 +00:00
|
|
|
#if defined(SARCH_PC98)
|
|
|
|
#include <drivers/pc98/cpu.h>
|
|
|
|
#include <drivers/pc98/pic.h>
|
|
|
|
#include <drivers/pc98/pit.h>
|
|
|
|
#include <drivers/pc98/rtc.h>
|
|
|
|
#include <drivers/pc98/sysport.h>
|
|
|
|
#include <drivers/pc98/video.h>
|
|
|
|
#else
|
2020-03-06 18:54:16 +00:00
|
|
|
#include "halhw.h"
|
2020-07-25 13:31:02 +00:00
|
|
|
#endif
|
2005-06-18 14:30:09 +00:00
|
|
|
#include "halp.h"
|
|
|
|
#include "mps.h"
|
2010-03-31 04:26:04 +00:00
|
|
|
#include "halacpi.h"
|
2005-06-18 14:30:09 +00:00
|
|
|
|
2014-02-10 16:50:32 +00:00
|
|
|
#endif /* _HAL_PCH_ */
|