⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c-hoststack.html

📁 linux2.4.20下的针对三星公司的s3c2410的usb模块驱动代码
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><title>       </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="Title.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-periph.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h1 class="H1Chapter" align="right"><i><a name="87179"></a>    1</i></h1><h1 align="right"><i>USB Host Stack</i></h1></font><br class="H2"><a name="87181"></a><br class="H2navbar"><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i>1.1  &nbsp;&nbsp;Introduction</i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85172"></a>The Universal Serial Bus (USB) provides hosts and devices with a versatile channel for communication at low to moderate speeds. The USB currently offers the following types of service at low (1.5&nbsp;Mbps) and medium (12&nbsp;Mbps) data transfer rates:</p></dl><dl class="margin"><dd><ul class="BulletSingle" type="disc"><li><a name="85173"></a>control transfers</li></ul><dd><ul class="BulletSingle" type="disc"><li><a name="85174"></a>bulk transfers</li></ul><dd><ul class="BulletSingle" type="disc"><li><a name="85175"></a>interrupt transfers</li></ul><dd><ul class="BulletSingle" type="disc"><li><a name="85176"></a>isochronous transfers</li></ul></dl><dl class="margin"><dd><p class="Body"><a name="85177"></a>The USB also incorporates provisions for power management and for the dynamic attachment and removal of devices.</p><dd><p class="Body"><a name="85178"></a>This flexibility allows the USB to be used--often concurrently--by a number of different kinds of devices, each requiring its own device driver support. It is desirable that these device drivers be written independent of each other and independent of the implementation of the host computer's underlying USB host controller interface. Wind River's USB host driver stack meets these requirements, providing a complete set of services to operate the USB and a number of pre-built USB class drivers that handle specific kinds of USB devices.</p><dd><p class="Body"><a name="85183"></a>The <i class="title">USB Developer's Kit</i>, also referred to as the <i class="term">USB Kit</i>, includes the following software and hardware items:</p></dl><dl class="margin"><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85184"></a>Source and object code for the USB host stack and drivers.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85185"></a>The <i class="title">USB Developer's Kit Programmer's Guide </i>(this document).</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85186"></a>The <i class="title">USB Developer's Kit Release Notes</i>.</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="85187"></a>The USB Kit shows you how to write your own USB host controller driver and USB device drivers. It is designed to allow the following:</p></dl><dl class="margin"><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85188"></a>Easy portability to RTOSs other than VxWorks.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85189"></a>Fast development of new host controller drivers.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85190"></a>Easy portability to many BSPs.</li></ul></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85191"></a>1.1.1  &nbsp;&nbsp;System Requirements</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85192"></a>Tornado 2.0 runs on PCs and Sun-4 workstations. Host systems must have the following resources:</p></dl><dl class="margin"><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85193"></a>64&nbsp;MB RAM.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85194"></a>15&nbsp;MB disk space for typical installation.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85195"></a>A CD-ROM drive for installation.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85196"></a>For Solaris, a SPARCstation 5 minimum; Ultra5 is recommended. For Windows, an Intel 80486 or better; Intel Pentium 90 or better is recommended.</li></ul></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="85197"></a>1.1.2  &nbsp;&nbsp;Documentation</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85198"></a>The <i class="title">USB Developer's Kit Programmer's Guide, 1.1.1</i> (this manual), describes the architecture and implementation of Wind River's USB host and peripheral stacks. The guide contains the following sections:</p></dl><dl class="margin"><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85202"></a><a href="c-hostStack.html#85283"><i class="title">1.2&nbsp;Architecture Overview</i></a>, provides a high-level look at USB organization and introduces the various modules.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85206"></a><a href="c-hostStack.html#85515"><i class="title">1.3&nbsp;The USB Host Driver (USBD)</i></a>, includes important information for writing host client class drivers and other applications.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85211"></a><a href="c-hostStack.html#85652"><i class="title">1.4&nbsp;The USB Host Controller Driver (HCD)</i></a>, provides information needed to port the USB host stack to run on different host controllers.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85223"></a><a href="c-hostStack.html#85966"><i class="title">1.5&nbsp;Keyboard Driver</i></a>, <a href="c-hostStack.html#86013"><i class="title">1.6&nbsp;Mouse Driver</i></a>, <a href="c-hostStack.html#86051"><i class="title">1.7&nbsp;Printer Driver</i></a>, <a href="c-hostStack.html#86083"><i class="title">1.8&nbsp;Speaker Driver</i></a>, <a href="c-hostStack.html#86136"><i class="title">1.9&nbsp;Mass Storage Class Driver</i></a>, <a href="c-hostStack.html#86300"><i class="title">1.10.1&nbsp;Ethernet Networking Control Model Driver</i></a>, and <a href="c-hostStack.html#86379"><i class="title">1.10.2&nbsp;Abstract Control Model Driver</i></a>, offer essential information if you are creating specific vertical applications using the USB stack.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85237"></a><a href="c-hostStack.html#86409"><i class="title">1.11&nbsp;Running the USB Kit</i></a>, describes how to use the USB Kit with VxWorks and the Tornado Integrated Development Environment (IDE).</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85241"></a><a href="c-hostStack.html#86465"><i class="title">1.12&nbsp;Initialization</i></a>, contains instructions for initializing the host stack, host controllers, external devices, and sample applications, and for USB-UGL configuration. This section also includes information on the <b class="file">usbTool</b> code exerciser.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85245"></a><a href="c-hostStack.html#86597"><i class="title">1.13&nbsp;Booting VxWorks Through a Communication Class Driver</i></a>, describes how to boot VxWorks through a Communication Class driver.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85249"></a><a href="c-hostStack.html#86642"><i class="title">1.14&nbsp;Benchmarking Information</i></a>, provides metrics from a sample system for comparing test results.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="85253"></a><a href="c-hostStack.html#86711"><i class="title">1.15&nbsp;BSP Porting Issues</i></a>, provides tips on porting the USB to other BSPs.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="87248"></a><a href="c-periph.html#87189"><i class="title">2.1&nbsp;Peripheral Stack Architecture</i></a>, provides a high-level look at USB peripheral stack organization and introduces the various associated modules.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="87252"></a><a href="c-periph.html#87343"><i class="title">2.2&nbsp;USB Target Driver (usbTargLib)</i></a>, provides information about the USB target driver, <b class="library">usbTargLib</b>.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="87256"></a><a href="c-periph.html#87544"><i class="title">2.3&nbsp;USB Target Controller Driver</i></a>, provides information essential to port the USB peripheral stack to run on different target controllers.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="87260"></a><a href="c-periph.html#87751"><i class="title">2.4&nbsp;Installing the USB Peripheral Stack</i></a>, describes the installation procedure and the locations of installed directories and files.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="87264"></a><a href="c-periph.html#87799"><i class="title">2.5&nbsp;Running the USB Peripheral Stack</i></a>, provides information for setting up your Tornado environment to use the peripheral stack.</li></ul></p></dl><dl class="margin"><dd><p class="Body"><a name="85254"></a>This manual assumes that you are already familiar with the USB specification and Wind River's Tornado IDE and VxWorks operating system. The Wind River USB driver stack has been developed in compliance with the <i class="title">Universal Serial Bus Specification</i>, Revision 1.1, generally referred to in this document as the "USB specification." Where possible, this manual uses terminology similar to that used in the USB specification so that the correspondence between USB concepts and actions is readily apparent in the software interfaces described.</p></dl></dl><dl class="margin"><dd><font face="Helvetica, sans-serif" size="-1" class="sans"><h5 class="HU"><i><a name="87276"></a>Additional Documentation</i></h5></font><dl class="margin"><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="87277"></a><i class="title">PDIUSBD12 Evaluation Board (PC Kit) User's Manual</i>, Rev. 2.1, which is included on the floppy disk distributed with the Philips evaluation kit.</li></ul></p><dd><p class="listspace"><ul class="Bullet" type="disc"><li><a name="87278"></a><i class="title">Firmware Programming Guide for PDIUSBD12</i>, Version 1.0, which is included on the floppy disk distributed with the Philips evaluation kit.</li></ul></p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H4"><i><a name="85255"></a>Reference Manual Entries</i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85256"></a>Reference pages for the USB Kit libraries and subroutines can be accessed online in HTML from the Tornado <font face="Helvetica, sans-serif" size="-1" class="sans">Help&gt;Manual Index</font> menu command. Search the display box for USB-related libraries in the <i class="title">VxWorks Reference Manual</i>, as in <a href="c-hostStack.html#85263">Figure&nbsp;1</a>. </dl></dl><p class="frame"><dl class="margin"><dd><p class="EntityTitle"><a name="85263"></a><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 1:&nbsp;&nbsp;<b>Tornado Online Manuals Tree</b></font></p></dl><dl class="margin">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -