summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 22:23:04 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 22:23:04 +0100
commit2d4656fb699dd9bc5329b69b2955a6e4c3753971 (patch)
treee3cbe968b421e749ad2c893e093c71ed45b1d494 /lib
parentc03c6ceb293fd667a6b582377c182dfc3b6d0f32 (diff)
lib/intel_io: rename mmio setup functions
Makes their intent a bit clearer. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/intel_io.h4
-rw-r--r--lib/intel_mmio.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/intel_io.h b/lib/intel_io.h
index 591fd3f4..5ea50cab 100644
--- a/lib/intel_io.h
+++ b/lib/intel_io.h
@@ -33,8 +33,8 @@
/* register access helpers from intel_mmio.c */
extern void *mmio;
-void intel_get_mmio(struct pci_device *pci_dev);
-void intel_map_file(char *);
+void intel_mmio_use_pci_bar(struct pci_device *pci_dev);
+void intel_mmio_use_dump_file(char *);
int intel_register_access_init(struct pci_device *pci_dev, int safe);
void intel_register_access_fini(void);
diff --git a/lib/intel_mmio.c b/lib/intel_mmio.c
index 444e4450..97eee560 100644
--- a/lib/intel_mmio.c
+++ b/lib/intel_mmio.c
@@ -58,7 +58,7 @@ static struct _mmio_data {
} mmio_data;
void
-intel_map_file(char *file)
+intel_mmio_use_dump_file(char *file)
{
int fd;
struct stat st;
@@ -80,7 +80,7 @@ intel_map_file(char *file)
}
void
-intel_get_mmio(struct pci_device *pci_dev)
+intel_mmio_use_pci_bar(struct pci_device *pci_dev)
{
uint32_t devid, gen;
int mmio_bar, mmio_size;
@@ -132,7 +132,7 @@ intel_register_access_init(struct pci_device *pci_dev, int safe)
/* after old API is deprecated, remove this */
if (mmio == NULL)
- intel_get_mmio(pci_dev);
+ intel_mmio_use_pci_bar(pci_dev);
assert(mmio != NULL);