Host (pci/usb) port. Over view. Host Port Selection. Configuration Spaces. PCI Configuration Space, страница 31

4.  The user driver downloads USB configuration for Interface 2, which is the FAX modem. Configuration specifies which Endpoints are used and their definitions. A typical configuration for FAX would be:

Table 8-41. Typical Configuration (FAX)

Endpoint

Type

Maximum

Packet Size

Comment

2

BULK OUT

64

DSP CODE

7

BULK IN

64

FAX RCV

8

BULK OUT

64

FAX XMT

9

INT IN

16

STATUS

5.  The user driver now writes the USB Config Register, causing the device to disconnect and reconnect. The system enumerates all interfaces and loads the appropriate drivers.

6.  The modem driver downloads code to DSP for service. The DSP also initializes the DSP Memory Buffer Base Addr Register, and DSP Memory Buffer Size Register, DSP Memory Buffer RD Pointer Offset, DSP Memory Buffer WR Pointer Offset registers for each Endpoint. Endpoints can be used only when the above registers have been written. Modem service is now available.

7.  The FAX driver downloads code to DSP for FAX service. The DSP also initializes the DSP Memory Buffer Base Addr Register, DSP Memory Buffer Size Register, DSP Memory Buffer RD Pointer

Offset, DSP Memory Buffer WR Pointer Offset registers for each Endpoint. Endpoints can be used only when the above registers have been written. FAX service is now available.

Figure 8-26. ADSP-2192 USB Enumeration C onfig De vic e De finition

Fixed Endpoints

CONTROL Endpoint 0

Type:

Control

Dir:

Bidirectional

Maxpacketsize:

8

Mod e m De vic e De finition

Fixed Endpoints   

CONTROL Endpoint 0

Type:

Control

Dir:

Bidirectional

Maxpacketsize:

8

BULK OUT Endpoint 1, 2, 3 = Used for code download to DSP

Type:

Bulk

Dir:

OUT

Maxpacketsize:

64

Programmable Endpoints

Generic Endpoints 4, 5, 6, 7, 8, 9, 10, 11

Programmable by:

Type:

via USB Endpoint Description Register

Direction:

via USB Endpoint Description Register

Maxpacket size:

via USB Endpoint Description Register

Memory Allocation:

via DSP Memory Buffer Base Addr, DSP Memory Buffer Size,

DSP Memory Buffer RD Pointer Offset,

DSP Memory Buffer Write Pointer Offset Registers

! The generic Endpoints are shared between all interfaces.

Se ria l EEPRO M Inte rfa c e

The Serial EEPROM for the ADSP-2192 can overwrite the information listed below, which is returned during the USB GET DEVICE DESCRIPTOR command. The DSP is responsible during the Serial

EEPROM initialization procedure for writing the USB Descriptor Vendor ID, USB Descriptor Product ID, USB Descriptor Release Number, and USB Descriptor Device Attributes registers to change the default settings.

Se ria l EEPRO M C ha ng e a b le Fie ld s for USB De sc rip tors

Vendor ID (0x0456 ADI)

Product ID (0x2192)

Device Release Number (0x0100)

Device Attributes (0xFA80)

SP              1 = self-powered, 0 = bus-powered (default = 0)

RW             1 = have remote wake-up capability, 0 = no remote wake-up capability (default = 0)

C[7:0]         Power consumption from bus expressed in 2mA units (default = 0xFA 500mA)

The string descriptors supported in the CONFIG DEVICE are the following and cannot be overwritten by the Serial EEPROM.

Manufacturer        ADI

Product                USB DEVICE