All of lore.kernel.org
 help / color / mirror / Atom feed
* where the hell is pci_read_config_xyz defined
@ 2001-11-29 16:12 Daniel Stodden
  2001-11-29 16:24 ` Grant Erickson
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Stodden @ 2001-11-29 16:12 UTC (permalink / raw)
  To: Linux Kernel


hi all.

i hope this question is not too stupid,
but i think i've grepped all through it now.

i see the prototype in linux/pci.h
i looked at i386/kernel/pci-pc.c.
i see the bios/direct access diversion. i don't see (*pci_config_read)()
referenced elsewhere except within the acpi stuff.
i looked at drivers/pci/*
i even consulted lxr. nyet. nada.

giving up now. any hint would be greatly appreciated. am i blind?

thanx,
dns


-- 
__________________________________________________________________
mailto: stodden@in.tum.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: where the hell is pci_read_config_xyz defined
       [not found] <fa.eqan66v.1hs2ql@ifi.uio.no>
@ 2001-11-29 16:22 ` Jonathan Kamens
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Kamens @ 2001-11-29 16:22 UTC (permalink / raw)
  To: Daniel Stodden; +Cc: linux-kernel

I encountered exactly this problem recently.  I finally figured out
that the trick is that the pci_read_config_* and pci_write_config_*
functions are defined by a macro in drivers/pci/pci.c.  Search for
"PCI_OP" in that file and you'll see what I mean.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: where the hell is pci_read_config_xyz defined
@ 2001-11-29 16:24 Grant Erickson
  0 siblings, 0 replies; 4+ messages in thread
From: Grant Erickson @ 2001-11-29 16:24 UTC (permalink / raw)
  To: Daniel Stodden; +Cc: Linux Kernel

On 29 Nov 2001, Daniel Stodden wrote:
> i hope this question is not too stupid, but i think i've grepped all
> through it now.
> 
> i see the prototype in linux/pci.h
> i looked at i386/kernel/pci-pc.c. 
> i see the bios/direct access diversion. i don't see (*pci_config_read)()
> referenced elsewhere except within the acpi stuff.
> i looked at drivers/pci/*
> i even consulted lxr. nyet. nada.
> 
> giving up now. any hint would be greatly appreciated. am i blind?

This is a common question I think. Try looking for the following in
drivers/pci/pci.c:

#define PCI_OP(rw,size,type) \
int pci_##rw##_config_##size (struct pci_dev *dev, int pos, type value) \
{                                                                       \
	[ ... ]
}

PCI_OP(read, byte, u8 *)
PCI_OP(read, word, u16 *)
PCI_OP(read, dword, u32 *)
PCI_OP(write, byte, u8)
PCI_OP(write, word, u16)
PCI_OP(write, dword, u32)


Regards,

Grant Erickson


-- 
 Grant Erickson                       University of Minnesota Alumni
  o mail:erick205@umn.edu                                 1996 BSEE
  o http://www.umn.edu/~erick205                          1998 MSEE


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: where the hell is pci_read_config_xyz defined
  2001-11-29 16:12 where the hell is pci_read_config_xyz defined Daniel Stodden
@ 2001-11-29 16:24 ` Grant Erickson
  0 siblings, 0 replies; 4+ messages in thread
From: Grant Erickson @ 2001-11-29 16:24 UTC (permalink / raw)
  To: Daniel Stodden; +Cc: Linux Kernel

On 29 Nov 2001, Daniel Stodden wrote:
> i hope this question is not too stupid, but i think i've grepped all
> through it now.
>
> i see the prototype in linux/pci.h
> i looked at i386/kernel/pci-pc.c.
> i see the bios/direct access diversion. i don't see (*pci_config_read)()
> referenced elsewhere except within the acpi stuff.
> i looked at drivers/pci/*
> i even consulted lxr. nyet. nada.
>
> giving up now. any hint would be greatly appreciated. am i blind?




>
> thanx,
> dns
>
>
>

-- 
Grant Erickson                            Phone:  (408) 487-8087
Brocade Communications Systems, Inc.      Fax:    (408) 392-1702
1745 Technology Drive
San Jose, CA 95110                        E-mail: gerickson@brocade.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-29 16:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-29 16:12 where the hell is pci_read_config_xyz defined Daniel Stodden
2001-11-29 16:24 ` Grant Erickson
     [not found] <fa.eqan66v.1hs2ql@ifi.uio.no>
2001-11-29 16:22 ` Jonathan Kamens
  -- strict thread matches above, loose matches on Subject: below --
2001-11-29 16:24 Grant Erickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.