haiku/headers
Michael Lotz 6eba063647 * Added simplified possibility to schedule UHCI transfers from within KDL.
* Added debugger commands to resolve usb_ids to pipes.
* Adjusted the physical memory allocator to be usable in a slimmed down mode
  when running inside the kernel debugger.
* Implemented USB keyboard support for KDL through a kernel debugger add-on.
* Added kgetc() and made use of it where previously individual methods were used
  to ensure that reading characters always goes through the kernel debugger
  add-ons and the other methods.

This has some preconditions to meet though:
1) The keyboard must be in the boot protocol (currently the case but needs to
   be revisited once we have a full usb_hid).
2) The keyboard must be attached to a UHCI root port (i.e. not use EHCI or OHCI,
   also not through hubs unless those are USB 1.1).
3) the usb_hid driver has to be opened for this to work. This means that for the
   time between initializing USB and when usb_hid is opened by the input_server
   there is no keyboard support.

Also note that this has no way of detecting hot-plug, meaning that you can't
re-attach your USB keyboard from the hub to the root port once in KDL.

On the bright side of things, since this is a non-destructive mechanism it is
possible to enter and leave KDL without loosing the USB state.

Tested OK in QEMU, not tested on real hardware yet, will see in a few minutes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 20:46:27 +00:00
..
build add spinlock initializer constant for BeOS 2009-02-09 19:06:44 +00:00
compatibility/bsd Don't define "protected" macro in C++ mode. 2008-10-29 00:48:57 +00:00
cpp Preparations for removing __BEOS__ from the compiler defines. 2008-10-23 21:46:26 +00:00
glibc Prevent redefinition of _IO_MTSAFE_IO. It is defined when building the 2008-03-22 15:26:55 +00:00
gnu
legacy/network setsockopt and getsockopt use int as others functions 2006-06-23 14:19:11 +00:00
libs As Marcus pointed out, the imul instruction clobbers the conditional code 2009-01-19 00:48:59 +00:00
os Add prototypes to keep/use global Inquiry time 2009-02-20 18:25:41 +00:00
posix Fixed value of _POSIX_VDISABLE. cc_t is unsigned in Haiku. ATM we don't 2009-02-06 12:35:01 +00:00
private * Added simplified possibility to schedule UHCI transfers from within KDL. 2009-02-22 20:46:27 +00:00
tools Preparations for removing __BEOS__ from the compiler defines. 2008-10-23 21:46:26 +00:00