VirtualBox

Changeset 71746 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Apr 8, 2018 2:31:11 PM (7 years ago)
Author:
vboxsync
Message:

DevSB16: Stop using the IO_WRITE_PROTO and IO_READ_PROTO macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevSB16.cpp

    r71745 r71746  
    7272#define SB16_SAVE_STATE_VERSION_VBOX_30 1
    7373
    74 #define IO_READ_PROTO(name)                                             \
    75     DECLCALLBACK(int) name (PPDMDEVINS pDevIns, void *opaque,       \
    76                             RTIOPORT nport, uint32_t *pu32, unsigned cb)
    77 
    78 #define IO_WRITE_PROTO(name)                                            \
    79     DECLCALLBACK(int) name (PPDMDEVINS pDevIns, void *opaque,       \
    80                             RTIOPORT nport, uint32_t val, unsigned cb)
    81 
    8274
    8375/*********************************************************************************************************************************
     
    555547}
    556548
     549/**
     550 * @callback_method_impl{PFNTMTIMERDEV}
     551 */
    557552static DECLCALLBACK(void) sb16TimerIRQ(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvThis)
    558553{
     
    13381333}
    13391334
    1340 static IO_WRITE_PROTO(dsp_write)
     1335/**
     1336 * @callback_method_impl{PFNIOMIOPORTOUT}
     1337 */
     1338static DECLCALLBACK(int) dsp_write(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t val, unsigned cb)
    13411339{
    13421340    RT_NOREF(pDevIns, cb);
     
    14351433}
    14361434
    1437 static IO_READ_PROTO(dsp_read)
     1435
     1436/**
     1437 * @callback_method_impl{PFNIOMIOPORTIN}
     1438 */
     1439static DECLCALLBACK(int) dsp_read(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t *pu32, unsigned cb)
    14381440{
    14391441    RT_NOREF(pDevIns, cb);
     
    17201722}
    17211723
    1722 static IO_WRITE_PROTO(mixer_write)
     1724/**
     1725 * @callback_method_impl{PFNIOMIOPORTOUT}
     1726 */
     1727static DECLCALLBACK(int) mixer_write(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t val, unsigned cb)
    17231728{
    17241729    RT_NOREF(pDevIns);
     
    17491754}
    17501755
    1751 static IO_READ_PROTO(mixer_read)
     1756/**
     1757 * @callback_method_impl{PFNIOMIOPORTIN}
     1758 */
     1759static DECLCALLBACK(int) mixer_read(PPDMDEVINS pDevIns, void *opaque, RTIOPORT nport, uint32_t *pu32, unsigned cb)
    17521760{
    17531761    RT_NOREF(pDevIns, cb);
     
    17681776}
    17691777
    1770 static int sb16WriteAudio(PSB16STATE pThis, int nchan, uint32_t dma_pos,
    1771                           uint32_t dma_len, int len)
     1778/**
     1779 * Called by sb16DMARead.
     1780 */
     1781static int sb16WriteAudio(PSB16STATE pThis, int nchan, uint32_t dma_pos, uint32_t dma_len, int len)
    17721782{
    17731783    uint8_t  tmpbuf[_4K]; /** @todo Have a buffer on the heap. */
     
    18381848}
    18391849
     1850/**
     1851 * @callback_method_impl{FNDMATRANSFERHANDLER,
     1852 *      Worker callback for both DMA channels.}
     1853 */
    18401854static DECLCALLBACK(uint32_t) sb16DMARead(PPDMDEVINS pDevIns, void *opaque, unsigned nchan, uint32_t dma_pos, uint32_t dma_len)
    18411855{
     
    19261940
    19271941#ifndef VBOX_WITH_AUDIO_SB16_CALLBACKS
     1942
    19281943static void sb16TimerMaybeStart(PSB16STATE pThis)
    19291944{
     
    19801995            continue;
    19811996
    1982 #ifdef VBOX_STRICT
     1997# ifdef VBOX_STRICT
    19831998        /*
    19841999         * Sanity. Make sure that all streams have the same configuration
     
    20052020            }
    20062021        }
    2007 #endif
     2022# endif
    20082023        PPDMIAUDIOCONNECTOR pConn = pDrv->pConnector;
    20092024        if (!pConn)
     
    20662081    }
    20672082}
     2083
    20682084#endif /* !VBOX_WITH_AUDIO_SB16_CALLBACKS */
    20692085
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