VirtualBox

Changeset 72083 in vbox for trunk/include


Ignore:
Timestamp:
May 2, 2018 6:04:29 PM (7 years ago)
Author:
vboxsync
Message:

Devices/Serial: Updates to the new emulation

File:
1 edited

Legend:

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

    r72072 r72083  
    109109    /** Odd parity. */
    110110    PDMSERIALPARITY_ODD,
     111    /** Mark parity. */
     112    PDMSERIALPARITY_MARK,
     113    /** Space parity. */
     114    PDMSERIALPARITY_SPACE,
    111115    /** 32bit hack. */
    112116    PDMSERIALPARITY_32BIT_HACK = 0x7fffffff
    113117} PDMSERIALPARITY;
     118
     119
     120/**
     121 * Supported number of stop bits.
     122 */
     123typedef enum PDMSERIALSTOPBITS
     124{
     125    /** Invalid stop bits setting. */
     126    PDMSERIALSTOPBITS_INVALID = 0,
     127    /** One stop bit is used. */
     128    PDMSERIALSTOPBITS_ONE,
     129    /** 1.5 stop bits are used. */
     130    PDMSERIALSTOPBITS_ONEPOINTFIVE,
     131    /** 2 stop bits are used. */
     132    PDMSERIALSTOPBITS_TWO,
     133    /** 32bit hack. */
     134    PDMSERIALSTOPBITS_32BIT_HACK = 0x7fffffff
     135} PDMSERIALSTOPBITS;
    114136
    115137
     
    150172     * @param   enmParity       Parity method.
    151173     * @param   cDataBits       Number of data bits.
    152      * @param   cStopBits       Number of stop bits.
     174     * @param   enmStopBits     Number of stop bits.
    153175     * @thread  Any thread.
    154176     */
    155177    DECLR3CALLBACKMEMBER(int, pfnChgParams,(PPDMISERIALCONNECTOR pInterface, uint32_t uBps,
    156                                             PDMSERIALPARITY enmParity, unsigned cDataBits, unsigned cStopBits));
     178                                            PDMSERIALPARITY enmParity, unsigned cDataBits,
     179                                            PDMSERIALSTOPBITS enmStopBits));
    157180
    158181    /**
     
    176199     */
    177200    DECLR3CALLBACKMEMBER(int, pfnChgBrk,(PPDMISERIALCONNECTOR pInterface, bool fBrk));
     201
     202    /**
     203     * Queries the current state of the status lines.
     204     *
     205     * @returns VBox status code.
     206     * @param   pInterface          Pointer to the interface structure containing the called function pointer.
     207     * @param   pfStsLines          Where to store the status line states on success.
     208     */
     209    DECLR3CALLBACKMEMBER(int, pfnQueryStsLines, (PPDMISERIALCONNECTOR pInterface, uint32_t *pfStsLines));
    178210
    179211} PDMISERIALCONNECTOR;
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