login
Header Space

 
 

One solution

September 10, 2008 - 10:52am
Andrew Klossner (not verified)

You can solve this specific problem by using mmap() on file /dev/mem to map the desired portion of PCI memory space into your process's address space at the hard-coded address. To discovery the true addresses, read the BAR registers from the device's config space by using the lspci command or by looking at the config file in the device's directory under /sys/bus/pci/devices.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <quote> <pre> <hr> <br> <p> <img> <blockquote> <font> <tt> <table> <tr> <i>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

speck-geostationary