aboutsummaryrefslogtreecommitdiffstats
path: root/src/biosvar.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-03-13 18:51:46 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-03-13 18:51:46 -0500
commit6704cf9aa1f7e6bd7405044f222c23459d4b4d93 (patch)
tree49cc2d4267efdea92e112c2cd5eca1328900eeed /src/biosvar.h
parent808939c17f603f3c7ad5abfb882cee55f636867b (diff)
downloadseabios-6704cf9aa1f7e6bd7405044f222c23459d4b4d93.tar.gz
Revert "Rework disabling of ps2 port irqs."
This reverts commit 6f702dd6987b22e9bce472fe61910392af17416a. That patch introduced a regression by enabling mouse interrupts by default. It also appears that disabling interrupts by software alone will not work well with some old DOS programs that hook the keyboard irq.
Diffstat (limited to 'src/biosvar.h')
-rw-r--r--src/biosvar.h30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/biosvar.h b/src/biosvar.h
index 808793d2..ea2d67d9 100644
--- a/src/biosvar.h
+++ b/src/biosvar.h
@@ -97,7 +97,7 @@ struct bios_data_area_s {
u8 floppy_media_state[4];
u8 floppy_track[2];
u8 kbd_flag2;
- u8 kbd_flag3;
+ u8 kbd_led;
struct segoff_s user_wait_complete_flag;
u32 user_wait_timeout;
// 40:A0
@@ -123,33 +123,6 @@ struct bios_data_area_s {
#define FMS_DOUBLE_STEPPING (1<<5)
#define FMS_DATA_RATE_MASK (0xc0)
-// Bit definitions for kbd_flag[0123]
-#define KF0_RSHIFT (1<<0)
-#define KF0_LSHIFT (1<<1)
-#define KF0_CTRLACTIVE (1<<2)
-#define KF0_ALTACTIVE (1<<3)
-#define KF0_SCROLLACTIVE (1<<4)
-#define KF0_NUMACTIVE (1<<5)
-#define KF0_CAPSACTIVE (1<<6)
-
-#define KF1_LCTRL (1<<0)
-#define KF1_LALT (1<<1)
-#define KF1_PAUSEACTIVE (1<<3)
-#define KF1_SCROLL (1<<4)
-#define KF1_NUM (1<<5)
-#define KF1_CAPS (1<<6)
-
-#define KF2_LAST_E1 (1<<0)
-#define KF2_LAST_E0 (1<<1)
-#define KF2_RCTRL (1<<2)
-#define KF2_RALT (1<<3)
-#define KF2_101KBD (1<<4)
-
-#define KF3_SCROLL_LED (1<<0)
-#define KF3_NUM_LED (1<<1)
-#define KF3_CAPS_LED (1<<2)
-#define KF3_CMD_PENDING (1<<6)
-
// Accessor functions
#define GET_BDA(var) \
GET_FARVAR(SEG_BDA, ((struct bios_data_area_s *)0)->var)
@@ -243,6 +216,7 @@ struct extended_bios_data_area_s {
u8 other2[0xC4];
// 0x121 - Begin custom storage.
+ u8 ps2ctr;
struct usbkeyinfo usbkey_last;
int RTCusers;