pci_read_config_byte in Hardhat CDK1.2 for powerpc

Mark A. Greer mgreer at mvista.com
Fri Oct 20 06:55:14 EST 2000


Zhaobin Zhu wrote:

> "Mark A. Greer" wrote:
>
> > The definitions of pci_xxx_config_yyy and pcibios_xxx_config_yyy are hard to
> > find.
> >
> > pci_xxx_config_yyy are defined by the PCI_OP() macro in drivers/pci/pci.c
> > pcibios_xxx_config_yyy are defined by the PCI_OP() macro in
> > drivers/pci/compat.c
> >
>
> Thanks, Mark.
>
> Here is what I found:
>
> pci_read_config_byte =  generic_pcibios_read_byte =
> ppc_md.pcibios_read_config_byte = indirect_pcibios_read_config_byte
> in arch/ppc/kernel/indirect_pci.c

Yes, that is true because of the "set_config_access_method(indirect)" call in the
*_setup.c or *_pci.c routine for your platform (if you're looking at the
sandpoint, its in sandpoint_setup.c).  Other access methods are supported too.

Mark

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list