pci_hose_read_config_byte() definition puzzles
Quoted 3 lines
Quoted 2 lines · --- Wolfgang Denk
Sometimes even "grep" cannot save you from
actually RTFS ;-)
Ummm, pls check the following two functions related PCI. I rechecked the source this time.
extern void pci_cfgfunc_nothing(struct
pci_controller* hose, pci_dev_t dev,
struct pci_config_table *);
extern pci_dev_t pci_find_class(int wanted_class, int wanted_sub_code, int wanted_prog_if, int index);
If still some tricks in it, don't reply. Let me
RTFS:-)
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_1g/
Quoted 7 lines · In message <[email protected]> you wrote:
Ummm, pls check the following two functions related PCI. I rechecked the source this time.
extern void pci_cfgfunc_nothing(struct
pci_controller* hose,pci_dev_tdev,
structpci_config_table*);
A dummy prototype referenced nowhere in the source code?
Quoted 2 lines
extern
pci_dev_tpci_find_class(int wanted_class, int wanted_sub_code, int wanted_prog_if, int index);
A dummy prototype referenced nowhere in the active source code?
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I don't want to be young again, I just don't want to get any older.
Quoted 6 lines · --- Wolfgang Denk
Quoted 3 lines
extern void pci_cfgfunc_nothing(struct
pci_controller* hose,pci_dev_tdev,
structpci_config_table*);A dummy prototype referenced nowhere in the source code?
Yea. I guess there is a mistake. pci_cfgfunc_nothing() should be pci_cfgfunc_do_nothing() which is defined in drivers/pci.c. But pci_cfgfunc_do_nothing() is a dummy one which isn't used at all. Should we remove them or just fix it?
Quoted 6 lines
Quoted 2 lines
extern
pci_dev_tpci_find_class(intwanted_class,
intwanted_sub_code, intwanted_prog_if, intindex);
A dummy prototype referenced nowhere in the active source code?
Not quite sure this one:-). grep told me it was used but where was it's body?!!
[root at sam u-boot-1.1.3]# grep -r pci_find_class ././drivers/sk98lin/skge.c: while((pdev =pci_find_class(PCI_CLASS_NETWORK_ETHERNET << 8,pdev)))
./include/pci.h:extern pci_dev_t pci_find_class(int wanted_class, int wanted_sub_code,
./lib_i386/video_bios.c: if ((devbusfn =
pci_find_class(PCI_CLASS_VIDEO,
[root@sam u-boot-1.1.3]#
Best regards,
Sam
___________________________________________________________
????G??????????????????
http://cn.mail.yahoo.com/?id=77072
Quoted 9 lines · In message <[email protected]> you wrote:
Quoted 3 lines
A dummy prototype referenced nowhere in the source code?
Yea. I guess there is a mistake.
pci_cfgfunc_nothing()should bepci_cfgfunc_do_nothing()which is defined indrivers/pci.c. Butpci_cfgfunc_do_nothing()is a dummy one which isn't used at all. Should we remove them or just fix it?
Fix it (having a look at the corresponding Linux code might help).
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
extern
pci_dev_tpci_find_class(intwanted_class,
intwanted_sub_code, intwanted_prog_if, intindex);
A dummy prototype referenced nowhere in the active source code?
Not quite sure this one:-). grep told me it was used but where was it's body?!!
It seems it gets used only in code which is deactivated by a "#if 0" or not compiled in any used configuration.
Again, just grepping for somthing is not enough. You have to read the code.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The world is no nursery. - Sigmund Freud