mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 21:34:25 +08:00
Modify FREEBSD USB keyboard drivers for use in RTEMS
This commit is contained in:

committed by
Sebastian Huber

parent
a7415b7f2f
commit
b51279b544
@@ -1994,8 +1994,10 @@ ukbd_ioctl(keyboard_t *kbd, u_long cmd, caddr_t arg)
|
|||||||
/*
|
/*
|
||||||
* XXX Check if someone is calling us from a critical section:
|
* XXX Check if someone is calling us from a critical section:
|
||||||
*/
|
*/
|
||||||
|
#ifndef __rtems__
|
||||||
if (curthread->td_critnest != 0)
|
if (curthread->td_critnest != 0)
|
||||||
return (EDEADLK);
|
return (EDEADLK);
|
||||||
|
#endif /* __rtems__ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XXX KDGKBSTATE, KDSKBSTATE and KDSETLED can be called from any
|
* XXX KDGKBSTATE, KDSKBSTATE and KDSETLED can be called from any
|
||||||
|
1
rtemsbsd/include/rtems/bsd/local/opt_kbd.h
Normal file
1
rtemsbsd/include/rtems/bsd/local/opt_kbd.h
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#define KBD_INSTALL_CDEV 1
|
1
rtemsbsd/include/rtems/bsd/local/opt_ukbd.h
Normal file
1
rtemsbsd/include/rtems/bsd/local/opt_ukbd.h
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/* EMPTY */
|
Reference in New Issue
Block a user