7.2.1 HcHCCA Register
The HcHCCA register contains the physical address of the Host Controller Communication Area. The Host Controller Driver determines the alignment restrictions by writing all 1s to HcHCCA and reading the content of HcHCCA. The alignment is evaluated by examining the number of zeroes in the lower order bits. The minimum alignment is 256 bytes; therefore, bits 0 through 7 must always return ‘0’ when read. Detailed description can be found in Chapter 4. This area is used to hold the control structures and the Interrupt table that are accessed by both the Host Controller and the Host Controller Driver.
上文:
HcHCCA寄存器包含主机控制器通信区(Host Controller Communication Area)的物理地址。主机控制器驱动程序(HCD)通过向HcHCCA写入全1并读取其内容来确定对齐限制。对齐要求可通过检查低位零的数量来评估。最小对齐要求为256字节;因此,读取时位0至位7必须始终返回’0’。详细说明请参阅第4章。该区域用于存储主机控制器和主机控制器驱动程序共同访问的控制结构和中断表。
HcHCCA寄存器
寄存器位布局
| 位31 … 位8 | 位7 … 位0 |
|---|---|
| HCCA (24位) | 0 (8位) |
寄存器字段说明
| 字段名 | 复位值 | 读写属性 | 描述 |
|---|---|---|---|
| HCCA | 0h | HCD: R/W HC: R |
主机控制器通信区(Host Controller Communication Area)的基地址 |
关键说明:
字段分布:
- 位31-8:HCCA地址字段(24位)
- 位7-0:固定为0(8位对齐)
访问特性:
- 主机控制器驱动程序(HCD)可读写
- 主机控制器(HC)只读
对齐要求:
- 最低256字节对齐(位7-0强制为0)
主机控制器通信区(HCCA)格式 详见: https://www.softool.cn/read/ohci10a/2512120001.html
