Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
USB System Architecture (USB 2.0).pdf
Скачиваний:
174
Добавлен:
03.05.2015
Размер:
7.03 Mб
Скачать

Chapter 18: Configuration Process

The Configuration Software Elements

Figure 18-1 illustrates the model that configuration is based upon and identifies the conceptual software elements involved.

Figure 18-1: The Software Elements Used During Configuration

 

 

 

 

'HYLFH

 

 

 

 

 

 

 

+XE

 

 

 

 

 

&ODVV

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

&OLHQW

 

 

 

 

 

&OLHQW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

+XEV

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'HYLFH &RQQHFW

 

3ROOHG

 

 

 

 

 

 

 

 

 

1RWLFH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

&RQILJXUDWLRQ

 

 

 

 

 

,QWHUUXSW

 

 

 

6RIZDUH

 

 

 

 

&RPPXQLFDWLRQV

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3LSH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'HVFULS

 

 

 

 

 

 

 

 

9HULI\

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3RZHU %XV

 

 

5HDG

 

 

 

 

 

 

 

 

 

 

 

%DQGZLGWK

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'HIDXOW

 

 

5HVRXUFH

 

 

 

 

 

&RQWURO

 

 

 

0JPW

 

 

 

 

 

3LSH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

86% +RVW &RQWUROOHU 'ULYHU

341

USB System Architecture

USB Host Controller Driver

This software is typically the first USB-specific software to execute. The host controller must be initialized by this driver before USB becomes active. During configuration this driver also performs accesses to root hub status and control registers under the direction of the hub client.

Configuration Software

The hub client must notify configuration software that a new device has been attached. In response, configuration software must identify the newly attached device by reading its standard descriptors, using the default control pipe. Information read from the descriptors specifies the USB resources that are required by the device (e.g., bus bandwidth and power requirements). These descriptors must be interpreted by configuration software.

A device can support more than one configuration, requiring software to select the configuration of choice. Each configuration provides alternatives for configuring the device. For example, a device may support both high-power and lowpower configurations. That is, if the hub port cannot support a high-power function, then configuration software could select the low-power configuration. Note that the client driver may also be involved in selecting the configuration.

Configuration software assigns a unique device address to the device and completes its hardware configuration by assigning a configuration to the device. When the configuration is assigned, the device is enabled and ready for operation.

The configuration software then finds the client driver software for this device based on its class or vendor-specific information that was previously read from the standard descriptors.

Default Control Pipe

The default control pipe accesses endpoint zero within each device. The hub client, configuration software, and device client software all share access to this communications pipe. The host system software is the default owner of the pipe; thus, hub clients and other device client drivers must request its use.

342

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]