Less debug output from keyboard.
This commit is contained in:
parent
21163c8da2
commit
ac7f7f3022
@ -711,8 +711,6 @@ PRIVATE void set_leds()
|
|||||||
int s;
|
int s;
|
||||||
if (! machine.pc_at) return; /* PC/XT doesn't have LEDs */
|
if (! machine.pc_at) return; /* PC/XT doesn't have LEDs */
|
||||||
|
|
||||||
printf("in set_leds\n");
|
|
||||||
|
|
||||||
kb_wait(); /* wait for buffer empty */
|
kb_wait(); /* wait for buffer empty */
|
||||||
if ((s=sys_outb(KEYBD, LED_CODE)) != OK)
|
if ((s=sys_outb(KEYBD, LED_CODE)) != OK)
|
||||||
printf("Warning, sys_outb couldn't prepare for LED values: %d\n", s);
|
printf("Warning, sys_outb couldn't prepare for LED values: %d\n", s);
|
||||||
@ -809,15 +807,15 @@ PRIVATE int kb_wait()
|
|||||||
int s, isaux;
|
int s, isaux;
|
||||||
unsigned char byte;
|
unsigned char byte;
|
||||||
|
|
||||||
printf("in kb_wait\n");
|
|
||||||
|
|
||||||
retries = MAX_KB_BUSY_RETRIES + 1; /* wait until not busy */
|
retries = MAX_KB_BUSY_RETRIES + 1; /* wait until not busy */
|
||||||
do {
|
do {
|
||||||
s = sys_inb(KB_STATUS, &status);
|
s = sys_inb(KB_STATUS, &status);
|
||||||
if (status & KB_OUT_FULL) {
|
if (status & KB_OUT_FULL) {
|
||||||
if (scan_keyboard(&byte, &isaux))
|
if (scan_keyboard(&byte, &isaux))
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
printf("ignoring %sbyte in kb_wait\n", isaux ? "AUX " : "");
|
printf("ignoring %sbyte in kb_wait\n", isaux ? "AUX " : "");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (! (status & (KB_IN_FULL|KB_OUT_FULL)) )
|
if (! (status & (KB_IN_FULL|KB_OUT_FULL)) )
|
||||||
@ -836,11 +834,9 @@ PRIVATE int kb_ack()
|
|||||||
int retries, s;
|
int retries, s;
|
||||||
unsigned long u8val;
|
unsigned long u8val;
|
||||||
|
|
||||||
printf("in kb_ack\n");
|
|
||||||
|
|
||||||
retries = MAX_KB_ACK_RETRIES + 1;
|
retries = MAX_KB_ACK_RETRIES + 1;
|
||||||
do {
|
do {
|
||||||
printf("ignoring byte in kb_ack\n");
|
|
||||||
s = sys_inb(KEYBD, &u8val);
|
s = sys_inb(KEYBD, &u8val);
|
||||||
if (u8val == KB_ACK)
|
if (u8val == KB_ACK)
|
||||||
break; /* wait for ack */
|
break; /* wait for ack */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user