- Get bus drivers to compile and link on MSVC.

svn path=/trunk/; revision=20641
This commit is contained in:
Alex Ionescu 2006-01-07 01:39:56 +00:00
parent eac981c519
commit 320f45bb8e
4 changed files with 22 additions and 11 deletions

View file

@ -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 */

View file

@ -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

View file

@ -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);

View file

@ -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>