From: Ryan Nielsen <ran@krazynet.com>
To: "Albrecht Dreß" <ad@MPIfR-Bonn.MPG.de>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Help: Porting PCI driver from Linux/Intel -> PPC
Date: Thu, 24 Jun 1999 12:41:38 -0700 [thread overview]
Message-ID: <19990624124138.A1051@gondolin.asf> (raw)
In-Reply-To: <3771D987.C59A9374@mpifr-bonn.mpg.de>; from Albrecht Dreß on Thu, Jun 24, 1999 at 09:08:55AM +0200
Albrecht Dreß wrote:
> Now I try to insmod my driver, which reads the configuration space (using calls
> to pci_read_config_dword) and dumps it, reads irq and board revision, reads the
> base adresses of the five io regions, and reads one io address via inl(). The
> last operation leads to a panic:
you might need to enable memory with somthing like:
u16 cmd;
/* on OpenFirmware machines (PowerMac at least), PCI memory cycle */
/* response on cards with no firmware is not enabled by OF */
pci_read_config_word(dev, PCI_COMMAND, &cmd);
cmd |= PCI_COMMAND_MEMORY;
pci_write_config_word(dev, PCI_COMMAND, cmd);
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
next prev parent reply other threads:[~1999-06-24 19:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-24 7:08 Help: Porting PCI driver from Linux/Intel -> PPC Albrecht Dreß
1999-06-24 19:41 ` Ryan Nielsen [this message]
1999-06-25 2:03 ` Daniel Jacobowitz
1999-06-25 16:36 ` David A. Gatwood
1999-06-25 2:11 ` Paul Mackerras
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=19990624124138.A1051@gondolin.asf \
--to=ran@krazynet.com \
--cc=ad@MPIfR-Bonn.MPG.de \
--cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).