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

Chapter 2: The Big Picture

The Host Controller Driver and Transactions

The host controller driver receives the packet requests from the USB driver and schedules them to be performed during a series of frames. The scheduling order is based on an algorithm defined by the host controller driver. The algorithm is based on USB transfer capabilities and limitations (to be discussed in subsequent chapters).

Scheduling is performed by building a series of data structures (called transfer descriptors) that define each sequential transaction to be performed over the USB. The host controller reads and interprets these transfer descriptors and executes the USB transaction described.

Figure 2-23: Relationship Between IRPs, Transfers, Frames, and Packets

 

 

USB

 

 

 

 

 

USB

 

 

 

 

Client

 

 

 

 

 

Client

 

 

 

 

Driver

 

 

 

 

 

Driver

 

 

 

I/O Request Packet 1

 

I/O Request Packet 2

 

USB

Transaction

Transaction

Transaction

Trans.

Trans.

Trans.

Trans.

Trans.

Driver

1-0

1-1

 

1-2

2-0

 

2-1

2-2

2-3

2-4

Host

Frame 1

 

Frame 2

 

 

Frame 3

 

 

Transaction

Trans.

Trans.

Transaction

Trans.

Transaction

 

 

Controller

 

 

1-0

2-0

2-1

1-1

2-2

 

 

1-2

 

 

Driver

 

 

 

 

 

 

 

 

 

 

 

 

 

 

USB Host

Token

Data Packet

Handshake

Token

Data Packet Handshake

 

Controller

Packet

 

 

Packet

Packet

 

 

Packet

 

 

 

 

 

 

 

 

 

 

 

59

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