All of lore.kernel.org
 help / color / mirror / Atom feed
From: ashish anand <ashisha@india.infogain.com>
To: Amelia De Vivo <amelia.devivo@roma.quadrics.com>,
	linuxppc-dev@lists.linuxppc.org
Subject: Re: Addressing PCI memory
Date: Wed, 16 May 2001 22:10:17 +0530	[thread overview]
Message-ID: <3B02AD71.804119E3@india.infogain.com> (raw)
In-Reply-To: 002f01c0dd5c$f64942e0$7a00000a@roma.quadrics.com


Amelia De Vivo wrote:
>
> Hi all, I'm trying to write a driver for a 64 bit PCI device. Something like
> this works well under i386 Linux, but it doesn't work at all for Linux
> 2.2.15 by Yellow Dog:
>
>     struct pci_dev *dev = NULL;
>     dev = pci_find_device(vendor, device, dev);
>     pci_read_config_dword(dev, PCI_BASE_ADDRESS_0, &cards[0].addr0);
>     cards[0].vaddr = (void *) ioremap((cards[0].addr0 &
> PCI_BASE_ADDRESS_MEM_MASK), cards[0].size);
>     writeb('A',(cards[0].vaddr)+0x1000);

 READ PCI STATUS REGISTER TO CHECK FOR ANY MASTER/TARGET ABORT.
  LASTLY WHAT IS THE VALUE OF cards[0].size ?

> I have a kernel panic on writeb. Has someone some suggestion?

LET ME KNOW THE PANIC MESSAGE....

> Thanks in advance
>
> Amelia
>

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

      parent reply	other threads:[~2001-05-16 16:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-15 16:34 Addressing PCI memory Amelia De Vivo
2001-05-15 16:58 ` Takashi Oe
2001-05-15 17:02 ` Gabriel Paubert
2001-05-15 18:16   ` Jeff Garzik
2001-05-16 16:40 ` ashish anand [this message]

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=3B02AD71.804119E3@india.infogain.com \
    --to=ashisha@india.infogain.com \
    --cc=amelia.devivo@roma.quadrics.com \
    --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 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.