The AT keyboard "write to mouse" command now returns 0xFF (error) when no PS/2 mouse is attached - fixes hangs on AOpen AP53, ASUS P/I-P55T2S, and Tyan Titan Pro/ATX when not using PS/2 mouse; Fixed the emulation of the SMC FDC37C669 Super I/O chip - serial ports now work correctly on the AOpen AP53 and the ASUS P/I-P55T2S.
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
/*
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
* running old operating systems and software designed for IBM
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
* system designs based on the PCI bus.
|
|
*
|
|
* This file is part of the 86Box distribution.
|
|
*
|
|
* Intel 8042 (AT keyboard controller) emulation.
|
|
*
|
|
* Version: @(#)keyboard_at.h 1.0.1 2017/08/23
|
|
*
|
|
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
* Copyright 2008-2017 Sarah Walker.
|
|
* Copyright 2016,2017 Miran Grca.
|
|
*/
|
|
|
|
|
|
extern int mouse_queue_start, mouse_queue_end;
|
|
extern int mouse_scan;
|
|
|
|
|
|
extern void keyboard_at_init(void);
|
|
extern void keyboard_at_init_ps2(void);
|
|
extern void keyboard_at_reset(void);
|
|
extern void keyboard_at_adddata_keyboard_raw(uint8_t val);
|
|
extern void keyboard_at_adddata_mouse(uint8_t val);
|
|
extern void keyboard_at_set_mouse(void (*mouse_write)(uint8_t val, void *p), void *p);
|
|
uint8_t keyboard_at_get_mouse_scan(void);
|
|
void keyboard_at_set_mouse_scan(uint8_t val);
|