diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2015-08-02 01:09:30 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2015-08-02 01:09:30 +0000 |
commit | 015b858345562ce87bf369a14d0fb639ca28f1ba (patch) | |
tree | 389a014deed0f01fd66db730dc3f619a499a44cb /tools/bus_space/busdma.c | |
parent | 16f3fdf55f13c2ebb4453a2c10804f75a95244c1 (diff) | |
download | src-015b858345562ce87bf369a14d0fb639ca28f1ba.tar.gz src-015b858345562ce87bf369a14d0fb639ca28f1ba.zip |
Rename busdma_sync() to busdma_sync_range() and rename the
base and size parameters to ofs and len (resp). Add a new
busdma_sync() that makes the entire MD coherent.
Notes
Notes:
svn path=/head/; revision=286176
Diffstat (limited to 'tools/bus_space/busdma.c')
-rw-r--r-- | tools/bus_space/busdma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bus_space/busdma.c b/tools/bus_space/busdma.c index 3f948b72f983..04a9da8b2ef4 100644 --- a/tools/bus_space/busdma.c +++ b/tools/bus_space/busdma.c @@ -536,7 +536,7 @@ bd_seg_get_size(int sid, u_long *size_p) } int -bd_sync(int mdid, u_int op, u_long base, u_long size) +bd_sync(int mdid, u_int op, u_long ofs, u_long len) { struct proto_ioc_busdma ioc; struct obj *md; @@ -549,8 +549,8 @@ bd_sync(int mdid, u_int op, u_long base, u_long size) ioc.request = PROTO_IOC_BUSDMA_SYNC; ioc.key = md->key; ioc.u.sync.op = op; - ioc.u.sync.base = base; - ioc.u.sync.size = size; + ioc.u.sync.base = ofs; + ioc.u.sync.size = len; if (ioctl(md->fd, PROTO_IOC_BUSDMA, &ioc) == -1) return (errno); |