summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-31 12:40:03 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-31 12:40:03 -0700
commitebc618e7508847307713a59aeeed337a9277629d (patch)
tree7a5c59c4b0487a4853fa2e53e9a000a398bc0bf8 /include
parent08ff9f7fbd26dd2d0e30351b556c71c272f6be6c (diff)
Update / add comments in struct pci_mem_region.
Diffstat (limited to 'include')
-rw-r--r--include/pciaccess.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/pciaccess.h b/include/pciaccess.h
index 3146a35..4bd3672 100644
--- a/include/pciaccess.h
+++ b/include/pciaccess.h
@@ -201,10 +201,35 @@ struct pci_slot_match {
struct pci_mem_region {
/**
* When the region is mapped, this is the pointer to the memory.
+ *
+ * This field is \b only set when the deprecated \c pci_device_map_region
+ * interface is used. Use \c pci_device_map_range instead.
+ *
+ * \deprecated
*/
void *memory;
+
+ /**
+ * Base physical address of the region within its bus / domain.
+ *
+ * \warning
+ * This address is really only useful to other devices in the same
+ * domain. It's probably \b not the address applications will ever
+ * use.
+ *
+ * \warning
+ * Most (all?) platform back-ends leave this field unset.
+ */
pciaddr_t bus_addr;
+
+
+ /**
+ * Base physical address of the region from the CPU's point of view.
+ *
+ * This address is typically passed to \c pci_device_map_range to create
+ * a mapping of the region to the CPU's virtual address space.
+ */
pciaddr_t base_addr;