X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fkeyb.h;h=d031aee93eeb0886c7957864bd7d7281fe40c55d;hp=bfa58e859e9c6934cd2cf8dfa3d0f7c3bc9ce294;hb=81c11bdd80190ec319a82b0402173cfb65fcbf72;hpb=97356e29f73e12f0856fde92a48e86c73bef387c diff --git a/src/keyb.h b/src/keyb.h index bfa58e8..d031aee 100644 --- a/src/keyb.h +++ b/src/keyb.h @@ -43,6 +43,15 @@ enum { void kb_init(void); +void kb_intr_enable(void); +void kb_intr_disable(void); + +int kb_setmode(int mode); +int kb_getmode(void); + +void kb_set_translate(int xlat); +int kb_get_translate(void); + /* Boolean predicate for testing the current state of a particular key. * You may also pass KB_ANY to test if any key is held down. */ @@ -56,4 +65,14 @@ int kb_getkey(void); void kb_putback(int key); +/* returns 1 if the keyboard controller is ready to read/write + * returns 0 if the wait times out + */ +int kb_wait_write(void); +int kb_wait_read(void); + +void kb_send_cmd(unsigned char cmd); +void kb_send_data(unsigned char data); +unsigned char kb_read_data(void); + #endif /* KEYB_H_ */