VirtualBox

Changeset 11261 in vbox for trunk/include


Ignore:
Timestamp:
Aug 8, 2008 3:46:17 PM (16 years ago)
Author:
vboxsync
Message:

#1865: DevPIC.

File:
1 edited

Legend:

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

    r11224 r11261  
    671671     *
    672672     * This should be called at both construction and relocation time
    673      * to obtain the correct address of the GC helpers.
     673     * to obtain the correct address of the R0 helpers.
    674674     *
    675675     * @returns R0 pointer to the PCI Bus helpers.
     
    685685     * @returns Fatal error on failure.
    686686     * @param   pDevIns         The PCI device instance.
    687      * @param   rc              Dummy for making the interface identical to the GC and R0 versions.
     687     * @param   rc              Dummy for making the interface identical to the RC and R0 versions.
    688688     */
    689689    DECLR3CALLBACKMEMBER(int,   pfnLock,(PPDMDEVINS pDevIns, int rc));
     
    723723     * @param   iLevel          IRQ level. See the PDM_IRQ_LEVEL_* \#defines.
    724724     */
    725     DECLR3CALLBACKMEMBER(void, pfnSetIrqHC,(PPDMDEVINS pDevIns, int iIrq, int iLevel));
     725    DECLR3CALLBACKMEMBER(void, pfnSetIrqR3,(PPDMDEVINS pDevIns, int iIrq, int iLevel));
    726726
    727727    /**
     
    731731     * @param   pDevIns         Device instance of the PIC.
    732732     */
    733     DECLR3CALLBACKMEMBER(int, pfnGetInterruptHC,(PPDMDEVINS pDevIns));
    734 
    735     /** The name of the GC SetIrq entry point. */
    736     const char         *pszSetIrqGC;
    737     /** The name of the GC GetInterrupt entry point. */
    738     const char         *pszGetInterruptGC;
     733    DECLR3CALLBACKMEMBER(int, pfnGetInterruptR3,(PPDMDEVINS pDevIns));
     734
     735    /** The name of the RC SetIrq entry point. */
     736    const char         *pszSetIrqRC;
     737    /** The name of the RC GetInterrupt entry point. */
     738    const char         *pszGetInterruptRC;
    739739
    740740    /** The name of the R0 SetIrq entry point. */
     
    750750
    751751/**
    752  * PIC GC helpers.
    753  */
    754 typedef struct PDMPICHLPGC
    755 {
    756     /** Structure version. PDM_PICHLPGC_VERSION defines the current version. */
     752 * PIC RC helpers.
     753 */
     754typedef struct PDMPICHLPRC
     755{
     756    /** Structure version. PDM_PICHLPRC_VERSION defines the current version. */
    757757    uint32_t                u32Version;
    758758
     
    790790    /** Just a safety precaution. */
    791791    uint32_t                u32TheEnd;
    792 } PDMPICHLPGC;
    793 
    794 /** Pointer to PIC GC helpers. */
    795 typedef RCPTRTYPE(PDMPICHLPGC *) PPDMPICHLPGC;
    796 /** Pointer to const PIC GC helpers. */
    797 typedef RCPTRTYPE(const PDMPICHLPGC *) PCPDMPICHLPGC;
    798 
    799 /** Current PDMPICHLPGC version number. */
    800 #define PDM_PICHLPGC_VERSION  0xfc010000
     792} PDMPICHLPRC;
     793
     794/** Pointer to PIC RC helpers. */
     795typedef RCPTRTYPE(PDMPICHLPRC *) PPDMPICHLPRC;
     796/** Pointer to const PIC RC helpers. */
     797typedef RCPTRTYPE(const PDMPICHLPRC *) PCPDMPICHLPRC;
     798
     799/** Current PDMPICHLPRC version number. */
     800#define PDM_PICHLPRC_VERSION  0xfc010000
    801801
    802802
     
    853853
    854854/**
    855  * PIC HC helpers.
     855 * PIC R3 helpers.
    856856 */
    857857typedef struct PDMPICHLPR3
     
    880880     * @returns Fatal error on failure.
    881881     * @param   pDevIns         The PIC device instance.
    882      * @param   rc              Dummy for making the interface identical to the GC and R0 versions.
     882     * @param   rc              Dummy for making the interface identical to the RC and R0 versions.
    883883     */
    884884    DECLR3CALLBACKMEMBER(int,   pfnLock,(PPDMDEVINS pDevIns, int rc));
     
    892892
    893893    /**
    894      * Gets the address of the GC PIC helpers.
     894     * Gets the address of the RC PIC helpers.
    895895     *
    896896     * This should be called at both construction and relocation time
    897      * to obtain the correct address of the GC helpers.
    898      *
    899      * @returns GC pointer to the PIC helpers.
     897     * to obtain the correct address of the RC helpers.
     898     *
     899     * @returns RC pointer to the PIC helpers.
    900900     * @param   pDevIns         Device instance of the PIC.
    901901     */
    902     DECLR3CALLBACKMEMBER(PCPDMPICHLPGC, pfnGetGCHelpers,(PPDMDEVINS pDevIns));
     902    DECLR3CALLBACKMEMBER(PCPDMPICHLPRC, pfnGetRCHelpers,(PPDMDEVINS pDevIns));
    903903
    904904    /**
     
    906906     *
    907907     * This should be called at both construction and relocation time
    908      * to obtain the correct address of the GC helpers.
     908     * to obtain the correct address of the R0 helpers.
    909909     *
    910910     * @returns R0 pointer to the PIC helpers.
     
    917917} PDMPICHLPR3;
    918918
    919 /** Pointer to PIC HC helpers. */
     919/** Pointer to PIC R3 helpers. */
    920920typedef R3PTRTYPE(PDMPICHLPR3 *) PPDMPICHLPR3;
    921 /** Pointer to const PIC HC helpers. */
     921/** Pointer to const PIC R3 helpers. */
    922922typedef R3PTRTYPE(const PDMPICHLPR3 *) PCPDMPICHLPR3;
    923923
     
    12821282     * Private interface between the IOAPIC and APIC.
    12831283     *
    1284      * See comments about this hack on PDMAPICREG::pfnBusDeliverHC.
     1284     * See comments about this hack on PDMAPICREG::pfnBusDeliverR3.
    12851285     *
    12861286     * @returns The current TPR.
     
    13361336     * Private interface between the IOAPIC and APIC.
    13371337     *
    1338      * See comments about this hack on PDMAPICREG::pfnBusDeliverHC.
     1338     * See comments about this hack on PDMAPICREG::pfnBusDeliverR3.
    13391339     *
    13401340     * @returns The current TPR.
     
    13791379
    13801380/**
    1381  * IOAPIC HC helpers.
     1381 * IOAPIC R3 helpers.
    13821382 */
    13831383typedef struct PDMIOAPICHLPR3
     
    13891389     * Private interface between the IOAPIC and APIC.
    13901390     *
    1391      * See comments about this hack on PDMAPICREG::pfnBusDeliverHC.
     1391     * See comments about this hack on PDMAPICREG::pfnBusDeliverR3.
    13921392     *
    13931393     * @returns The current TPR.
     
    14451445    uint32_t                u32TheEnd;
    14461446} PDMIOAPICHLPR3;
    1447 /** Pointer to IOAPIC HC helpers. */
     1447/** Pointer to IOAPIC R3 helpers. */
    14481448typedef R3PTRTYPE(PDMIOAPICHLPR3 *) PPDMIOAPICHLPR3;
    14491449/** Pointer to const IOAPIC helpers. */
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