kdb
[Top] [All Lists]

Re: [PATCH] Add support for USB Keyboard attached to UHCI

To: jidong.xiao@xxxxxxxxx (jidong xiao)
Subject: Re: [PATCH] Add support for USB Keyboard attached to UHCI
From: Aaron Young <ayoung@xxxxxxxxxxxx>
Date: Mon, 26 Nov 2007 13:50:41 -0800 (PST)
Cc: kbaidarov@xxxxxxxxxxxxx (Konstantin Baydarov), ayoung@xxxxxxxxxxxxxxxxxxxx (Aaron Young), jlan@xxxxxxx (Jay Lan), kdb@xxxxxxxxxxx
In-reply-to: <4104961b0711222223m71859f3cy18a877a0265a6e2a@mail.gmail.com> from "jidong xiao" at Nov 23, 2007 02:23:33 PM
Sender: kdb-bounce@xxxxxxxxxxx
> 
> It seems once get_usb_char() is called,the poll_func i.e.
> uhci_kdb_poll_char might be invoked, but I am wondering who calls
> get_usb_char()?I didn't find any place where get_usb_call() is
> invoked.
> 
> Regards
> Jason


 In the files

arch/ia64/kdb/kdba_io.c
arch/x86/kdb/kdba_io_32.c
arch/x86/kdb/kdba_io_64.c

 poll_funcs[] is set like so:

get_char_func poll_funcs[] = {
#if defined(CONFIG_VT_CONSOLE)
        get_kbd_char,
#endif
#if defined(CONFIG_SERIAL_CONSOLE) 
        get_serial_char,
#endif  
#ifdef  KDB_BLINK_LED
        blink_led,
#endif
#ifdef  CONFIG_KDB_USB
        get_usb_char,      <<<< here
#endif
        NULL
};


 kdb/kdb_io.c:kdb_read() uses poll_funcs[] to get chars...

 -Aaron
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>