public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Ling Su" <lingsu@palmmicro.com>
To: <ecos-discuss@sources.redhat.com>
Subject: [ECOS] A question on PCI device driver
Date: Tue, 05 Sep 2000 21:35:00 -0000	[thread overview]
Message-ID: <000e01c017bc$63ff9a80$1201a8c0@crusoe> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]

Hi,
 
I am using the PCI device drive for NECvrc4373 board. Currently I met a 
simle question on the memory mapping. After I initialize the PCI bus, I find my 
PCI card. I allocate the memory space using cyg_pci_allocate_memory(), then I 
should can freely access the memory use the pointer provided by 
devinfo.base_maps[i], right? Unfortunately no matter I wrote what on this piece 
of memory, and I can read it back, but I can not capture any signal on the PCI 
bus, I think I didn't succeed in mapping the PCI bus.
 
The information I have for the PCI devinfo is 
BAR[0], base_address[0] is 0xC000A0008, probed size is oxFFFF008, CPU addr 
(base_map) is 0x8000A000, when I try to write "(*(char *)0x8000A000C)", 
supposely from 0x8000A000 is the programm view of PCI memory, right? Why I can 
not access it then? Anyone have ever test the PCI driver in this way, please 
shed me some light.
 
Thanks in advance!
 
Best Regards,
-Ling

                 reply	other threads:[~2000-09-05 21:35 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='000e01c017bc$63ff9a80$1201a8c0@crusoe' \
    --to=lingsu@palmmicro.com \
    --cc=ecos-discuss@sources.redhat.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).