PHYSICAL_ADDRESS LogicalAddress;
ULONG_PTR BaseVA;
ULONG_PTR StartBufferVA;
- ULONG_PTR StartBufferPA;
+ ULONG StartBufferPA;
DPRINT("USBPORT_AllocateCommonBuffer: FdoDevice - %p, BufferLength - %p\n",
FdoDevice,
PVOID
NTAPI
-USBPORT_GetMappedVirtualAddress(IN PVOID PhysicalAddress,
+USBPORT_GetMappedVirtualAddress(IN ULONG PhysicalAddress,
IN PVOID MiniPortExtension,
IN PVOID MiniPortEndpoint)
{
HeaderBuffer = Endpoint->HeaderBuffer;
- Offset = (ULONG_PTR)PhysicalAddress - HeaderBuffer->PhysicalAddress;
+ Offset = PhysicalAddress - HeaderBuffer->PhysicalAddress;
VirtualAddress = HeaderBuffer->VirtualAddress + Offset;
return (PVOID)VirtualAddress;