xhci控制器初始化(还存在bug,无法reset端口)

This commit is contained in:
fslongjin
2022-07-21 20:43:49 +08:00
parent c9c8147cdf
commit fa1c2bd461
5 changed files with 202 additions and 31 deletions

View File

@ -36,7 +36,7 @@ static void pci_checkBus(uint8_t bus);
* @brief 生成架构相关的message data
*
*/
#define pci_get_arch_msi_message_data(vector, processor, edge_trigger, assert) ((uint32_t)((vector & 0xff) | (edge_trigger == 1 ? 0 : (1 << 15)) | (assert == 0 ? 0 : (1 << 14))))
#define pci_get_arch_msi_message_data(vector, processor, edge_trigger, assert) ((uint32_t)((vector & 0xff) | (edge_trigger == 1 ? 0 : (1 << 15)) | ((assert == 0) ? 0 : (1 << 14))))
/**
* @brief 从pci配置空间读取信息