<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello all<br>I am new to the mail list<br><br>I am trying to port the driver for PLX9030 PCI host chip based add-on card from x86 to PPC7410 arch<br><br>the following function function returns NULL<br><a href="http://tomoyo.sourceforge.jp/cgi-bin/lxr/ident?a=ppc;i=pci_get_device">pci_get_device</a>(<span style="text-decoration: underline;">0x10b5</span><a href="http://tomoyo.sourceforge.jp/cgi-bin/lxr/ident?a=ppc;i=vendor"></a>, <span style="text-decoration: underline;">0x9030</span><a href="http://tomoyo.sourceforge.jp/cgi-bin/lxr/ident?a=ppc;i=device"></a>, NULL)<br><br>vendor ID given for PLX is 0x10b5<br>device ID is 0x9030<br><br>These values worked and the module found the device in x86 platform,<br><br>But the same code is complied and inserted on PPC7410 platform, the modules failed to detect the device<br><br>Is there any Endianness
conversion to be performed before passing the values to pci_get_device() in hex format ?<br> <br>I am using linux 2.6.24 kernel and <br>while make-ing the module ,ko file for PPC7410 using cross_complier gcc_74xx-<br>there was a WARNING message "struct_module undefined "<br>But it is possible to insert the module in the kernel running on PPC7410, which then printk 's the message when pci_get_device() returns NULL<br><br>can anyone help?<br>thnaks --vivek<br></td></tr></table><br>