VirtualBox

Changeset 82204 in vbox


Ignore:
Timestamp:
Nov 25, 2019 9:55:12 PM (5 years ago)
Author:
vboxsync
Message:

DevPS2: type name cleanup. bugref:9218

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r82203 r82204  
    208208
    209209/** update irq and KBD_STAT_[MOUSE_]OBF */
    210 static void kbd_update_irq(PPDMDEVINS pDevIns, KBDState *s)
     210static void kbd_update_irq(PPDMDEVINS pDevIns, PKBDSTATE s)
    211211{
    212212    int irq12_level, irq1_level;
     
    444444PS2K *KBDGetPS2KFromDevIns(PPDMDEVINS pDevIns)
    445445{
    446     KBDState *pThis = PDMDEVINS_2_DATA(pDevIns, PKBDSTATE);
     446    PKBDSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PKBDSTATE);
    447447    return &pThis->Kbd;
    448448}
     
    450450PS2M *KBDGetPS2MFromDevIns(PPDMDEVINS pDevIns)
    451451{
    452     KBDState *pThis = PDMDEVINS_2_DATA(pDevIns, PKBDSTATE);
     452    PKBDSTATE pThis = PDMDEVINS_2_DATA(pDevIns, PKBDSTATE);
    453453    return &pThis->Aux;
    454454}
     
    515515#ifdef IN_RING3
    516516
    517 static int kbd_load(PCPDMDEVHLPR3 pHlp, PSSMHANDLE pSSM, KBDState *s, uint32_t version_id)
     517static int kbd_load(PCPDMDEVHLPR3 pHlp, PSSMHANDLE pSSM, PKBDSTATE s, uint32_t version_id)
    518518{
    519519    uint32_t    u32, i;
     
    10931093    /* .cMaxInstances = */          1,
    10941094    /* .uSharedVersion = */         42,
    1095     /* .cbInstanceShared = */       sizeof(KBDState),
     1095    /* .cbInstanceShared = */       sizeof(KBDSTATE),
    10961096    /* .cbInstanceCC = */           0,
    10971097    /* .cbInstanceRC = */           0,
  • trunk/src/VBox/Devices/Input/DevPS2.h

    r82203 r82204  
    344344    /** Mouse state (implemented in separate PS2M module). */
    345345    PS2M                        Aux;
    346 } KBDSTATE, KBDState;
     346} KBDSTATE;
    347347
    348348
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp

    r82087 r82204  
    448448
    449449    /* Input/pckbd.c */
    450     GEN_CHECK_SIZE(KBDState);
    451     GEN_CHECK_OFF(KBDState, write_cmd);
    452     GEN_CHECK_OFF(KBDState, status);
    453     GEN_CHECK_OFF(KBDState, mode);
    454     GEN_CHECK_OFF(KBDState, pDevInsR3);
    455     GEN_CHECK_OFF(KBDState, pDevInsR0);
    456     GEN_CHECK_OFF(KBDState, pDevInsRC);
     450    GEN_CHECK_SIZE(KBDSTATE);
     451    GEN_CHECK_OFF(KBDSTATE, write_cmd);
     452    GEN_CHECK_OFF(KBDSTATE, status);
     453    GEN_CHECK_OFF(KBDSTATE, mode);
     454    GEN_CHECK_OFF(KBDSTATE, pDevInsR3);
     455    GEN_CHECK_OFF(KBDSTATE, pDevInsR0);
     456    GEN_CHECK_OFF(KBDSTATE, pDevInsRC);
    457457    GEN_CHECK_SIZE(KbdKeyQ);
    458458    GEN_CHECK_OFF(KbdCmdQ, rpos);
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