Compartir a través de


Identificadores generados por USBSTOR.SYS

A partir de Windows 2000, el sistema operativo proporciona compatibilidad nativa con muchos dispositivos de almacenamiento masivo USB. The Usbstor.inf installation file contains device IDs for those devices that are explicitly supported. If the USB hub driver enumerates one of these devices, the operating system will automatically load the USB storage port driver, Usbstor.sys.

The device IDs for USB mass storage devices in Usbstor.inf take the usual form for USB device IDs composed by using information in the USB device's device descriptor:

USB\VID_v(4)&PID_d(4)&REV_r(4)

Where:

  • v(4) is the 4-digit vendor code that the USB committee assigns to the vendor.

  • d(4) is the 4-digit product code that the vendor assigns to the device.

  • r(4) is the revision code.

In addition to these device IDs, Usbstor.inf contains compatible IDs for class 8 ATAPI CD-ROM and removable media devices that support bulk-only transport:

USB\CLASS_08&SUBCLASS_02&PROT_50

USB\CLASS_08&SUBCLASS_05&PROT_50

USB\CLASS_08&SUBCLASS_06&PROT_50

Where:

  • clase 08h = dispositivos de almacenamiento masivo.

  • subclase 02h = SFF-8020i ATAPI CD-ROM dispositivos.

  • subclase 05h = medio extraíble ATAPI SFF-8070i.

  • subclase 06h = medios SCSI genéricos.

  • protocolo 50h = el protocolo de transporte de solo masa.

If the data retrieved from the device's device descriptor matches any of these compatible IDs, the operating system will load Usbstor.sys.

En cuanto se carga, el controlador de puerto de almacenamiento USB crea un nuevo PDO para cada una de las unidades lógicas del dispositivo. For more information, see the example device stack created by Usbstor.sys illustrated in Device Object Example for a USB Mass Storage Device.

Cuando el administrador de PnP consulta las cadenas de identificación del dispositivo de los PNP recién creados, el controlador de puerto de almacenamiento USB crea un nuevo conjunto de identificadores de dispositivo, hardware y compatibles derivados de los datos de consulta SCSI del dispositivo. El formato de identificador de dispositivo es el siguiente:

USBSTOR\v(8)p(16)r(4)

Where:

  • v(8) is an 8-character vendor identifier.

  • p(16) is a 16-character product identifier.

  • r(4) is a 4-character revision level value.

Un ejemplo de un identificador de dispositivo para una unidad de disco sería el siguiente:

USBSTOR\SEAGATE_ST39102LW_______0004

Los identificadores de hardware que genera el controlador de puerto de almacenamiento USB son los siguientes:

USBSTOR\t*v(8)p(16)r(4)

USBSTOR\t*v(8)p(16)

USBSTOR\t*v(8)

USBSTOR\v(8)p(16)r(1)

v(8)p(16)r(1)

USBSTOR\GenericTypeString

GenericTypeString

Where:

  • t* is a SCSI device type code of variable length.

  • v(8) is an 8-character vendor identifier.

  • p(16) is a 16-character product identifier.

  • r(4) is a 4-character revision level value. In these additional identifiers, r(1) represents just the first character of the revision identifier.

La tabla siguiente contiene los códigos de tipo de dispositivo SCSI utilizados por el controlador de puerto de almacenamiento USB para generar cadenas de identificador.

Código de tipo SCSI Device type Generic type

DIRECT_ACCESS_DEVICE (0)

Disco o SFloppy

GenDisk o GenSFloppy

SEQUENTIAL_ACCESS_DEVICE (1)

Sequential

GenSequential

WRITE_ONCE_READ_MULTIPLE_DEVICE (4)

Worm

GenWorm

READ_ONLY_DIRECT_ACCESS_DEVICE (5)

CdRom

GenCdRom

OPTICAL_DEVICE (7)

Optical

GenOptical

MEDIUM_CHANGER (8)

Changer

GenChanger

Tipo predeterminado (todos los valores no enumerados anteriormente)

Other

UsbstorOther

Estos ejemplos muestran los identificadores de hardware generados por el controlador de puerto de almacenamiento USB:

USBSTOR\DiskSEAGATE_ST39102LW_______0004

USBSTOR\DiskSEAGATE_ST39102LW_______

USBSTOR\DiskSEAGATE_

USBSTOR\SEAGATE_ST39102LW_______0

SEAGATE_ST39102LW_______0

USBSTOR\GenDisk

GenDisk

El controlador de puerto de almacenamiento USB genera dos identificadores compatibles.

USBSTOR\t*

USBSTOR\RAW

where t* is a SCSI device type code of variable length.

Los identificadores compatibles generados por el controlador de puerto de almacenamiento USB se muestran en los ejemplos siguientes:

USBSTOR\Disk

USBSTOR\RAW