Re: how to define id table

2010-11-03 Thread Rajat Sharma
> also this type of definition of a structure where {},{} is > used I am not clear with this approach. actually its not very complex thing, just that the macro has hidden the complete declaration its like: static struct pci_device_id rtl8139_pci_tbl[] So, its actually array of structures, where

Re: how to define id table

2010-11-03 Thread Rajat Sharma
Please refer to the Linux Device Drivers book, chapter 12: PCI Driver, section: Configuration Registers and Initialization Rajat On Tue, Nov 2, 2010 at 1:23 PM, Bond wrote: > Hi, > can any one tell me how is following type of structure defined? > > static DEFINE_PCI_DEVICE_TABLE(rtl8139_pci_tbl

Re: how to define id table

2010-11-02 Thread John Mahoney
On Tue, Nov 2, 2010 at 3:53 AM, Bond wrote: > > Hi, > can any one tell me how is following type of structure defined? > > static DEFINE_PCI_DEVICE_TABLE(rtl8139_pci_tbl) = { >        {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, >        {0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, R

Re: how to define id table

2010-11-02 Thread Daniel Baluta
On Tue, Nov 2, 2010 at 9:53 AM, Bond wrote: > Hi, > can any one tell me how is following type of structure defined? > > static DEFINE_PCI_DEVICE_TABLE(rtl8139_pci_tbl) = { >        {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, >        {0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL

how to define id table

2010-11-02 Thread Bond
Hi, can any one tell me how is following type of structure defined? static DEFINE_PCI_DEVICE_TABLE(rtl8139_pci_tbl) = { {0x10ec, 0x8139, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, {0x10ec, 0x8138, PCI_ANY_ID, PCI_ANY_ID, 0, 0, RTL8139 }, {0x1113, 0x1211, PCI_ANY_ID, PCI_ANY_I