From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web55505.mail.re4.yahoo.com (web55505.mail.re4.yahoo.com [206.190.58.214]) by ozlabs.org (Postfix) with SMTP id CD7D6B6EF3 for ; Sun, 8 Aug 2010 02:06:36 +1000 (EST) Message-ID: <307394.74573.qm@web55505.mail.re4.yahoo.com> Date: Sat, 7 Aug 2010 09:06:34 -0700 (PDT) From: vivek Subject: PLX9030 port To: linuxppc-dev@lists.ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-687035471-1281197194=:74573" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-687035471-1281197194=:74573 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello all I am new to the mail list I am trying to port the driver for PLX9030 PCI host chip based add-on card = from=A0 x86=A0 to PPC7410 arch the following function function returns NULL pci_get_device(0x10b5, 0x9030, NULL) vendor ID given for PLX is 0x10b5 device ID is 0x9030 These values worked=A0 and the module found the device in x86 platform, But the same code is complied and inserted on PPC7410 platform, the modules= failed to detect the device Is there any Endianness conversion to be performed before passing the value= s to pci_get_device()=A0 in hex format ? =A0 I am using linux 2.6.24 kernel and=20 while make-ing=A0 the module ,ko file for PPC7410 using cross_complier gcc_= 74xx- there was a WARNING message "struct_module undefined " But it is possible to insert the module in the=A0 kernel running on PPC7410= , which then printk 's the message when pci_get_device() returns NULL can anyone help? thnaks --vivek =0A=0A=0A --0-687035471-1281197194=:74573 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hello all
I am new to the mail list
I am trying to port the driver for PLX9030 PCI host chip based add-on card= from  x86  to PPC7410 arch

the following function functio= n returns NULL
pci_get_device(0x10b5, 0x9030, NULL)

vendor ID given for PLX is 0x10b= 5
device ID is 0x9030

These values worked  and the module fo= und the device in x86 platform,

But the same code is complied and in= serted on PPC7410 platform, the modules failed to detect the device

= Is there any Endianness conversion to be performed before passing the values to pci_get_device()&n= bsp; in hex format ?
 
I am using linux 2.6.24 kernel and
wh= ile make-ing  the module ,ko file for PPC7410 using cross_complier gcc= _74xx-
there was a WARNING message "struct_module undefined "
But it = is possible to insert the module in the  kernel running on PPC7410, wh= ich then printk 's the message when pci_get_device() returns NULL

ca= n anyone help?
thnaks --vivek

=0A=0A --0-687035471-1281197194=:74573--