From: James S. <jsi...@us...> - 2002-02-20 17:49:37
|
Update of /cvsroot/linuxconsole/ruby/linux/include/linux In directory usw-pr-cvs1:/tmp/cvs-serv20643/include/linux Modified Files: kbd_kern.h Log Message: Cleanup of keyboard key macros. Index: kbd_kern.h =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/include/linux/kbd_kern.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- kbd_kern.h 15 Feb 2002 23:20:49 -0000 1.12 +++ kbd_kern.h 20 Feb 2002 17:49:34 -0000 1.13 @@ -78,52 +78,52 @@ tasklet_schedule(&keyboard_tasklet); } -static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) +static inline int get_kbd_mode(struct kbd_struct *kbd, int flag) { return ((kbd->modeflags >> flag) & 1); } -static inline int vc_kbd_led(struct kbd_struct * kbd, int flag) +static inline int get_kbd_led(struct kbd_struct *kbd, int flag) { return ((kbd->ledflagstate >> flag) & 1); } -static inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) +static inline void set_kbd_mode(struct kbd_struct *kbd, int flag) { kbd->modeflags |= 1 << flag; } -static inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) +static inline void set_kbd_led(struct kbd_struct *kbd, int flag) { kbd->ledflagstate |= 1 << flag; } -static inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) +static inline void clr_kbd_mode(struct kbd_struct *kbd, int flag) { kbd->modeflags &= ~(1 << flag); } -static inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag) +static inline void clr_kbd_led(struct kbd_struct *kbd, int flag) { kbd->ledflagstate &= ~(1 << flag); } -static inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag) +static inline void chg_kbd_lock(struct kbd_struct *kbd, int flag) { kbd->lockstate ^= 1 << flag; } -static inline void chg_vc_kbd_slock(struct kbd_struct * kbd, int flag) +static inline void chg_kbd_slock(struct kbd_struct *kbd, int flag) { kbd->slockstate ^= 1 << flag; } -static inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag) +static inline void chg_kbd_mode(struct kbd_struct *kbd, int flag) { kbd->modeflags ^= 1 << flag; } -static inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag) +static inline void chg_kbd_led(struct kbd_struct *kbd, int flag) { kbd->ledflagstate ^= 1 << flag; } |