From: Marco Stornelli <marco.stornelli@coritel.it>
To: Abg Abg <abg.mur22@yahoo.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Network driver on ppc 405EX
Date: Fri, 19 Sep 2008 09:05:33 +0200 [thread overview]
Message-ID: <48D34F3D.6000302@coritel.it> (raw)
In-Reply-To: <371343.22518.qm@web59716.mail.ac4.yahoo.com>
Have you already enabled the device? You can enable it with
pci_enable_device. Then you can call the pci_request_region and then the
ioremap. In addition, you can check the pci configuration with the
command lspci. You can found an example on Linux Device Drivers.
Regards.
Abg Abg ha scritto:
> Hi,
> Hope this is the correct list for driver related queries for ppc boards
>
> I was porting a network driver for a ppc 405EX based embedded system (kilauea config).
> The module builds fine and loads and I see the probe routine get called correctly.
> However when I try remapping the BAR0 address from the PCI config space, the ioremap fails.
> A little debugging showed that the address passed to ioremap was zero.
> I pass the address to the ioremap via pci_resource_start(pdev, 0) where pdev is a type struct pci_dev *.
>
> I dumped the contents of the pdev and saw that the vendor-id, device id etc were correct, however the BAR0 address seemed to be all zeroes.
>
> The question that I had was
> 1. Is there any kernel config that needs to be done for PCI devices to be able to remap the BAR0 addresses.
> 2. Any other kernel parameter that needs to be tweaked?
>
> Thanks,
> Abg
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
--
Marco Stornelli
Embedded Software Engineer
CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni
http://www.coritel.it
marco.stornelli@coritel.it
+39 06 72582838
next prev parent reply other threads:[~2008-09-19 7:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 22:08 Network driver on ppc 405EX Abg Abg
2008-09-19 7:05 ` Marco Stornelli [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-09-19 16:43 Abg Abg
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=48D34F3D.6000302@coritel.it \
--to=marco.stornelli@coritel.it \
--cc=abg.mur22@yahoo.com \
--cc=linuxppc-embedded@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.