From: Marcel Holtmann <marcel@holtmann.org>
To: Li Yu <raise.sail@gmail.com>
Cc: linux-usb-devel <linux-usb-devel@lists.sourceforge.net>,
??? <hongzhiyi@ccoss.com.cn>, Jiri Kosina <jkosina@suse.cz>,
LKML <linux-kernel@vger.kernel.org>, ?? <yanghong@ccoss.com.cn>
Subject: Re: [linux-usb-devel] [RFC] HID bus design overview.
Date: Mon, 26 Mar 2007 10:27:56 +0200 [thread overview]
Message-ID: <1174897676.5815.6.camel@violet> (raw)
In-Reply-To: <45FE6971.6090503@gmail.com>
Hi Li,
> --------------------------------------
> HID bus design overview.
> --------------------------------------
>
> A. Terms.
>
> The device of an driver: this mean the device that this driver matched.
>
> B. Design.
>
> As we discussed before, The entire HID subsystem is divided into
> three layers:
>
> 1. HID Driver Layer (HIDDL).
>
> This layer is composite of all HID drivers, however, these
> drivers are not equal each other, there are divided into three kinds:
>
> 1.1 Fundamental driver.
>
> This is the most natural driver for us, they control hardware or
> other something that can effect hardware directly. In most cases, each
> of this kind driver is one standard and extendible implementation of HID
> specification for specific HID transport layer. For example, usbhid.ko
> for HID/USB or hidp.ko for Bluetooth/HID. This should alway input-able
> driver, i.e, it is able to allow HIDAL register input device for its device.
>
> 1.2 Shadow driver.
>
> These driver is created for those buggy/strange/extended HID
> device which fundamental driver can't handle rightly/completely. this
> driver does not share HID information with related fundamental driver,
> but the HID information of their devices is derived from other device of
> fundamental driver. These may not be input-able driver. The shadow
> driver does not share the input device with the related fundamental
> driver, even shadow driver is input-able, it have new input device in
> such case.
>
> 1.3 HIDDEV drvier.
>
> In fact, This isn't one public kind of driver. it just is one
> optionally flag parameter while register driver (also include shadow
> driver). When turn on this feature, the HIDAL will create one hiddev for
> each device of driver, so the every such device also have one hiddev buddy.
>
> 2. HID Abstract Layer (HIDAL).
>
> This layer maintain HID bus, HID driver, HID device, HID hiddev
> such logical feature, and interact with input subsystem.
>
> 3. HID Transport Layer (HIDTL).
>
> This layer may be rather thin. Up to now, we should have two
> implementation of transport layer, one for USB, one for Bluetooth.
>
> C. Progress.
>
> Status: USB Fundamental driver works for new HID API now.
> Working: Shadow driver support.
> TODO:
> 1. Shadow driver support.
> 2. Port some drivers to new HID API, includes:
> 1) All HID ff drivers.
> 2) iBook/PowerBook special keys driver.
> 3. Bluetooth fundamental driver.
> 4. Bluetooth transport layer.
> 5. Port Other drivers.
> 6. HIDDEV/USB driver support.
> 7. HIDDEV/Bluetooth driver support.
>
> I think that post this text earlier is better decision, well, I guess
> the new controversy about HID may begin ...
please don't take the transport layers into account when designing the
HID bus. They have nothing to do with the upper layer. Especially the
upper layer shouldn't care at all if the actual HID reports are sent
over USB or Bluetooth.
The transport drivers (usbhid and hidp) will only communicate with the
HID core and for the bus it makes no difference. The current abstraction
for HID transports works pretty fine and there is no need to change
this.
I think that a HID bus driver should be able register to a specific HID
report for a specific device. This would allow to have a generic driver
that can handle all common keyboard and mouse functionality and then in
addition a specific driver that handles vendor specific reports. It
might also make sense to let the driver match on specific HUT codes.
Regards
Marcel
next prev parent reply other threads:[~2007-03-26 8:28 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-05 7:32 [DOC] The documentation for HID Simple Driver Interface 0.5.0 Li Yu
2007-03-05 20:44 ` Marcel Holtmann
2007-03-05 20:11 ` Dmitry Torokhov
2007-03-05 22:40 ` Marcel Holtmann
2007-03-06 13:25 ` Dmitry Torokhov
2007-03-06 13:47 ` Jiri Kosina
2007-03-06 18:57 ` Marcel Holtmann
2007-03-05 21:47 ` Jiri Kosina
2007-03-05 22:12 ` [linux-usb-devel] " Jiri Kosina
2007-03-05 22:27 ` Dmitry Torokhov
2007-03-06 1:37 ` Liyu
[not found] ` <45ECC5A4.20203@ccoss.com.cn>
2007-03-06 9:40 ` Jiri Kosina
2007-03-06 11:52 ` Harold Sargeant
2007-03-06 7:01 ` Robert Marquardt
2007-03-06 7:37 ` Jiri Kosina
2007-03-19 10:44 ` [RFC] HID bus design overview Li Yu
2007-03-26 8:27 ` Marcel Holtmann [this message]
2007-03-28 1:58 ` [linux-usb-devel] " Li Yu
[not found] ` <4609CAF2.3040303@ccoss.com.cn>
2007-03-28 7:51 ` Jiri Kosina
2007-03-28 19:00 ` Dmitry Torokhov
2007-03-28 19:13 ` Jiri Kosina
2007-03-30 3:06 ` Li Yu
2007-03-30 4:33 ` Dmitry Torokhov
2007-03-30 5:37 ` Li Yu
2007-03-30 16:13 ` Dmitry Torokhov
2007-03-31 22:49 ` Jiri Kosina
2007-04-02 1:47 ` Li Yu
2007-04-02 4:15 ` Dmitry Torokhov
2007-04-02 7:07 ` Li Yu
2007-04-02 7:42 ` Greg KH
2007-04-02 9:34 ` Jiri Kosina
2007-04-02 12:40 ` Dmitry Torokhov
2007-04-02 4:09 ` Dmitry Torokhov
2007-04-02 9:37 ` Jiri Kosina
2007-04-02 10:14 ` Robert Marquardt
2007-04-02 12:21 ` Marcel Holtmann
2007-04-02 12:33 ` Jiri Kosina
2007-04-02 16:47 ` Marcel Holtmann
2007-04-03 1:15 ` Li Yu
2007-04-03 3:42 ` Dmitry Torokhov
2007-04-03 8:57 ` Jiri Kosina
2007-04-04 0:55 ` Li Yu
2007-04-04 14:54 ` Marcel Holtmann
2007-04-04 23:01 ` Adam Kropelin
2007-04-04 23:12 ` Jiri Kosina
2007-04-04 23:34 ` Adam Kropelin
2007-04-05 8:36 ` Jiri Kosina
2007-04-05 14:08 ` Adam Kropelin
[not found] ` <46189FE3.6050206@gmail.com>
2007-04-09 1:54 ` [linux-usb-devel] HID bus prototype - 20070408 Li Yu
2007-04-10 9:40 ` Jiri Kosina
2007-04-10 11:00 ` [linux-usb-devel] " Li Yu
2007-04-05 1:25 ` [linux-usb-devel] [RFC] HID bus design overview Li Yu
2007-04-05 3:09 ` Dmitry Torokhov
2007-04-05 5:28 ` Li Yu
2007-04-05 6:47 ` Li Yu
2007-04-06 0:58 ` Li Yu
2007-03-29 5:37 ` Li Yu
2007-03-29 9:24 ` Jiri Kosina
2007-04-02 12:19 ` Marcel Holtmann
-- strict thread matches above, loose matches on Subject: below --
2007-04-02 11:57 Nicolas Mailhot
2007-04-03 1:40 ` Li Yu
2007-04-03 3:41 ` Dmitry Torokhov
2007-04-03 9:00 ` Jiri Kosina
2007-04-05 18:10 ` Paul Walmsley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1174897676.5815.6.camel@violet \
--to=marcel@holtmann.org \
--cc=hongzhiyi@ccoss.com.cn \
--cc=jkosina@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=raise.sail@gmail.com \
--cc=yanghong@ccoss.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox