[SCSIPORT]

- undefine macros that are defined by DDK headers, before implementing the functions
- add missing definitions for amd64

svn path=/trunk/; revision=47838
This commit is contained in:
Timo Kreuzer 2010-06-23 21:06:00 +00:00
parent 22576dee05
commit 5e4ab4ede7
2 changed files with 30 additions and 1 deletions

View file

@ -45,6 +45,8 @@
ULONG InternalDebugLevel = 0x00;
#undef ScsiPortMoveMemory
/* TYPES *********************************************************************/
/* GLOBALS *******************************************************************/
@ -216,7 +218,9 @@ SpiHandleAttachRelease(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
static NTSTATUS
SpiAllocateCommonBuffer(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension, ULONG NonCachedSize);
NTHALAPI ULONG NTAPI HalGetBusData(BUS_DATA_TYPE, ULONG, ULONG, PVOID, ULONG);
NTHALAPI ULONG NTAPI HalGetInterruptVector(INTERFACE_TYPE, ULONG, ULONG, ULONG, PKIRQL, PKAFFINITY);
NTHALAPI NTSTATUS NTAPI HalAssignSlotResources(PUNICODE_STRING, PUNICODE_STRING, PDRIVER_OBJECT, PDEVICE_OBJECT, INTERFACE_TYPE, ULONG, ULONG, PCM_RESOURCE_LIST *);
/* FUNCTIONS *****************************************************************/

View file

@ -14,6 +14,31 @@
#define NDEBUG
#include <debug.h>
#undef ScsiPortReadPortBufferUchar
#undef ScsiPortReadPortBufferUshort
#undef ScsiPortReadPortBufferUlong
#undef ScsiPortReadPortUchar
#undef ScsiPortReadPortUshort
#undef ScsiPortReadPortUlong
#undef ScsiPortReadRegisterBufferUchar
#undef ScsiPortReadRegisterBufferUshort
#undef ScsiPortReadRegisterBufferUlong
#undef ScsiPortReadRegisterUchar
#undef ScsiPortReadRegisterUshort
#undef ScsiPortReadRegisterUlong
#undef ScsiPortWritePortBufferUchar
#undef ScsiPortWritePortBufferUshort
#undef ScsiPortWritePortBufferUlong
#undef ScsiPortWritePortUchar
#undef ScsiPortWritePortUshort
#undef ScsiPortWritePortUlong
#undef ScsiPortWriteRegisterBufferUchar
#undef ScsiPortWriteRegisterBufferUshort
#undef ScsiPortWriteRegisterBufferUlong
#undef ScsiPortWriteRegisterUchar
#undef ScsiPortWriteRegisterUshort
#undef ScsiPortWriteRegisterUlong
SCSI_PHYSICAL_ADDRESS
NTAPI
ScsiPortConvertUlongToPhysicalAddress(