* Re: [Pcihpd-discuss] Fwd: what is the pcie capability base for a configure process
@ 2006-05-29 4:20 Matthew Wilcox
2006-05-29 4:44 ` william wallace
2006-05-29 6:45 ` william wallace
0 siblings, 2 replies; 3+ messages in thread
From: Matthew Wilcox @ 2006-05-29 4:20 UTC (permalink / raw)
To: linux-hotplug
On Mon, May 29, 2006 at 11:30:07AM +0800, william wallace wrote:
> I am reading ur code for pcie configuration registers and
> configuration process for linux kenerl 2.6.9,really elegant,but
> stillsomething confuse me :
> 1 :why the starting location for pcie capability base is 0?
> what is the absolute offset for the capability register?
> --------------------------pcie_cap_base = 0; in pciehp_hpc.c
pcie_cap_base looks like a vestige of some earlier code and should
simply be removed, along with saved_cap_base.
> 2:what is the mechanism for read/write config space
> #define hp_register_read_word(pdev, reg , value) \
> pci_read_config_word(pdev, reg, &value)
> going down ,i get the pci_bus_read_config_word,so ,where is the real guts?
> thank u!
drivers/pci/access.c They're constructed, which is why you can't grep for
them. Of course, the low-level accessors are defined per-architecture,
sometimes in several different ways, depending on what bus is being
accessed.
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x107521&bid$8729&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Pcihpd-discuss] Fwd: what is the pcie capability base for a configure process
2006-05-29 4:20 [Pcihpd-discuss] Fwd: what is the pcie capability base for a configure process Matthew Wilcox
@ 2006-05-29 4:44 ` william wallace
2006-05-29 6:45 ` william wallace
1 sibling, 0 replies; 3+ messages in thread
From: william wallace @ 2006-05-29 4:44 UTC (permalink / raw)
To: linux-hotplug
thank u sir! u help my thought out :)
i have read lots of document ,but i just can not locate the absolute
REG address for the pci express capability reg?
i just want to port this to freebsd ,but found that freebsd donot go
out of the 256 configuration space :(
still some question:
On 5/29/06, Matthew Wilcox <matthew@wil.cx> wrote:
> On Mon, May 29, 2006 at 11:30:07AM +0800, william wallace wrote:
> > I am reading ur code for pcie configuration registers and
> > configuration process for linux kenerl 2.6.9,really elegant,but
> > stillsomething confuse me :
> > 1 :why the starting location for pcie capability base is 0?
> > what is the absolute offset for the capability register?
> > --------------------------pcie_cap_base = 0; in pciehp_hpc.c
>
> pcie_cap_base looks like a vestige of some earlier code and should
> simply be removed, along with saved_cap_base.
but ,still in linux kenerl 2.6.16 ,they r there
Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): int cap_base,
saved_cap_base;
Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): saved_cap_base pcie_cap_base;
Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): pcie_cap_base saved_cap_base;
Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug):static int
pcie_cap_base = 0; /* Base of the PCI Express capability item
structure */
Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): saved_cap_base pcie_cap_base;
Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): dbg("%s:
pcie_cap_base %x\n", __FUNCTION__, pcie_cap_base);
Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): pcie_cap_base saved_cap_base;
>
> > 2:what is the mechanism for read/write config space
> > #define hp_register_read_word(pdev, reg , value) \
> > pci_read_config_word(pdev, reg, &value)
> > going down ,i get the pci_bus_read_config_word,so ,where is the real guts?
> > thank u!
>
> drivers/pci/access.c They're constructed, which is why you can't grep for
> them. Of course, the low-level accessors are defined per-architecture,
> sometimes in several different ways, depending on what bus is being
> accessed.
>
--
we who r about to die,salute u!
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Pcihpd-discuss] Fwd: what is the pcie capability base for a configure process
2006-05-29 4:20 [Pcihpd-discuss] Fwd: what is the pcie capability base for a configure process Matthew Wilcox
2006-05-29 4:44 ` william wallace
@ 2006-05-29 6:45 ` william wallace
1 sibling, 0 replies; 3+ messages in thread
From: william wallace @ 2006-05-29 6:45 UTC (permalink / raw)
To: linux-hotplug
is that the capability base in pci_regs.h?
/* Capability lists */
#define PCI_CAP_ID_SHPC 0x0C /* PCI Standard Hot-Plug Controller */
#define PCI_CAP_ID_EXP 0x10 /* PCI Express */
On 5/29/06, william wallace <avalonwallace@gmail.com> wrote:
> thank u sir! u help my thought out :)
> i have read lots of document ,but i just can not locate the absolute
> REG address for the pci express capability reg?
> i just want to port this to freebsd ,but found that freebsd donot go
> out of the 256 configuration space :(
>
> still some question:
> On 5/29/06, Matthew Wilcox <matthew@wil.cx> wrote:
> > On Mon, May 29, 2006 at 11:30:07AM +0800, william wallace wrote:
> > > I am reading ur code for pcie configuration registers and
> > > configuration process for linux kenerl 2.6.9,really elegant,but
> > > stillsomething confuse me :
> > > 1 :why the starting location for pcie capability base is 0?
> > > what is the absolute offset for the capability register?
> > > --------------------------pcie_cap_base = 0; in pciehp_hpc.c
> >
> > pcie_cap_base looks like a vestige of some earlier code and should
> > simply be removed, along with saved_cap_base.
>
> but ,still in linux kenerl 2.6.16 ,they r there
> Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): int cap_base,
> saved_cap_base;
> Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): saved_cap_base > pcie_cap_base;
> Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): pcie_cap_base > saved_cap_base;
> Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug):static int
> pcie_cap_base = 0; /* Base of the PCI Express capability item
> structure */
> Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): saved_cap_base > pcie_cap_base;
> Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): dbg("%s:
> pcie_cap_base %x\n", __FUNCTION__, pcie_cap_base);
> Pciehp_hpc.c (linux-2.6.16.16\drivers\pci\hotplug): pcie_cap_base > saved_cap_base;
> >
> > > 2:what is the mechanism for read/write config space
> > > #define hp_register_read_word(pdev, reg , value) \
> > > pci_read_config_word(pdev, reg, &value)
> > > going down ,i get the pci_bus_read_config_word,so ,where is the real guts?
> > > thank u!
> >
> > drivers/pci/access.c They're constructed, which is why you can't grep for
> > them. Of course, the low-level accessors are defined per-architecture,
> > sometimes in several different ways, depending on what bus is being
> > accessed.
> >
>
>
> --
> we who r about to die,salute u!
>
--
we who r about to die,salute u!
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-29 6:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-29 4:20 [Pcihpd-discuss] Fwd: what is the pcie capability base for a configure process Matthew Wilcox
2006-05-29 4:44 ` william wallace
2006-05-29 6:45 ` william wallace
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.