Lines 907-912
empty_aux_buffer(KBDC p, int wait)
Link Here
|
907 |
int t; |
907 |
int t; |
908 |
int b; |
908 |
int b; |
909 |
int f; |
909 |
int f; |
|
|
910 |
int waited = 0; |
910 |
#if KBDIO_DEBUG >= 2 |
911 |
#if KBDIO_DEBUG >= 2 |
911 |
int c1 = 0; |
912 |
int c1 = 0; |
912 |
int c2 = 0; |
913 |
int c2 = 0; |
Lines 929-934
empty_aux_buffer(KBDC p, int wait)
Link Here
|
929 |
} else { |
930 |
} else { |
930 |
t -= delta; |
931 |
t -= delta; |
931 |
} |
932 |
} |
|
|
933 |
|
934 |
/* |
935 |
* Some systems (Intel/IBM blades) do not have keyboard devices and |
936 |
* will thus hang in this procedure. Time out after delta seconds to |
937 |
* avoid this hang -- the keyboard attach will fail later on. |
938 |
*/ |
939 |
waited += (delta * 1000); |
940 |
if (waited == (delta * 1000000)) |
941 |
return; |
942 |
|
932 |
DELAY(delta*1000); |
943 |
DELAY(delta*1000); |
933 |
} |
944 |
} |
934 |
#if KBDIO_DEBUG >= 2 |
945 |
#if KBDIO_DEBUG >= 2 |
935 |
- |
|
|