Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我正在研究 uboot pci init 进程
pci总线扫描中有一个函数调用pci_hose_read_config_word()。
pci_hose_read_config_word()
这是源代码
但是我在uboot中搜索了所有源代码,为什么我找不到功能实现?
谢谢
函数定义在pci_compat.c第 26 行:
pci_compat.c
PCI_HOSE_OP(read, word, 16, u16 *)
您没有找到它,因为它隐藏在一个宏 ( PCI_HOSE_OP) 后面,该宏 ( ) 从部件中组装函数名称并提供主体。
PCI_HOSE_OP