diff --git a/swlibs/newpci/pcilib/fxnt.c b/swlibs/newpci/pcilib/fxnt.c index 250b5ae..38b7385 100644 --- a/swlibs/newpci/pcilib/fxnt.c +++ b/swlibs/newpci/pcilib/fxnt.c @@ -55,10 +55,10 @@ static FxBool pciPortOutWordNT(FxU16 port, FxU16 data); static FxBool pciPortOutLongNT(FxU16 port, FxU32 data); static FxBool pciMapLinearNT(FxU32 busNumber, FxU32 physAddr, - FxU32* linearAddr, FxU32* length); -static FxBool pciUnmapLinearNT(FxU32 linearAddr, FxU32 length); + unsigned long* linearAddr, FxU32* length); +static FxBool pciUnmapLinearNT(unsigned long linearAddr, FxU32 length); -static FxBool pciSetPermissionNT(const FxU32 addrBase, const FxU32 addrLen, +static FxBool pciSetPermissionNT(const unsigned long addrBase, const FxU32 addrLen, const FxBool writePermP); static FxBool pciMsrGetNT(MSRInfo* in, MSRInfo* out); @@ -147,7 +147,7 @@ pciIdentifierNT(void) static FxBool pciMapLinearNT(FxU32 busNumber, FxU32 physical_addr, - FxU32 *linear_addr, FxU32 *length) + unsigned long *linear_addr, FxU32 *length) { FxU32 cbReturned; PHYSICAL_MEMORY_INFO pmi; @@ -172,7 +172,7 @@ pciMapLinearNT(FxU32 busNumber, FxU32 physical_addr, } static FxBool -pciUnmapLinearNT(FxU32 linear_addr, FxU32 length) +pciUnmapLinearNT(unsigned long linear_addr, FxU32 length) { FxU32 cbReturned; @@ -359,7 +359,7 @@ pciOutputStringNT(const char* msg) } static FxBool -pciSetPermissionNT(const FxU32 addrBase, const FxU32 addrLen, +pciSetPermissionNT(const unsigned long addrBase, const FxU32 addrLen, const FxBool writePermP) { return FXFALSE; diff --git a/swlibs/newpci/pcilib/fxvxd.c b/swlibs/newpci/pcilib/fxvxd.c index 850dcc9..8388250 100644 --- a/swlibs/newpci/pcilib/fxvxd.c +++ b/swlibs/newpci/pcilib/fxvxd.c @@ -46,10 +46,10 @@ static FxBool pciPortOutWord9x(FxU16 port, FxU16 data); static FxBool pciPortOutLong9x(FxU16 port, FxU32 data); static FxBool pciMapLinear9x(FxU32 busNumber, FxU32 physAddr, - FxU32* linearAddr, FxU32* length); -static FxBool pciUnmapLinear9x(FxU32 linearAddr, FxU32 length); + unsigned long* linearAddr, FxU32* length); +static FxBool pciUnmapLinear9x(unsigned long linearAddr, FxU32 length); -static FxBool pciSetPermission9x(const FxU32 addrBase, const FxU32 addrLen, +static FxBool pciSetPermission9x(const unsigned long addrBase, const FxU32 addrLen, const FxBool writePermP); static FxBool pciMsrGet9x(MSRInfo* in, MSRInfo* out); @@ -119,7 +119,7 @@ pciIdentifier9x(void) static FxBool pciMapLinear9x(FxU32 busNumber, FxU32 physical_addr, - FxU32 *linear_addr, FxU32 *length) + unsigned long *linear_addr, FxU32 *length) { FxU32 nret; FxU32 Physical [2]; /* Physical address[0] & size[1] */ @@ -191,7 +191,7 @@ pciMapLinear9x(FxU32 busNumber, FxU32 physical_addr, } static FxBool -pciUnmapLinear9x( FxU32 linear_addr, FxU32 length ) +pciUnmapLinear9x( unsigned long linear_addr, FxU32 length ) { FxU32 nret; @@ -278,7 +278,7 @@ pciOutputString9x(const char* msg) #define PC_USER 0x00040000 /* make the pages ring 3 accessible */ static FxBool -pciSetPermission9x(const FxU32 addrBase, const FxU32 addrLen, +pciSetPermission9x(const unsigned long addrBase, const FxU32 addrLen, const FxBool writePermP) { FxU32 vxdParamArray[] = {