just for fun
全部博文(229)
发布时间:2020-09-04 01:35:38
系统内核:linux 4.10<drivers/usb/host/isp116x-hcd.c>//见<arch/arm/mach-pxa/viper.c>static struct platform_device isp116x_devicestatic const char hcd_name[] = "isp116x-hcd";module_platform_driver(isp116x_driver);/* work with hotplug and coldplug */MODULE_ALIAS("platform:isp116x-hcd");static .........【阅读全文】
发布时间:2020-09-04 01:32:46
官方网站的驱动可能会更好http://www.wch.cn/download/CH341SER_LINUX_ZIP.htmlch340芯片兼容这个驱动。<drivers/usb/serial/ch341.c> module_usb_serial_driver(serial_drivers, id_table);///////////////////////////////////<include/linux/usb/serial.h>/* * module_usb_serial_driver() - Helper macr.........【阅读全文】
发布时间:2020-09-04 01:28:53
1. loop设备介绍 在类 UNIX 系统里,loop 设备是一种伪设备(pseudo-device),或者也可以说是仿真设备。它能使我们像块设备一样访问一个文件。在使用之前,一个 loop 设备必须要和一个文件进行连接。这种结合方式给用户提供了一个替代块特殊文件的接口。因此,如果这个文件包含有一个完整的文件系统,.........【阅读全文】
发布时间:2020-09-04 00:44:13
//// /* USB High Spped 2.0 Device (Gadget) */#ifdef CONFIG_PLAT_S3C24XXstatic struct resource s3c_hsudc_resource[] = { [0] = DEFINE_RES_MEM(S3C2416_PA_HSUDC, S3C2416_SZ_HSUDC), [1] = DEFINE_RES_IRQ(IRQ_USBD),};struct platform.........【阅读全文】
发布时间:2020-09-04 00:39:43
drivers/usb/core/usb.c//这个是USB子系统初始化subsys_initcall(usb_init);static int __init usb_init(void){ int retval; retval = usb_debugfs_init(); retval = bus_register(&usb_bus_type); retval = bus_register_notifier(&usb.........【阅读全文】