Changeset 113 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Jan 17, 2007 4:09:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r1 r113 4074 4074 PDMBOTHCBDECL(int) ataBMDMAIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 4075 4075 { 4076 uint32_t i = (uint32_t) pvUser;4076 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4077 4077 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4078 4078 PATACONTROLLER pCtl = &pData->aCts[i]; … … 4104 4104 PDMBOTHCBDECL(int) ataBMDMAIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 4105 4105 { 4106 uint32_t i = (uint32_t) pvUser;4106 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4107 4107 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4108 4108 PATACONTROLLER pCtl = &pData->aCts[i]; … … 4314 4314 PDMBOTHCBDECL(int) ataIOPortWrite1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 4315 4315 { 4316 uint32_t i = (uint32_t) pvUser;4316 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4317 4317 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4318 4318 PATACONTROLLER pCtl = &pData->aCts[i]; … … 4344 4344 PDMBOTHCBDECL(int) ataIOPortRead1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 4345 4345 { 4346 uint32_t i = (uint32_t) pvUser;4346 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4347 4347 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4348 4348 PATACONTROLLER pCtl = &pData->aCts[i]; … … 4382 4382 PDMBOTHCBDECL(int) ataIOPortReadStr1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, RTGCPTR *pGCPtrDst, unsigned *pcTransfer, unsigned cb) 4383 4383 { 4384 uint32_t i = (uint32_t) pvUser;4384 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4385 4385 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4386 4386 PATACONTROLLER pCtl = &pData->aCts[i]; … … 4437 4437 PDMBOTHCBDECL(int) ataIOPortWriteStr1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, RTGCPTR *pGCPtrSrc, unsigned *pcTransfer, unsigned cb) 4438 4438 { 4439 uint32_t i = (uint32_t) pvUser;4439 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4440 4440 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4441 4441 PATACONTROLLER pCtl = &pData->aCts[i]; … … 4492 4492 PDMBOTHCBDECL(int) ataIOPortWrite2(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb) 4493 4493 { 4494 uint32_t i = (uint32_t) pvUser;4494 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4495 4495 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4496 4496 PATACONTROLLER pCtl = &pData->aCts[i]; … … 4516 4516 PDMBOTHCBDECL(int) ataIOPortRead2(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb) 4517 4517 { 4518 uint32_t i = (uint32_t) pvUser;4518 uint32_t i = (uint32_t)(uintptr_t)pvUser; 4519 4519 PCIATAState *pData = PDMINS2DATA(pDevIns, PCIATAState *); 4520 4520 PATACONTROLLER pCtl = &pData->aCts[i];
Note:
See TracChangeset
for help on using the changeset viewer.