aboutsummaryrefslogtreecommitdiff
path: root/tools/bus_space/C
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bus_space/C')
-rw-r--r--tools/bus_space/C/lang.c4
-rw-r--r--tools/bus_space/C/libbus.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/bus_space/C/lang.c b/tools/bus_space/C/lang.c
index d9c3f52cde18..f9b404b1b26c 100644
--- a/tools/bus_space/C/lang.c
+++ b/tools/bus_space/C/lang.c
@@ -80,10 +80,10 @@ bus_write_4(int rid, long ofs, uint32_t val)
}
int
-bus_map(const char *dev)
+bus_map(const char *dev, const char *resource)
{
- return (bs_map(dev));
+ return (bs_map(dev, resource));
}
int
diff --git a/tools/bus_space/C/libbus.h b/tools/bus_space/C/libbus.h
index 50efd3808cc8..0fae9879d2ce 100644
--- a/tools/bus_space/C/libbus.h
+++ b/tools/bus_space/C/libbus.h
@@ -29,7 +29,7 @@
#ifndef _LIBBUS_SPACE_H_
#define _LIBBUS_SPACE_H_
-int bus_map(const char *dev);
+int bus_map(const char *dev, const char *resource);
int16_t bus_read_1(int rid, long ofs);
int32_t bus_read_2(int rid, long ofs);
int64_t bus_read_4(int rid, long ofs);