PS2Dev.h revision 13b491985af0d1325baad7591dcab4a9b27949cd
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * PS/2 devices - Internal header file.
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * Copyright (C) 2007-2012 Oracle Corporation
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * available from http://www.virtualbox.org. This file is free software;
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * you can redistribute it and/or modify it under the terms of the GNU
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * General Public License (GPL) as published by the Free Software
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/** The size of the PS2K/PS2M structure fillers.
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsync * @note Must be at least as big as the real struct. Compile time assert
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsync * makes sure this is so. */
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync/* Hide the internal structure. */
bb4f31aac6155757fe15ef9fe0bf843ed9a14441vboxsync#if !(defined(IN_PS2K) || defined(VBOX_DEVICE_STRUCT_TESTCASE))
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsynctypedef struct PS2K
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync#if !(defined(IN_PS2M) || defined(VBOX_DEVICE_STRUCT_TESTCASE))
13b491985af0d1325baad7591dcab4a9b27949cdvboxsynctypedef struct PS2M
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/* Internal PS/2 Keyboard interface. */
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsyncint PS2KConstruct(PPS2K pThis, PPDMDEVINS pDevIns, void *pParent, int iInstance);
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsyncint PS2KAttach(PPS2K pThis, PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags);
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsyncvoid PS2KRelocate(PPS2K pThis, RTGCINTPTR offDelta, PPDMDEVINS pDevIns);
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsyncint PS2KLoadState(PPS2K pThis, PSSMHANDLE pSSM, uint32_t uVersion);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/* Internal PS/2 Auxiliary device interface. */
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncint PS2MConstruct(PPS2M pThis, PPDMDEVINS pDevIns, void *pParent, int iInstance);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncint PS2MAttach(PPS2M pThis, PPDMDEVINS pDevIns, unsigned iLUN, uint32_t fFlags);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncvoid PS2MRelocate(PPS2M pThis, RTGCINTPTR offDelta, PPDMDEVINS pDevIns);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncint PS2MLoadState(PPS2M pThis, PSSMHANDLE pSSM, uint32_t uVersion);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/* Shared keyboard/aux internal interface. */
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsync///@todo: This should live with the KBC implementation.
2c985e439e07c807c1c16393a77de198e91b0dafvboxsync/** AT to PC scancode translator state. */
2272ae65af7994e8d1b9019609d72ef322b28ca5vboxsynctypedef enum