This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fwd: PCI configuration]


This was misaddressed. CC "harmon" on replies not me, thanks.

Jifl

-------- Original Message --------
Subject: 	PCI configuration
Date: 	Fri, 9 Jul 2004 12:20:09 -0400
From: 	harmon <lharmon@neo.rr.com>
To: 	<ecos-discuss-owner@ecos.sourceware.org>



I am trying to write a USB device driver for ECOS 2.0.  I have started
with i386 PC target and added a USB device.



I am having trouble mapping the PCI card.  I first find the card, using
cyg_pci_find_device(&dev_info) then call
cyg_pci_configure_device(&dev_info).  The PCI card documentation says
two memory spaces are supported, both 0x100000 bytes in length.  The
first is an 8 bit space and the second a 32 bit space.



cyg_pci_configure_device(&dev_info) returns true, but the contents of
devinfo after the call don’t make sense to me.



dev_info.base_address[0] F0000000

dev_info.base_size[0] FFFFFF00

dev_info.base_map[0] F0000000



dev_info.base_address[1] 0000DF01

dev_info.base_size[1] FFFFFF01

dev_info.base_map[1] 0000DF00



Do these make sense?



The PCI card uses a PCI9054 chip, if that’s any help.



Any suggestions would be appreciated.



Larry




-- eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts --["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine


-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]