a500kbd
diff src/ps2kbd.h @ 3:31a1f0b53d98
- scroll lock now acts as caps lock
- the scroll-lock light indicates drive activity
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 18 Oct 2017 08:20:58 +0300 |
parents | a4fd9c5a6655 |
children |
line diff
1.1 --- a/src/ps2kbd.h Tue Oct 17 15:25:33 2017 +0300 1.2 +++ b/src/ps2kbd.h Wed Oct 18 08:20:58 2017 +0300 1.3 @@ -1,8 +1,17 @@ 1.4 #ifndef PS2KBD_H_ 1.5 #define PS2KBD_H_ 1.6 1.7 -void ps2write(unsigned char c); 1.8 +enum { 1.9 + PS2LED_SCRLK = 1, 1.10 + PS2LED_NUMLK = 2, 1.11 + PS2LED_CAPSLK = 4 1.12 +}; 1.13 + 1.14 +int ps2write(unsigned char c); 1.15 unsigned char ps2read(void); 1.16 int ps2pending(void); 1.17 +int ps2wait(unsigned int timeout); 1.18 + 1.19 +int ps2setled(unsigned char state); 1.20 1.21 #endif /* PS2KBD_H_ */