1

Currently i am study uboot pci init process

There has a function call pci_hose_read_config_word() in pci bus scan.

Here is Source Code

But i search all sourcecode in uboot, why i can not find the function implement?

Thanks

melpomene
  • 84,125
  • 8
  • 85
  • 148
JasonChiuCC
  • 111
  • 1
  • 6

1 Answers1

2

The function definition is in pci_compat.c, line 26:

PCI_HOSE_OP(read, word, 16, u16 *)

You didn't find it because it's hidden behind a macro (PCI_HOSE_OP) that assembles the function name from parts and also supplies the body.

melpomene
  • 84,125
  • 8
  • 85
  • 148