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]

Re: How to access PCI memory(HELP)....


Just use the pci functions in eCos. First find the device your are interested in, then get the device info. The info has the base addresses of the pci memory. Then, just reference the memory.


// Find host bridge
cyg_pci_find_class(0x060000, &shadow_devid);

// Get Vendor ID
cyg_pci_get_device_info(shadow_devid, &device);



David N. Welton wrote:


"namita  chawla" <namita05@rediffmail.com> writes:


Does a similar function exist in windows so that my application can
directly access the memory of device?

I take it you mean eCos... did you try just reading and writing to the
memory location?



--
Stephen Polkowski
Centaur Technology
Austin, TX
(512) 418-5730


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


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