VirtualBox

Changeset 44854 in vbox


Ignore:
Timestamp:
Feb 27, 2013 8:37:49 PM (12 years ago)
Author:
vboxsync
Message:

VQUEUE: WRONG (mixed) callback calling convensions again, this time the other way around.

Location:
trunk/src/VBox/Devices/VirtIO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/Virtio.cpp

    r44853 r44854  
    926926}
    927927
    928 PVQUEUE vpciAddQueue(VPCISTATE* pState, unsigned uSize,
    929                      void (*pfnCallback)(void *pvState, PVQUEUE pQueue),
    930                      const char *pcszName)
     928PVQUEUE vpciAddQueue(VPCISTATE* pState, unsigned uSize, PFNVPCIQUEUECALLBACK pfnCallback, const char *pcszName)
    931929{
    932930    PVQUEUE pQueue = NULL;
  • trunk/src/VBox/Devices/VirtIO/Virtio.h

    r44852 r44854  
    109109typedef VRING *PVRING;
    110110
     111/**
     112 * Queue callback (consumer?).
     113 *
     114 * @param   pvState         Pointer to the VirtIO PCI core state, VPCISTATE.
     115 * @param   pQueue          Pointer to the queue structure.
     116 */
     117typedef DECLCALLBACK(void) FNVPCIQUEUECALLBACK(void *pvState, struct VQueue *pQueue);
     118/** Pointer to a VQUEUE callback function. */
     119typedef FNVPCIQUEUECALLBACK *PFNVPCIQUEUECALLBACK;
     120
    111121typedef struct VQueue
    112122{
     
    115125    uint16_t uNextUsedIndex;
    116126    uint32_t uPageNumber;
    117 #ifdef IN_RING3
    118     void   (*pfnCallback)(void *pvState, struct VQueue *pQueue);
    119 #else
    120     RTR3UINTPTR pfnCallback;
    121 #endif
    122     R3PTRTYPE(const char *) pcszName;
     127    R3PTRTYPE(PFNVPCIQUEUECALLBACK) pfnCallback;
     128    R3PTRTYPE(const char *)         pcszName;
    123129} VQUEUE;
    124130typedef VQUEUE *PVQUEUE;
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