mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
- Get bus drivers to compile and link on MSVC.
svn path=/trunk/; revision=20641
This commit is contained in:
parent
eac981c519
commit
320f45bb8e
4 changed files with 22 additions and 11 deletions
|
@ -191,6 +191,16 @@ typedef UINT64 u64;
|
|||
/*
|
||||
* Local datatypes
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
typedef ULONGLONG u64;
|
||||
typedef ULONG u32;
|
||||
typedef USHORT u16;
|
||||
typedef UCHAR u8;
|
||||
typedef LONGLONG s64;
|
||||
typedef LONG s32;
|
||||
typedef SHORT s16;
|
||||
typedef CHAR s8;
|
||||
#endif
|
||||
|
||||
typedef u32 ACPI_STATUS; /* All ACPI Exceptions */
|
||||
typedef u32 ACPI_NAME; /* 4-s8 ACPI name */
|
||||
|
|
|
@ -14,6 +14,13 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
DriverEntry(
|
||||
IN PDRIVER_OBJECT DriverObject,
|
||||
IN PUNICODE_STRING RegistryPath
|
||||
);
|
||||
|
||||
#ifdef ALLOC_PRAGMA
|
||||
|
||||
// Make the initialization routines discardable, so that they
|
||||
|
|
|
@ -22,12 +22,6 @@
|
|||
|
||||
#pragma alloc_text(init, DriverEntry)
|
||||
|
||||
// Make the PASSIVE_LEVEL routines pageable, so that they don't
|
||||
// waste nonpaged memory
|
||||
|
||||
#pragma alloc_text(page, ACPIDispatchOpenClose)
|
||||
#pragma alloc_text(page, ACPIDispatchRead)
|
||||
#pragma alloc_text(page, ACPIDispatchWrite)
|
||||
|
||||
#endif /* ALLOC_PRAGMA */
|
||||
|
||||
|
@ -92,18 +86,18 @@ PCSZ TagName(ULONG Tag, BOOLEAN Small)
|
|||
|
||||
#endif
|
||||
|
||||
static inline VOID WriteData(UCHAR Value)
|
||||
static __inline VOID WriteData(UCHAR Value)
|
||||
{
|
||||
WRITE_PORT_UCHAR((PUCHAR)ISAPNP_WRITE_PORT, Value);
|
||||
}
|
||||
|
||||
static inline VOID WriteAddress(UCHAR Value)
|
||||
static __inline VOID WriteAddress(UCHAR Value)
|
||||
{
|
||||
WRITE_PORT_UCHAR((PUCHAR)ISAPNP_ADDRESS_PORT, Value);
|
||||
KeStallExecutionProcessor(20);
|
||||
}
|
||||
|
||||
static inline UCHAR ReadData(VOID)
|
||||
static __inline UCHAR ReadData(VOID)
|
||||
{
|
||||
return READ_PORT_UCHAR(IsaPnPReadPort);
|
||||
}
|
||||
|
@ -158,7 +152,7 @@ static VOID WriteUlong(UCHAR Index, ULONG Value)
|
|||
}
|
||||
#endif
|
||||
|
||||
static inline VOID SetReadDataPort(ULONG Port)
|
||||
static __inline VOID SetReadDataPort(ULONG Port)
|
||||
{
|
||||
IsaPnPReadPort = (PUCHAR)Port;
|
||||
WriteUchar(0x00, Port >> 2);
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.com)
|
||||
*/
|
||||
|
||||
#include <ntddk.h>
|
||||
#include <ntifs.h>
|
||||
#include <ntddk.h>
|
||||
#include <ntddser.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue