}
#endif
---static __inline VOID SetReadDataPort(ULONG Port)
+++static __inline VOID SetReadDataPort(ULONG_PTR Port)
{
IsaPnPReadPort = (PUCHAR)Port;
WriteUchar(0x00, (UCHAR) (Port >> 2));
#define READ_DATA_PORT_STEP 32 /* Minimum is 4 */
---static ULONG FindNextReadPort(VOID)
+++static ULONG_PTR FindNextReadPort(VOID)
{
--- ULONG Port;
+++ ULONG_PTR Port;
--- Port = (ULONG)IsaPnPReadPort;
+++ Port = (ULONG_PTR)IsaPnPReadPort;
while (TRUE) {
static BOOLEAN IsolateReadDataPortSelect(VOID)
{
--- ULONG Port;
+++ ULONG_PTR Port;
SendWait();
SendKey();
KeStallExecutionProcessor(250);
iteration++;
SendWake(0x00);
--- SetReadDataPort((ULONG)IsaPnPReadPort);
+++ SetReadDataPort((ULONG_PTR)IsaPnPReadPort);
KeStallExecutionProcessor(1000);
WriteAddress(0x01);
KeStallExecutionProcessor(1000);
do {
Status = BuildResourceList(LogicalDevice, p, Priority);
if (NT_SUCCESS(Status)) {
--- p = (PIO_RESOURCE_LIST)((ULONG)p + SingleListSize);
+++ p = (PIO_RESOURCE_LIST)((ULONG_PTR)p + SingleListSize);
Priority++;
}
} while (Status != STATUS_NOT_FOUND);
CurrentEntry = CurrentEntry->Flink;
}
--- Irp->IoStatus.Information = (ULONG)Relations;
+++ Irp->IoStatus.Information = (ULONG_PTR)Relations;
return Status;
}
FASTCALL
VerifyObjectOwner(PDD_ENTRY pEntry)
{
--- DWORD Pid = (DWORD) PsGetCurrentProcessId() & 0xFFFFFFFC;
+++ DWORD Pid = (DWORD)(DWORD_PTR)PsGetCurrentProcessId() & 0xFFFFFFFC;
DWORD check = pEntry->ObjectOwner.ulObj & 0xFFFFFFFE;
return ( (check == Pid) || (!check));
}
*--*/
PVOID
FASTCALL
--DdHmgLock( HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
++DdHmgLock(HANDLE DdHandle, UCHAR ObjectType, BOOLEAN LockOwned)
{
--- DWORD Index = (DWORD)DdHandle & 0x1FFFFF;
+++ DWORD Index = (DWORD)(DWORD_PTR)DdHandle & 0x1FFFFF;
PDD_ENTRY pEntry = NULL;
PVOID Object = NULL;
*lcn = 0;
--- for (run = (PUCHAR)((ULONG)NresAttr + NresAttr->RunArrayOffset);
+++ for (run = (PUCHAR)((ULONG_PTR)NresAttr + NresAttr->RunArrayOffset);
*run != 0; run += RunLength(run))
{
*lcn += RunLCN(run);
{
Name.Length = Attribute->NameLength * sizeof(WCHAR);
Name.MaximumLength = Name.Length;
--- Name.Buffer = (PWCHAR)((ULONG)Attribute + Attribute->NameOffset);
+++ Name.Buffer = (PWCHAR)((ULONG_PTR)Attribute + Attribute->NameOffset);
DbgPrint("'%wZ' ", &Name);
}
NDIS_MINIPORT_INTERRUPT Interrupt;
/* I/O base address and interrupt number of adapter */
--- ULONG IoBaseAddress;
+++ ULONG_PTR IoBaseAddress;
ULONG InterruptLevel;
ULONG InterruptVector;
BOOLEAN InterruptShared;
VOID NICReadDataAlign(
PNIC_ADAPTER Adapter,
PUSHORT Target,
--- ULONG Source,
+++ ULONG_PTR Source,
USHORT Length);
VOID NICWriteDataAlign(
PNIC_ADAPTER Adapter,
--- ULONG Target,
+++ ULONG_PTR Target,
PUSHORT Source,
USHORT Length);
VOID NICReadData(
PNIC_ADAPTER Adapter,
PUCHAR Target,
--- ULONG Source,
+++ ULONG_PTR Source,
USHORT Length);
VOID NICWriteData(
PNIC_ADAPTER Adapter,
--- ULONG Target,
+++ ULONG_PTR Target,
PUCHAR Source,
USHORT Length);
#include <debug.h>
/* Null-terminated array of ports to probe. This is "semi-risky" (Don Becker). */
---ULONG ProbeAddressList[] = { 0x280, 0x300, 0x320, 0x340, 0x360, 0x380, 0 };
+++ULONG_PTR ProbeAddressList[] = { 0x280, 0x300, 0x320, 0x340, 0x360, 0x380, 0 };
static BOOLEAN ProbeAddressForNIC(
--- ULONG address)
+++ ULONG_PTR address)
/*
* FUNCTION: Probes an address for a NIC
* ARGUMENTS:
* Start at 1KB and test for every 1KB up to 64KB
*/
{
--- ULONG Base;
+++ ULONG_PTR Base;
NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
* as pending, it might be possible to complete the
* Irp before pending it, leading to a crash! */
WaitingIrp = InterlockedCompareExchangePointer(
--- &DeviceExtension->WaitOnMaskIrp,
+++ (PVOID)&DeviceExtension->WaitOnMaskIrp,
Irp,
NULL);
<module name="scsiport" type="kernelmodedriver" installbase="system32/drivers" installname="scsiport.sys">
<bootstrap installbase="$(CDOUTPUT)" />
<define name="_SCSIPORT_" />
- <importlibrary definition="scsiport.spec" />
-- <importlibrary definition="scsiport.spec.def" />
+++ <importlibrary definition="scsiport.pspec" />
<include base="scsiport">.</include>
<library>ntoskrnl</library>
<library>hal</library>
<file>scsiport.c</file>
+++ <file>stubs.c</file>
<file>scsiport.rc</file>
- <file>scsiport.pspec</file>
- <file>scsiport.spec</file>
-- <if property="ARCH" value="amd64">
-- <file>stubs.c</file>
-- </if>
</module>
/* next DEVMODE entry */
OutputModes--;
--- DM = (PDEVMODEW) ( ((ULONG)DM) + sizeof(DEVMODEW) + DRIVER_EXTRA_SIZE);
+++ DM = (PDEVMODEW) ( ((ULONG_PTR)DM) + sizeof(DEVMODEW) + DRIVER_EXTRA_SIZE);
OutputSize += (sizeof(DEVMODEW) + DRIVER_EXTRA_SIZE);
}