This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: accessing PCI device
- From: Mark Salter <msalter at redhat dot com>
- To: Jacek Poplawski <jacek dot poplawski at s3group dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 29 Aug 2006 11:46:51 -0400
- Subject: Re: [ECOS] accessing PCI device
- References: <44F45DEB.40906@s3group.com>
On Tue, 2006-08-29 at 17:31 +0200, Jacek Poplawski wrote:
> I am trying to access 82545 ethernet controller in ecos, it doesn't
> respond to my commands, I guess the memory address I am using is incorrect.
>
> What exactly means HAL_PCI_PHYSICAL_IO_BASE?
This is the base address of the CPU's window into PCI IO space. So if a
PCI device BAR is set to X in IO space, the CPU accesses it with BASE+X.
This is described in the reference manual:
http://ecos.sourceware.org/docs-latest/ref/pci-library-reference.html
--Mark
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss