VirtualBox

Changeset 27126 in vbox for trunk/include


Ignore:
Timestamp:
Mar 5, 2010 7:40:43 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58461
Message:

PIT,RTC,HPET,PDM: Combined and simplified the two interfaces PDM uses to inform PIT & RTC about HPET legacy mode changes. Moved the code to the right places in the files. Use bool, not uint8_t, when we mean boolean (no saved state difference).

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r26944 r27126  
    17111711     * @returns rc if we failed to set legacy mode.
    17121712     * @param   pDevIns         Device instance of the HPET.
    1713      * @param   fActivate       Activate or deactivate legacy mode.
    1714      */
    1715     DECLR3CALLBACKMEMBER(int, pfnSetLegacyMode,(PPDMDEVINS pDevIns, bool fActivate));
     1713     * @param   fActivated      Whether legacy mode is activated or deactivated.
     1714     */
     1715    DECLR3CALLBACKMEMBER(int, pfnSetLegacyMode,(PPDMDEVINS pDevIns, bool fActivated));
    17161716
    17171717
  • trunk/include/VBox/pdmifs.h

    r27121 r27126  
    19371937#define PDMIVMMDEVPORT_IID                      "d7e52035-3b6c-422e-9215-2a75646a945d"
    19381938
    1939 /** Pointer to a PIT port interface. */
    1940 typedef struct PDMIPITPORT *PPDMIPITPORT;
    1941 /**
    1942  * PIT port interface.
    1943  */
    1944 typedef struct PDMIPITPORT
    1945 {
    1946     /**
    1947      * Notify PIT about change of HPET legacy mode.
    1948      *
    1949      * @returns VBox status code
    1950      * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    1951      * @param   fActivate       If HPET legacy mode activated or deactivated.
    1952      */
    1953     DECLR3CALLBACKMEMBER(int, pfnNotifyHpetLegacy,(PPDMIPITPORT pInterface, bool fActivate));
    1954 } PDMIPITPORT;
    1955 /** PDMIPITPORT interface ID. */
    1956 #define PDMIPITPORT_IID                        "06127207-3182-4394-b16e-0ecfeb5cbb27"
    1957 
    1958 /** Pointer to a RTC port interface. */
    1959 typedef struct PDMIRTCPORT *PPDMIRTCPORT;
    1960 /**
    1961  * RTC port interface.
    1962  */
    1963 typedef struct PDMIRTCPORT
    1964 {
    1965     /**
    1966      * Notify RTC about change of HPET legacy mode.
    1967      *
    1968      * @returns VBox status code
    1969      * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    1970      * @param   fActivate       If HPET legacy mode activated or deactivated.
    1971      */
    1972     DECLR3CALLBACKMEMBER(int, pfnNotifyHpetLegacy,(PPDMIRTCPORT pInterface, bool fActivate));
    1973 } PDMIRTCPORT;
    1974 /** PDMIRTCPORT interface ID. */
    1975 #define PDMIRTCPORT_IID                        "b6af0d7c-56c7-4064-85aa-ba78b43a26e7"
     1939
     1940/** Pointer to a HPET legacy notifcation interface. */
     1941typedef struct PDMIHPETLEGACYNOTIFY *PPDMIHPETLEGACYNOTIFY;
     1942/**
     1943 * HPET legacy notifcation interface.
     1944 */
     1945typedef struct PDMIHPETLEGACYNOTIFY
     1946{
     1947    /**
     1948     * Notify about change of HPET legacy mode.
     1949     *
     1950     * @param   pInterface      Pointer to the interface structure containing the
     1951     *                          called function pointer.
     1952     * @param   fActivated      If HPET legacy mode is activated (@c true) or
     1953     *                          deactivated (@c false).
     1954     */
     1955    DECLR3CALLBACKMEMBER(void, pfnModeChanged,(PPDMIHPETLEGACYNOTIFY pInterface, bool fActivated));
     1956} PDMIHPETLEGACYNOTIFY;
     1957/** PDMIHPETLEGACYNOTIFY interface ID. */
     1958#define PDMIHPETLEGACYNOTIFY_IID                "c9ada595-4b65-4311-8b21-b10498997774"
    19761959
    19771960
Note: See TracChangeset for help on using the changeset viewer.

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