VirtualBox

Changeset 44508 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Feb 1, 2013 12:46:33 PM (12 years ago)
Author:
vboxsync
Message:

Drop the pfnSaveExecR3 and pfnLoadExecR3 interfaces of the PCI buses (never used). Synced pciR3CommonRestoreConfig between the two PCI buses, dropping the constants in the table as they make double checking sizes and offsets harder. Also removing the pfnIOCtl device registration structure member, putting a pfnReserved in it's place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmdev.h

    r44351 r44508  
    44
    55/*
    6  * Copyright (C) 2006-2011 Oracle Corporation
     6 * Copyright (C) 2006-2013 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    109109
    110110/**
    111  * Device I/O Control interface.
    112  *
    113  * This is used by external components, such as the COM interface, to
    114  * communicate with devices using a class wide interface or a device
    115  * specific interface.
    116  *
    117  * @returns VBox status code.
    118  * @param   pDevIns     Pointer to the device instance.
    119  * @param   uFunction   Function to perform.
    120  * @param   pvIn        Pointer to input data.
    121  * @param   cbIn        Size of input data.
    122  * @param   pvOut       Pointer to output data.
    123  * @param   cbOut       Size of output data.
    124  * @param   pcbOut      Where to store the actual size of the output data.
    125  *
    126  * @remarks Not used.
    127  */
    128 typedef DECLCALLBACK(int) FNPDMDEVIOCTL(PPDMDEVINS pDevIns, uint32_t uFunction,
    129                                         void *pvIn, uint32_t cbIn,
    130                                         void *pvOut, uint32_t cbOut, PRTUINT pcbOut);
    131 /** Pointer to a FNPDMDEVIOCTL() function. */
    132 typedef FNPDMDEVIOCTL *PFNPDMDEVIOCTL;
    133 
    134 /**
    135111 * Power On notification.
    136112 *
     
    305281     * Critical section NOT entered. */
    306282    PFNPDMDEVRELOCATE   pfnRelocate;
    307     /** I/O Control interface - optional.
    308      * Not used.  */
    309     PFNPDMDEVIOCTL      pfnIOCtl;
     283    /** Unused member. (Was pfnIOCtl.) */
     284    PFNRT               pfnUnused;
    310285    /** Power on notification - optional.
    311286     * Critical section is entered. */
     
    504479     * @param   iDev            The device number ((dev << 3) | function) the device should have on the bus.
    505480     *                          If negative, the pci bus device will assign one.
     481     * @remarks Caller enters the PDM critical section.
    506482     */
    507483    DECLR3CALLBACKMEMBER(int, pfnRegisterR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, const char *pszName, int iDev));
     
    514490     * @param   pPciDev         The PCI device structure.
    515491     * @param   pMsiReg         MSI registration structure
     492     * @remarks Caller enters the PDM critical section.
    516493     */
    517494    DECLR3CALLBACKMEMBER(int, pfnRegisterMsiR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PPDMMSIREG pMsiReg));
     
    527504     * @param   iType           PCI_ADDRESS_SPACE_MEM, PCI_ADDRESS_SPACE_IO or PCI_ADDRESS_SPACE_MEM_PREFETCH.
    528505     * @param   pfnCallback     Callback for doing the mapping.
     506     * @remarks Caller enters the PDM critical section.
    529507     */
    530508    DECLR3CALLBACKMEMBER(int, pfnIORegionRegisterR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, int iRegion, uint32_t cbRegion, PCIADDRESSSPACE enmType, PFNPCIIOREGIONMAP pfnCallback));
     
    543521     *                          PCI config write function. This way, user can decide when (and if)
    544522     *                          to call default PCI config write function. Can be NULL.
     523     * @remarks Caller enters the PDM critical section.
    545524     * @thread  EMT
    546525     */
     
    556535     * @param   iLevel          IRQ level. See the PDM_IRQ_LEVEL_* \#defines.
    557536     * @param   uTagSrc         The IRQ tag and source (for tracing).
     537     * @remarks Caller enters the PDM critical section.
    558538     */
    559539    DECLR3CALLBACKMEMBER(void, pfnSetIrqR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, int iIrq, int iLevel, uint32_t uTagSrc));
    560 
    561     /**
    562      * Saves a state of the PCI device.
    563      *
    564      * @returns VBox status code.
    565      * @param   pDevIns         Device instance of the PCI Bus.
    566      * @param   pPciDev         Pointer to PCI device.
    567      * @param   pSSMHandle      The handle to save the state to.
    568      */
    569     DECLR3CALLBACKMEMBER(int, pfnSaveExecR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PSSMHANDLE pSSMHandle));
    570 
    571     /**
    572      * Loads a saved PCI device state.
    573      *
    574      * @returns VBox status code.
    575      * @param   pDevIns         Device instance of the PCI Bus.
    576      * @param   pPciDev         Pointer to PCI device.
    577      * @param   pSSMHandle      The handle to the saved state.
    578      */
    579     DECLR3CALLBACKMEMBER(int, pfnLoadExecR3,(PPDMDEVINS pDevIns, PPCIDEVICE pPciDev, PSSMHANDLE pSSMHandle));
    580540
    581541    /**
     
    586546     * @returns VBox status.
    587547     * @param   pDevIns     Device instance of the first bus.
     548     * @remarks Caller enters the PDM critical section.
    588549     */
    589550    DECLR3CALLBACKMEMBER(int, pfnFakePCIBIOSR3,(PPDMDEVINS pDevIns));
     
    600561
    601562/** Current PDMPCIBUSREG version number. */
    602 #define PDM_PCIBUSREG_VERSION                   PDM_VERSION_MAKE(0xfffe, 3, 0)
     563#define PDM_PCIBUSREG_VERSION                   PDM_VERSION_MAKE(0xfffe, 4, 0)
    603564
    604565/**
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