VirtualBox

忽略:
時間撮記:
2013-8-31 下午04:16:58 (12 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
88604
訊息:

Added new PS/2 mouse implementation (currently disabled).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Input/PS2Dev.h

    r44806 r48214  
    1818#define PS2DEV_H
    1919
    20 /** The size of the PS2K structure filler.
     20/** The size of the PS2K/PS2M structure fillers.
    2121 * @note Must be at least as big as the real struct. Compile time assert
    2222 *       makes sure this is so. */
    2323#define PS2K_STRUCT_FILLER  512
     24#define PS2M_STRUCT_FILLER  512
    2425
    2526/* Hide the internal structure. */
     
    3132#endif
    3233
     34#if !(defined(IN_PS2M) || defined(VBOX_DEVICE_STRUCT_TESTCASE))
     35typedef struct PS2M
     36{
     37    uint8_t     abFiller[PS2M_STRUCT_FILLER];
     38} PS2M;
     39#endif
     40
     41/* Internal PS/2 Keyboard interface. */
    3342typedef struct PS2K *PPS2K;
    3443
     
    4352int  PS2KLoadState(PPS2K pThis, PSSMHANDLE pSSM, uint32_t uVersion);
    4453
     54PS2K *KBDGetPS2KFromDevIns(PPDMDEVINS pDevIns);
     55
     56
     57/* Internal PS/2 Auxiliary device interface. */
     58typedef struct PS2M *PPS2M;
     59
     60int  PS2MByteToAux(PPS2M pThis, uint8_t cmd);
     61int  PS2MByteFromAux(PPS2M pThis, uint8_t *pVal);
     62
     63int  PS2MConstruct(PPS2M pThis, PPDMDEVINS pDevIns, void *pParent, int iInstance);
     64int  PS2MAttach(PPS2M pThis, PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags);
     65void PS2MReset(PPS2M pThis);
     66void PS2MRelocate(PPS2M pThis, RTGCINTPTR offDelta, PPDMDEVINS pDevIns);
     67void PS2MSaveState(PPS2M pThis, PSSMHANDLE pSSM);
     68int  PS2MLoadState(PPS2M pThis, PSSMHANDLE pSSM, uint32_t uVersion);
     69
     70PS2M *KBDGetPS2MFromDevIns(PPDMDEVINS pDevIns);
     71
     72
     73/* Shared keyboard/aux internal interface. */
    4574void KBCUpdateInterrupts(void *pKbc);
    4675
    47 PS2K *KBDGetPS2KFromDevIns(PPDMDEVINS pDevIns);
    4876
    4977///@todo: This should live with the KBC implementation.
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette