让硬件正常工作(一)
2009-05-13 08:41:04来源:未知 阅读 ()
问题的描述:
先说明一下“系统”,并不是单纯的指内核,也包括一些与硬件有关的用户程序特性。
- I plug in my new digital camera.
- If the camera's interface type (e.g. USB) supports it, the presence of a new device is noticed without user intervention.
- For devices that can't be detected on plugin, there's some GUI application allowing me to explicitly probe or specify the device information.
- The system gets whatever information is available from the device about the hardware model. Vendor, ProdID, whatever it can get.
- The system consults a mapping from hardware model information to driver information. This mapping is created by merging three sources of information: user-provided information, OEM-provided information, and operating-system-vendor-provided information.
- If no driver is found, the system delivers a notification to the desktop environment, and the desktop environment informs the user that the device is not supported. Alternatively, the desktop environment asks the user which driver to try and passes the answer back to the system; the system a) tries that driver and b) saves the driver information in the above-mentioned mapping so it won't have to ask in the future.
- The system loads a driver once one has been found in the mapping, or added to the mapping.
- One or more kernel devices are created by the driver (implying major/minor pair, and /dev file if required).
- A notification is sent out from the system to all interested listeners that a new kernel device has been created.
- The user's desktop environment asks the system what sort of device is represented by the new kernel device: camera, scanner, printer, etc.
- If the system does not know, it says "device type is unknown."
- If the device type is unknown, the desktop environment asks the user to provide it. "What did you just plug in?"
- After the user provides this information, the desktop environment passes it back to the system. The system records a mapping from the hardware model identifying information to the device type. Next time a kernel device is created for a physical device with the same model information, the system will report its type accordingly.
- The desktop environment allows the user to interact with the device in device-appropriate ways. For example, view images from a camera, monitor errors from a printer, or whatever.
整理如下:
1、把自己的相机插入到电脑的usb口上。
2、如果相机的界面类型,比如usb,系统能够提供支持,那不需要用户的干涉,系统会出现一个“新的设备通知”。
3、对于不能被侦测到的设备(比如我的相机插入后系统没有任何反应),有一些图形界面的应用程序会允许我扫描设备并且指定相关的信息。
4、系统可以从相机上获得诸如hardware model. Vendor, ProdID这样的信息,这些都是很有用的。
5、系统参照从硬件型号到设备驱动的映射信息。这个映射信息由用户输入的信息,产品提供的信息以及系统提供的信息组合而成。
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- [FreeBSD] 因缺少/etc/termcap而导致的系统故障 2009-05-13
- 分析工作迁移到 NetBSD 5.0 2009-05-13
- DHT 已经可以工作了。 不过还需要集成进来。 2009-05-13
- 还有个小问题? 2009-05-13
- 第一阶段计划完成 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash