VirtualBox

Changeset 62618 in vbox for trunk/src/VBox/Devices/Parallel


Ignore:
Timestamp:
Jul 28, 2016 11:23:36 AM (9 years ago)
Author:
vboxsync
Message:

Devices: unused parameter warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp

    r62510 r62618  
    172172/**
    173173 * R0 mode function to write byte value to data port.
     174 *
    174175 * @returns VBox status code.
    175176 * @param   pDrvIns    Driver instance.
     
    186187
    187188/**
    188  * R0 mode function to write byte value to parallel port control
    189  * register.
     189 * R0 mode function to write byte value to parallel port control register.
     190 *
    190191 * @returns VBox status code.
    191192 * @param   pDrvIns     Driver instance.
     
    201202
    202203/**
    203  * R0 mode function to ready byte value from the parallel port
    204  * data register
     204 * R0 mode function to ready byte value from the parallel port data register.
     205 *
    205206 * @returns VBox status code.
    206207 * @param   pDrvIns    Driver instance.
    207  * @param   u64Arg     Not used.
    208  */
    209 static int drvR0HostParallelReqRead(PPDMDRVINS pDrvIns, uint64_t u64Arg)
    210 {
    211     uint8_t u8Data;
     208 */
     209static int drvR0HostParallelReqRead(PPDMDRVINS pDrvIns)
     210{
    212211    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    213     u8Data = ASMInU8(pThis->u32LptAddr);
     212    uint8_t u8Data = ASMInU8(pThis->u32LptAddr);
    214213    LogFlowFunc(("read from data port=%#x val=%#x\n", pThis->u32LptAddr, u8Data));
    215214    pThis->u8ReadIn = u8Data;
     
    218217
    219218/**
    220  * R0 mode function to ready byte value from the parallel port
    221  * control register.
     219 * R0 mode function to ready byte value from the parallel port control register.
     220 *
    222221 * @returns VBox status code.
    223222 * @param   pDrvIns    Driver instance.
    224  * @param   u64Arg     Not used.
    225  */
    226 static int drvR0HostParallelReqReadControl(PPDMDRVINS pDrvIns, uint64_t u64Arg)
    227 {
    228     uint8_t u8Data;
     223 */
     224static int drvR0HostParallelReqReadControl(PPDMDRVINS pDrvIns)
     225{
    229226    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    230     u8Data = ASMInU8(pThis->u32LptAddrControl);
     227    uint8_t u8Data = ASMInU8(pThis->u32LptAddrControl);
    231228    LogFlowFunc(("read from ctrl port=%#x val=%#x\n", pThis->u32LptAddr, u8Data));
    232229    pThis->u8ReadInControl = u8Data;
     
    235232
    236233/**
    237  * R0 mode function to ready byte value from the parallel port
    238  * status register.
     234 * R0 mode function to ready byte value from the parallel port status register.
     235 *
    239236 * @returns VBox status code.
    240237 * @param   pDrvIns    Driver instance.
    241  * @param   u64Arg     Not used.
    242  */
    243 static int drvR0HostParallelReqReadStatus(PPDMDRVINS pDrvIns, uint64_t u64Arg)
    244 {
    245     uint8_t u8Data;
     238 */
     239static int drvR0HostParallelReqReadStatus(PPDMDRVINS pDrvIns)
     240{
    246241    PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    247     u8Data = ASMInU8(pThis->u32LptAddrStatus);
     242    uint8_t u8Data = ASMInU8(pThis->u32LptAddrStatus);
    248243    LogFlowFunc(("read from status port=%#x val=%#x\n", pThis->u32LptAddr, u8Data));
    249244    pThis->u8ReadInStatus = u8Data;
     
    254249 * R0 mode function to set the direction of parallel port -
    255250 * operate in bidirectional mode or single direction.
     251 *
    256252 * @returns VBox status code.
    257253 * @param   pDrvIns    Driver instance.
     
    291287    {
    292288        case DRVHOSTPARALLELR0OP_READ:
    293             rc = drvR0HostParallelReqRead(pDrvIns, u64Arg);
     289            rc = drvR0HostParallelReqRead(pDrvIns);
    294290            break;
    295291        case DRVHOSTPARALLELR0OP_READSTATUS:
    296             rc = drvR0HostParallelReqReadStatus(pDrvIns, u64Arg);
     292            rc = drvR0HostParallelReqReadStatus(pDrvIns);
    297293            break;
    298294        case DRVHOSTPARALLELR0OP_READCONTROL:
    299             rc = drvR0HostParallelReqReadControl(pDrvIns, u64Arg);
     295            rc = drvR0HostParallelReqReadControl(pDrvIns);
    300296            break;
    301297        case DRVHOSTPARALLELR0OP_WRITE:
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