PS2Dev.h revision 2389e53a96fd9061a9a8c35b84cef07202233bc5
/** @file
* PS/2 devices - Internal header file.
*/
/*
* Copyright (C) 2007-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef PS2DEV_H
#define PS2DEV_H
* @note Must be at least as big as the real struct. Compile time assert
* makes sure this is so. */
#define PS2K_STRUCT_FILLER 512
#define PS2M_STRUCT_FILLER 512
/* Hide the internal structure. */
#if !(defined(IN_PS2K) || defined(VBOX_DEVICE_STRUCT_TESTCASE))
typedef struct PS2K
{
} PS2K;
#endif
#if !(defined(IN_PS2M) || defined(VBOX_DEVICE_STRUCT_TESTCASE))
typedef struct PS2M
{
} PS2M;
#endif
/* Internal PS/2 Keyboard interface. */
/* Internal PS/2 Auxiliary device interface. */
void KBCUpdateInterrupts(void *pKbc);
///@todo: This should live with the KBC implementation.
/** AT to PC scancode translator state. */
typedef enum
{
XS_IDLE, /**< Starting state. */
XS_BREAK, /**< F0 break byte was received. */
XS_HIBIT /**< Break code still active. */
} xlat_state_t;
#endif