请求支援,ubuntu源码usb目录下几个文件看晕了

内核编译和嵌入式产品的设计与开发
回复
chengshuyi
帖子: 20
注册时间: 2018-10-18 10:18
系统: ubuntu16

请求支援,ubuntu源码usb目录下几个文件看晕了

#1

帖子 chengshuyi » 2018-12-10 9:14

下面是ubuntu源码目录的readme文件,这里有三个关键词:USB host controller drivers、 USB peripheral controller drivers和USB device drivers。

其中USB host controller drivers和USB peripheral controller drivers我大概知道什么意思,但是USB device drivers我不知道什么意思,在它的目录下面有一个/misc/usb/usb251xb.c文件,这个我知道是usb251xb芯片的驱动,那应该属于USB host controller drivers,所以这里把它分为USB device drivers意义何在?难道usb251xb芯片,不应该使用host/目录下的驱动吗?


代码: 全选

core/		- This is for the core USB host code, including the
		  usbfs files and the hub class driver ("hub_wq").

host/		- This is for USB host controller drivers.  This
		  includes UHCI, OHCI, EHCI, and others that might
		  be used with more specialized "embedded" systems.

gadget/		- This is for USB peripheral controller drivers and
		  the various gadget drivers which talk to them.


Individual USB driver directories.  A new driver should be added to the
first subdirectory in the list below that it fits into.

image/		- This is for still image drivers, like scanners or
		  digital cameras.
../input/	- This is for any driver that uses the input subsystem,
		  like keyboard, mice, touchscreens, tablets, etc.
../media/	- This is for multimedia drivers, like video cameras,
		  radios, and any other drivers that talk to the v4l
		  subsystem.
../net/		- This is for network drivers.
serial/		- This is for USB to serial drivers.
storage/	- This is for USB mass-storage drivers.
class/		- This is for all USB device drivers that do not fit
		  into any of the above categories, and work for a range
		  of USB Class specified devices. 
misc/		- This is for all USB device drivers that do not fit
		  into any of the above categories.
头像
astolia
论坛版主
帖子: 6436
注册时间: 2008-09-18 13:11

Re: 请求支援,ubuntu源码usb目录下几个文件看晕了

#2

帖子 astolia » 2018-12-10 18:08

不懂就去查一下,别来什么大概知道 https://en.wikipedia.org/wiki/Host_cont ... _Firewire)
host/ - This is for USB host controller drivers. This
includes UHCI, OHCI, EHCI, and others that might
be used with more specialized "embedded" systems.
下面都列出来了uhci, ohci, ehci这些东西了,这些你也觉得是芯片型号吗?
回复