VirtualBox

Changeset 101617 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 27, 2023 12:46:15 PM (15 months ago)
Author:
vboxsync
Message:

Devices/Gpio/DevPL061: Updates to the code, bugref:10453

Location:
trunk/include/VBox
Files:
3 edited

Legend:

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

    r101320 r101617  
    125125    /** Guest Interface Manager Device group. */
    126126    LOG_GROUP_DEV_GIM,
     127    /** General Purpose I/O controller Device group. */
     128    LOG_GROUP_DEV_GPIO,
    127129    /** HDA Device group. */
    128130    LOG_GROUP_DEV_HDA,
     
    217219    /** Floppy media driver group. */
    218220    LOG_GROUP_DRV_FLOPPY,
     221    /** General Purpose I/O driver group. */
     222    LOG_GROUP_DRV_GPIO,
    219223    /** Host Audio driver group. */
    220224    LOG_GROUP_DRV_HOST_AUDIO,
     
    896900    "DEV_FLASH", \
    897901    "DEV_GIM", \
     902    "DEV_GPIO", \
    898903    "DEV_HDA", \
    899904    "DEV_HDA_CODEC", \
     
    942947    "DRV_DISPLAY", \
    943948    "DRV_FLOPPY", \
     949    "DRV_GPIO", \
    944950    "DRV_HOST_AUDIO", \
    945951    "DRV_HOST_BASE", \
  • trunk/include/VBox/vmm/pdmdev.h

    r100184 r101617  
    536536/** Host PCI pass-through device */
    537537#define PDM_DEVREG_CLASS_HOST_DEV               RT_BIT(18)
     538/** GPIO device */
     539#define PDM_DEVREG_CLASS_GPIO                   RT_BIT(19)
    538540/** Misc devices (always last). */
    539541#define PDM_DEVREG_CLASS_MISC                   RT_BIT(31)
  • trunk/include/VBox/vmm/pdmifs.h

    r101599 r101617  
    23982398#define PDMIVFSCONNECTOR_IID               "a1fc51e0-414a-4e78-8388-8053b9dc6521"
    23992399
     2400
     2401/** Pointer to an GPIO port interface. */
     2402typedef struct PDMIGPIOPORT       *PPDMIGPIOPORT;
     2403/**
     2404 * Interface for GPIO ports (down).
     2405 * Pair with PDMIGPIOCONNECTORS.
     2406 */
     2407typedef struct PDMIGPIOPORT
     2408{
     2409
     2410    /**
     2411     * Changes the state of the indicated GPIO line to the given value.
     2412     *
     2413     * @returns VBox status code.
     2414     * @param   pInterface          Pointer to this interface.
     2415     * @param   idGpio              The GPIO line ID to change.
     2416     * @param   fVal                The value to change the GPIO line to.
     2417     */
     2418    DECLR3CALLBACKMEMBER(int, pfnGpioLineChange, (PPDMIGPIOPORT pInterface, uint32_t idGpio, bool fVal));
     2419
     2420    /**
     2421     * Returns whether the given GPIO line is configured as an input.
     2422     *
     2423     * @returns true if the line is configured as an input, false if output.
     2424     * @param   pInterface          Pointer to this interface.
     2425     * @param   idGpio              The GPIO line ID to check.
     2426     */
     2427    DECLR3CALLBACKMEMBER(bool, pfnGpioLineIsInput, (PPDMIGPIOPORT pInterface, uint32_t idGpio));
     2428
     2429} PDMIGPIOPORT;
     2430/** PDMIGPIOPORT interface ID. */
     2431#define PDMIGPIOPORT_IID                        "75e0017c-4cda-47a4-8160-f4cc436025c4"
     2432
     2433
     2434/** Pointer to an GPIO connectors interface. */
     2435typedef struct PDMIGPIOCONNECTOR *PPDMIGPIOCONNECTOR;
     2436/**
     2437 * GPIO connector interface (up).
     2438 * Pair with PDMIGPIOPORT.
     2439 */
     2440typedef struct PDMIGPIOCONNECTOR
     2441{
     2442    uint32_t uDummy;
     2443} PDMIGPIOCONNECTOR;
     2444/** PDMIGPIOCONNECTOR interface ID. */
     2445#define PDMIGPIOCONNECTOR_IID                   "504bff7e-489f-4829-8cc3-f9b080d39133"
     2446
    24002447/** @} */
    24012448
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