[U-Boot-Users] pci_hose_read_config_byte() definition puzzles

Hi all,
I met a PCI init problem and happened to find several PCI functions like pci_hose_read_config_byte() defined and used but no function prototype. It made me really surprised. I hope I was in an unclear mind to report it:-)
Attached is the grep result of u-boot-1.1.3 included in ELDK3.1.1. Any thoughts?
Thanks in advance!
Sam
_________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://cn.rd.yahoo.com/mail_cn/tag/yisou/music/*http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://cn.rd.yahoo.com/mail_cn/tag/yisou/image/*http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1...
[root@sam u-boot-1.1.3]# grep -r pci_hose_read_config_byte ./ ./board/MAI/AmigaOneG3SE/articiaS_pci.c: pci_hose_read_config_byte(hose, dev, PCI_HEADER_TYPE, &header_type); ./board/MAI/AmigaOneG3SE/articiaS_pci.c: pci_hose_read_config_byte(hose, dev, 0x0B, &c1); ./board/MAI/AmigaOneG3SE/articiaS_pci.c: pci_hose_read_config_byte(hose, dev, 0x0A, &c2); ./board/MAI/AmigaOneG3SE/articiaS_pci.c: pci_hose_read_config_byte(hose, dev, PCI_HEADER_TYPE, &header_type); ./board/MAI/AmigaOneG3SE/articiaS_pci.c: pci_hose_read_config_byte(hose, dev, PCI_SECONDARY_BUS, &secondary_bus); ./board/MAI/AmigaOneG3SE/articiaS_pci.c: pci_hose_read_config_byte(&articiaS_hose, bridge, 0x3E, &agp_control_0); ./board/Marvell/db64360/pci.c: pci_hose_read_config_byte_via_dword, ./board/Marvell/db64360/pci.c: pci_hose_read_config_byte_via_dword, ./board/Marvell/db64460/pci.c: pci_hose_read_config_byte_via_dword, ./board/Marvell/db64460/pci.c: pci_hose_read_config_byte_via_dword, ./board/dave/common/pci.c: pci_hose_read_config_byte_via_dword, ./board/esd/common/pci.c: pci_hose_read_config_byte_via_dword, ./board/esd/cpci750/pci.c: pci_hose_read_config_byte_via_dword, ./board/esd/cpci750/pci.c: pci_hose_read_config_byte_via_dword, ./board/evb64260/pci.c: pci_hose_read_config_byte_via_dword, ./board/evb64260/pci.c: pci_hose_read_config_byte_via_dword, ./board/mpl/common/pci.c: pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_PIN, &pin); ./board/mvblue/mvblue.c: pci_hose_read_config_byte (hose, bridge, PCI_SECONDARY_BUS, &bus); ./board/sc520_cdp/sc520_cdp.c: pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_PIN, &tmp_pin); ./board/sc520_spunk/sc520_spunk.c: pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_PIN, &tmp_pin); ./cpu/mpc5xxx/pci_mpc5200.c: pci_hose_read_config_byte_via_dword, ./cpu/mpc85xx/pci.c: pci_hose_read_config_byte(hose, ./drivers/pci.c: pci_hose_read_config_byte (hose, dev, PCI_INTERRUPT_PIN, &pin); ./drivers/pci.c: pci_hose_read_config_byte(hose, dev, PCI_HEADER_TYPE, &header_type); ./drivers/pci.c: pci_hose_read_config_byte(hose, dev, PCI_INTERRUPT_LINE, ./drivers/pci_auto.c: pci_hose_read_config_byte(hose, dev, PCI_CLASS_PROG, &prg_iface); ./include/pci.h:extern int pci_hose_read_config_byte(struct pci_controller *hose, ./include/pci.h:extern int pci_hose_read_config_byte_via_dword(struct pci_controller *hose, [root@sam u-boot-1.1.3]#

In message 20050601070802.49747.qmail@web15902.mail.cnb.yahoo.com you wrote:
I met a PCI init problem and happened to find several PCI functions like pci_hose_read_config_byte() defined and used but no function prototype. It made
...
Attached is the grep result of u-boot-1.1.3 included in ELDK3.1.1. Any thoughts?
...
./include/pci.h:extern int pci_hose_read_config_byte(struct pci_controller *hose,
This looks very much like a prototype definition to me.
Best regards,
Wolfgang Denk
participants (2)
-
Sam Song
-
Wolfgang Denk