LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: vivek <vivek_av@yahoo.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: PLX9030 port
Date: Sat, 7 Aug 2010 09:06:34 -0700 (PDT)	[thread overview]
Message-ID: <307394.74573.qm@web55505.mail.re4.yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]

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 function returns NULL
pci_get_device(0x10b5, 0x9030, NULL)

vendor ID given for PLX is 0x10b5
device ID is 0x9030

These values worked  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 values to pci_get_device()  in hex format ?
 
I am using linux 2.6.24 kernel and 
while 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, which then printk 's the message when pci_get_device() returns NULL

can anyone help?
thnaks --vivek



      

[-- Attachment #2: Type: text/html, Size: 1486 bytes --]

                 reply	other threads:[~2010-08-07 16:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=307394.74573.qm@web55505.mail.re4.yahoo.com \
    --to=vivek_av@yahoo.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox