VirtualBox

Changeset 39684 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 29, 2011 5:50:00 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75521
Message:

Parallel: Some love for the long abandoned parallel port emulation. General cleanup and implemented passthrough of EPP transfers

File:
1 edited

Legend:

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

    r39603 r39684  
    17681768typedef enum PDMPARALLELPORTMODE
    17691769{
    1770     PDM_PARALLEL_PORT_MODE_COMPAT,
    1771     PDM_PARALLEL_PORT_MODE_EPP,
    1772     PDM_PARALLEL_PORT_MODE_ECP
     1770    /** First invalid mode. */
     1771    PDM_PARALLEL_PORT_MODE_INVALID = 0,
     1772    /** SPP (Compatibility mode). */
     1773    PDM_PARALLEL_PORT_MODE_SPP,
     1774    /** EPP Data mode. */
     1775    PDM_PARALLEL_PORT_MODE_EPP_DATA,
     1776    /** EPP Address mode. */
     1777    PDM_PARALLEL_PORT_MODE_EPP_ADDR,
     1778    /** ECP mode (not implemented yet). */
     1779    PDM_PARALLEL_PORT_MODE_ECP,
     1780    /** 32bit hack. */
     1781    PDM_PARALLEL_PORT_MODE_32BIT_HACK = 0x7fffffff
    17731782} PDMPARALLELPORTMODE;
    17741783
     
    17811790typedef struct PDMIHOSTPARALLELPORT
    17821791{
    1783     /**
    1784      * Deliver data read to the device/driver.
    1785      *
    1786      * @returns VBox status code.
    1787      * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    1788      * @param   pvBuf           Where the read bits are stored.
    1789      * @param   pcbRead         Number of bytes available for reading/having been read.
    1790      * @thread  Any thread.
    1791      */
    1792     DECLR3CALLBACKMEMBER(int, pfnNotifyRead,(PPDMIHOSTPARALLELPORT pInterface, const void *pvBuf, size_t *pcbRead));
    1793 
    17941792    /**
    17951793     * Notify device/driver that an interrupt has occurred.
     
    18021800} PDMIHOSTPARALLELPORT;
    18031801/** PDMIHOSTPARALLELPORT interface ID. */
    1804 #define PDMIHOSTPARALLELPORT_IID                "ac13e437-cd30-47ac-a271-6120571f3a22"
     1802#define PDMIHOSTPARALLELPORT_IID                "f24b8668-e7f6-4eaa-a14c-4aa2a5f7048e"
    18051803
    18061804
     
    18201818     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    18211819     * @param   pvBuf           Where to store the write bits.
    1822      * @param   pcbWrite        Number of bytes to write/bytes actually written.
    1823      * @thread  Any thread.
    1824      */
    1825     DECLR3CALLBACKMEMBER(int, pfnWrite,(PPDMIHOSTPARALLELCONNECTOR pInterface, const void *pvBuf, size_t *pcbWrite));
     1820     * @param   cbWrite         Number of bytes to write.
     1821     * @param   enmMode         Mode to write the data.
     1822     * @thread  Any thread.
     1823     */
     1824    DECLR3CALLBACKMEMBER(int, pfnWrite,(PPDMIHOSTPARALLELCONNECTOR pInterface, const void *pvBuf,
     1825                                        size_t cbWrite, PDMPARALLELPORTMODE enmMode));
    18261826
    18271827    /**
     
    18311831     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    18321832     * @param   pvBuf           Where to store the read bits.
    1833      * @param   pcbRead         Number of bytes to read/bytes actually read.
    1834      * @thread  Any thread.
    1835      */
    1836     DECLR3CALLBACKMEMBER(int, pfnRead,(PPDMIHOSTPARALLELCONNECTOR pInterface, void *pvBuf, size_t *pcbRead));
     1833     * @param   cbRead          Number of bytes to read.
     1834     * @param   enmMode         Mode to read the data.
     1835     * @thread  Any thread.
     1836     */
     1837    DECLR3CALLBACKMEMBER(int, pfnRead,(PPDMIHOSTPARALLELCONNECTOR pInterface, void *pvBuf,
     1838                                       size_t cbRead, PDMPARALLELPORTMODE enmMode));
     1839
     1840    /**
     1841     * Set data direction of the port (forward/reverse).
     1842     *
     1843     * @returns VBox status code.
     1844     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
     1845     * @param   fForward        Flag whether to indicate whether the port is operated in forward or reverse mode.
     1846     * @thread  Any thread.
     1847     */
     1848    DECLR3CALLBACKMEMBER(int, pfnSetPortDirection,(PPDMIHOSTPARALLELCONNECTOR pInterface, bool fForward));
    18371849
    18381850    /**
     
    18661878    DECLR3CALLBACKMEMBER(int, pfnReadStatus,(PPDMIHOSTPARALLELCONNECTOR pInterface, uint8_t *pfReg));
    18671879
    1868     /**
    1869      * Set mode of the host parallel port.
    1870      *
    1871      * @returns VBox status code.
    1872      * @param   pInterface      Pointer to the interface structure containing the called function pointer.
    1873      * @param   enmMode         The mode of the host parallel port.
    1874      * @thread  Any thread.
    1875      */
    1876     DECLR3CALLBACKMEMBER(int, pfnSetMode,(PPDMIHOSTPARALLELCONNECTOR pInterface, PDMPARALLELPORTMODE enmMode));
    18771880} PDMIHOSTPARALLELCONNECTOR;
    18781881/** PDMIHOSTPARALLELCONNECTOR interface ID. */
    1879 #define PDMIHOSTPARALLELCONNECTOR_IID           "a03567ca-b29e-4a1b-b2f3-a12435fa2982"
     1882#define PDMIHOSTPARALLELCONNECTOR_IID           "7c532602-7438-4fbc-9265-349d9f0415f9"
    18801883
    18811884
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