VirtualBox

Changeset 44704 in vbox


Ignore:
Timestamp:
Feb 14, 2013 8:48:47 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83803
Message:

DevPcArch.c: Some cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcArch.c

    r44528 r44704  
    4646
    4747/**
    48  * Port I/O Handler for math coprocessor IN operations.
    49  *
    50  * @returns VBox status code.
    51  *
    52  * @param   pDevIns     The device instance.
    53  * @param   pvUser      User argument - ignored.
    54  * @param   uPort       Port number used for the IN operation.
    55  * @param   pu32        Where to store the result.
    56  * @param   cb          Number of bytes read.
     48 * @callback_method_impl{FNIOMIOPORTIN, Math coprocessor.}
    5749 */
    5850static DECLCALLBACK(int) pcarchIOPortFPURead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
     
    6759
    6860/**
    69  * Port I/O Handler for math coprocessor OUT operations.
    70  *
    71  * @returns VBox status code.
    72  *
    73  * @param   pDevIns     The device instance.
    74  * @param   pvUser      User argument - ignored.
    75  * @param   uPort       Port number used for the IN operation.
    76  * @param   u32         The value to output.
    77  * @param   cb          The value size in bytes.
     61 * @callback_method_impl{FNIOMIOPORTOUT, Math coprocessor.}
    7862 * @todo Add IGNNE support.
    7963 */
     
    124108
    125109/**
    126  * Port I/O Handler for PS/2 system control port A IN operations.
    127  *
    128  * @returns VBox status code.
    129  *
    130  * @param   pDevIns     The device instance.
    131  * @param   pvUser      User argument - ignored.
    132  * @param   uPort       Port number used for the IN operation.
    133  * @param   pu32        Where to store the result.
    134  * @param   cb          Number of bytes read.
     110 * @callback_method_impl{FNIOMIOPORTIN, PS/2 system control port A.}
    135111 *
    136112 * @todo    Check if the A20 enable/disable method implemented here in any way
     
    166142 * @endverbatim
    167143 */
    168 static DECLCALLBACK(int) pcarchIOPortPS2SysControlPortARead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
     144static DECLCALLBACK(int)
     145pcarchIOPortPS2SysControlPortARead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    169146{
    170147    if (cb == 1)
     
    178155
    179156/**
    180  * Port I/O Handler for PS/2 system control port A OUT operations.
    181  *
    182  * @returns VBox status code.
    183  *
    184  * @param   pDevIns     The device instance.
    185  * @param   pvUser      User argument - ignored.
    186  * @param   uPort       Port number used for the IN operation.
    187  * @param   u32         The value to output.
    188  * @param   cb          The value size in bytes.
     157 * @callback_method_impl{FNIOMIOPORTOUT, PS/2 system control port A.}
    189158 * @see     Remark and todo of pcarchIOPortPS2SysControlPortARead().
    190159 */
    191 static DECLCALLBACK(int) pcarchIOPortPS2SysControlPortAWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
     160static DECLCALLBACK(int)
     161pcarchIOPortPS2SysControlPortAWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    192162{
    193163    NOREF(pvUser);
     
    236206     * Register I/O Ports
    237207     */
    238     rc = PDMDevHlpIOPortRegister(pDevIns, 0xF0, 0x10, NULL, pcarchIOPortFPUWrite, pcarchIOPortFPURead, NULL, NULL, "Math Co-Processor (DOS/OS2 mode)");
     208    rc = PDMDevHlpIOPortRegister(pDevIns, 0xF0, 0x10, NULL,
     209                                 pcarchIOPortFPUWrite, pcarchIOPortFPURead,
     210                                 NULL, NULL, "Math Co-Processor (DOS/OS2 mode)");
    239211    if (RT_FAILURE(rc))
    240212        return rc;
    241     rc = PDMDevHlpIOPortRegister(pDevIns, 0x92, 1, NULL, pcarchIOPortPS2SysControlPortAWrite, pcarchIOPortPS2SysControlPortARead, NULL, NULL, "PS/2 system control port A (A20 and more)");
     213    rc = PDMDevHlpIOPortRegister(pDevIns, 0x92, 1, NULL,
     214                                 pcarchIOPortPS2SysControlPortAWrite, pcarchIOPortPS2SysControlPortARead,
     215                                 NULL, NULL, "PS/2 system control port A (A20 and more)");
    242216    if (RT_FAILURE(rc))
    243217        return rc;
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