安全数字(SD)设备的标识符

当 SD 总线驱动程序在主机控制器套接字中检测到 SD 设备时,它会检查卡的设备配置,以便为设备及其功能构造设备和硬件 ID。 对于 SD 组合卡和多功能 SDIO 设备,总线驱动程序会为每个各自的功能创建 PDO 和硬件 ID。

由于 SD 内存设备的内部配置与 SDIO 设备的内部配置明显不同,因此 SD 总线驱动程序使用两种不同的硬件 ID 格式,一种用于 SD 内存设备,另一种用于 SDIO 设备。

SD 设备 ID

SD 内存设备的设备 ID 使用以下格式:

SD\VID_v(2)&OID_o(4)&PID_p(0-5)&REV_n(1).m(1)

Where:

  • v(2) is a two-digit hexadecimal ID assigned by the SD Card Association (SDA) that identifies the card's manufacturer.

  • o(4) is a four-digit hexadecimal ID, also assigned by the SDA, that identifies the card's original equipment manufacturer (OEM) and/or the card contents.

  • p(0-5) is a vendor-supplied ASCII string, of 0 to 5 five characters, that indicates the product name, and n(1).m(1) is a two digit, vendor-supplied, revision number, with a decimal between the two digits (for example, 6.2).

SDIO 设备的设备 ID 使用以下格式:

SD\VID_v(4)&PID_p(4)

Where:

  • v(4) is a four-digit hexadecimal vendor code assigned by PCMCIA and JEIDA.

  • p(4) is the four-digit hexadecimal product and/or revision number that the vendor assigns to the device.

SD 总线驱动程序从设备的卡片信息结构(CIS)区域中的CISTPL_MANFID元组中提取供应商和错误代码。

SD 硬件 ID

对于 SD 内存设备,总线驱动程序提供两个硬件 ID:一个与设备 ID 相同,另一个与设备 ID 相同,但没有修订信息。 带有修订信息的 ID 使用以下格式:

SD\VID_v(2)&OID_o(4)&PID_p(0-5)

其中,与设备 ID 一样:

  • v(2) is a two-digit hexadecimal ID assigned by the SD Card Association (SDA) that identifies the card's manufacturer.

  • o(4) is a four-digit hexadecimal ID, also assigned by the SDA, that identifies the card's original equipment manufacturer (OEM) and/or the card contents.

  • p(0-5) is a vendor-supplied ASCII string, of 0 to 5 five characters, that indicates the product name.

对于 SDIO 设备,SD 总线驱动程序提供与设备 ID 相同的单个硬件 ID。

与 SD 兼容的 ID

除了设备和硬件 ID,SD 总线驱动程序在某些情况下还会生成兼容的 ID。

对于 SD 内存设备,总线驱动程序始终生成以下兼容 ID:

SD\CLASS_STORAGE

对于 SDIO 设备,SD 总线驱动程序会生成以下兼容 ID,前提是函数基本寄存器(FBR)中的值不为零:

SD\CLASS_c(2)

where c(2) is the two-digit hexadecimal device interface code.