Hi,
Anybody knows where the function "pci_read_config_byte(..)" is defined ?
Again, use 'grep' in '/usr/include/linux/*.h'.
I did that and found it in '/usr/include/linux/pci.h'.
Yes, pci_read_config_byte(..) is declared in include/linux/pci.h, but I
can't find
its C source anywhere. I do find it in System.map.
Thanks,
--
Zhaobin Zhu
zzhu@emc.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Mark A. Greer <hidden> Date: 2000-10-19 17:41:35
Zhaobin Zhu wrote:
"Tod E. Kurt" wrote:
quoted
Zhaobin Zhu wrote:
quoted
Hi,
Anybody knows where the function "pci_read_config_byte(..)" is defined ?
Again, use 'grep' in '/usr/include/linux/*.h'.
I did that and found it in '/usr/include/linux/pci.h'.
Yes, pci_read_config_byte(..) is declared in include/linux/pci.h, but I
can't find
its C source anywhere. I do find it in System.map.
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
At least this is true in 2.4.0-test2.
Mark
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Tod E. Kurt <hidden> Date: 2000-10-19 17:48:59
Zhaobin Zhu wrote:
"Tod E. Kurt" wrote:
quoted
Zhaobin Zhu wrote:
quoted
Hi,
Anybody knows where the function "pci_read_config_byte(..)" is defined ?
Again, use 'grep' in '/usr/include/linux/*.h'.
I did that and found it in '/usr/include/linux/pci.h'.
Yes, pci_read_config_byte(..) is declared in include/linux/pci.h, but I
can't find
its C source anywhere. I do find it in System.map.
As someone else mentioned, it (along with most all the other functions
declared in 'pci.h') is is '/usr/src/linux/drivers/pci/pci.c'. It wraps
'pcibios_read_config_byte', which is defined in
'/usr/src/linux/arch/i386/kernel/bios32.c' for PCs and in various files
(depending on specific arch) in '/usr/src/linux/arch/ppc/kernel'.
-=tod
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
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
--
Zhaobin Zhu
zzhu@emc.com
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Mark A. Greer <hidden> Date: 2000-10-19 19:55:14
Zhaobin Zhu wrote:
"Mark A. Greer" wrote:
quoted
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/