Re: values from pci_dev or read from config space - pci

2014-08-26 Thread Oscar Salvador
Thanks ;)! I didn't find it. Kind regards 2014-08-26 15:39 GMT+02:00 : > On Tue, 26 Aug 2014 08:33:18 +0200, Oscar Salvador said: > >> If I get the IRQ from the pci_dev, I get a X, but if I get the IRQ >> from the config space, I get another different number Y. >> >> Would be you so kind to expl

Re: values from pci_dev or read from config space - pci

2014-08-26 Thread Valdis . Kletnieks
On Tue, 26 Aug 2014 08:33:18 +0200, Oscar Salvador said: > If I get the IRQ from the pci_dev, I get a X, but if I get the IRQ > from the config space, I get another different number Y. > > Would be you so kind to explain: > > 1- Why it's better use the values stored in pci_dev structure instead >

values from pci_dev or read from config space - pci

2014-08-25 Thread Oscar Salvador
Hi everybody! I was thinking about post this question in the linux-pci list, but I'm not sure if this question is very basic for it, so maybe it's better aks here. If not, I'll ask there. My question is about that I'm writing a driver for a old realtek network card, only for learning purposes, an