VirtualBox

Changeset 113 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Jan 17, 2007 4:09:50 PM (18 years ago)
Author:
vboxsync
Message:

64-bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r1 r113  
    40744074PDMBOTHCBDECL(int) ataBMDMAIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    40754075{
    4076     uint32_t       i = (uint32_t)pvUser;
     4076    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    40774077    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    40784078    PATACONTROLLER pCtl = &pData->aCts[i];
     
    41044104PDMBOTHCBDECL(int) ataBMDMAIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    41054105{
    4106     uint32_t       i = (uint32_t)pvUser;
     4106    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    41074107    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    41084108    PATACONTROLLER pCtl = &pData->aCts[i];
     
    43144314PDMBOTHCBDECL(int) ataIOPortWrite1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    43154315{
    4316     uint32_t       i = (uint32_t)pvUser;
     4316    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    43174317    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    43184318    PATACONTROLLER pCtl = &pData->aCts[i];
     
    43444344PDMBOTHCBDECL(int) ataIOPortRead1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    43454345{
    4346     uint32_t       i = (uint32_t)pvUser;
     4346    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    43474347    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    43484348    PATACONTROLLER pCtl = &pData->aCts[i];
     
    43824382PDMBOTHCBDECL(int) ataIOPortReadStr1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, RTGCPTR *pGCPtrDst, unsigned *pcTransfer, unsigned cb)
    43834383{
    4384     uint32_t       i = (uint32_t)pvUser;
     4384    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    43854385    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    43864386    PATACONTROLLER pCtl = &pData->aCts[i];
     
    44374437PDMBOTHCBDECL(int) ataIOPortWriteStr1(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, RTGCPTR *pGCPtrSrc, unsigned *pcTransfer, unsigned cb)
    44384438{
    4439     uint32_t       i = (uint32_t)pvUser;
     4439    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    44404440    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    44414441    PATACONTROLLER pCtl = &pData->aCts[i];
     
    44924492PDMBOTHCBDECL(int) ataIOPortWrite2(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    44934493{
    4494     uint32_t       i = (uint32_t)pvUser;
     4494    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    44954495    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    44964496    PATACONTROLLER pCtl = &pData->aCts[i];
     
    45164516PDMBOTHCBDECL(int) ataIOPortRead2(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    45174517{
    4518     uint32_t       i = (uint32_t)pvUser;
     4518    uint32_t       i = (uint32_t)(uintptr_t)pvUser;
    45194519    PCIATAState   *pData = PDMINS2DATA(pDevIns, PCIATAState *);
    45204520    PATACONTROLLER pCtl = &pData->aCts[i];
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette