Lines 1071-1076
test_kbd_port(KBDC p)
Link Here
|
1071 |
int again = KBD_MAXWAIT; |
1071 |
int again = KBD_MAXWAIT; |
1072 |
int c = -1; |
1072 |
int c = -1; |
1073 |
|
1073 |
|
|
|
1074 |
emptyq(&kbdcp(p)->kbd); |
1075 |
return TRUE; |
1074 |
while (retry-- > 0) { |
1076 |
while (retry-- > 0) { |
1075 |
empty_both_buffers(p, 10); |
1077 |
empty_both_buffers(p, 10); |
1076 |
if (write_controller_command(p, KBDC_TEST_KBD_PORT)) |
1078 |
if (write_controller_command(p, KBDC_TEST_KBD_PORT)) |
Lines 1097-1102
test_aux_port(KBDC p)
Link Here
|
1097 |
int again = KBD_MAXWAIT; |
1099 |
int again = KBD_MAXWAIT; |
1098 |
int c = -1; |
1100 |
int c = -1; |
1099 |
|
1101 |
|
|
|
1102 |
emptyq(&kbdcp(p)->kbd); |
1103 |
return TRUE; |
1100 |
while (retry-- > 0) { |
1104 |
while (retry-- > 0) { |
1101 |
empty_both_buffers(p, 10); |
1105 |
empty_both_buffers(p, 10); |
1102 |
if (write_controller_command(p, KBDC_TEST_AUX_PORT)) |
1106 |
if (write_controller_command(p, KBDC_TEST_AUX_PORT)) |