Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/cobalt Add an empty bus_space_mmap(9) function as t...
details: https://anonhg.NetBSD.org/src/rev/60b3cbdcf44e
branches: trunk
changeset: 746809:60b3cbdcf44e
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Thu Aug 20 11:50:11 2009 +0000
description:
Add an empty bus_space_mmap(9) function as temporary workaround
for MI pci(4) mmap function in sys/dev/pci/pci_usrreq.c.
diffstat:
sys/arch/cobalt/cobalt/bus.c | 13 +++++++++++--
sys/arch/cobalt/include/bus.h | 12 +++++++++++-
2 files changed, 22 insertions(+), 3 deletions(-)
diffs (60 lines):
diff -r 0aa9ed58d839 -r 60b3cbdcf44e sys/arch/cobalt/cobalt/bus.c
--- a/sys/arch/cobalt/cobalt/bus.c Thu Aug 20 11:45:51 2009 +0000
+++ b/sys/arch/cobalt/cobalt/bus.c Thu Aug 20 11:50:11 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.c,v 1.35 2008/06/04 12:41:40 ad Exp $ */
+/* $NetBSD: bus.c,v 1.36 2009/08/20 11:50:11 tsutsui Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.35 2008/06/04 12:41:40 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus.c,v 1.36 2009/08/20 11:50:11 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -117,6 +117,15 @@
return 0;
}
+paddr_t
+bus_space_mmap(bus_space_tag_t t, bus_addr_t addr, off_t off, int prot,
+ int flags)
+{
+
+ /* XXX not implemented */
+ return -1;
+}
+
/*
* Common function for DMA map creation. May be called by bus-specific
* DMA map creation functions.
diff -r 0aa9ed58d839 -r 60b3cbdcf44e sys/arch/cobalt/include/bus.h
--- a/sys/arch/cobalt/include/bus.h Thu Aug 20 11:45:51 2009 +0000
+++ b/sys/arch/cobalt/include/bus.h Thu Aug 20 11:50:11 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus.h,v 1.22 2008/04/28 20:23:16 martin Exp $ */
+/* $NetBSD: bus.h,v 1.23 2009/08/20 11:50:11 tsutsui Exp $ */
/*
* Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -88,6 +88,16 @@
bus_size_t offset, bus_size_t size, bus_space_handle_t *nbshp);
/*
+ * paddr_t bus_space_mmap(bus_space_tag_t t,
+ * bus_addr_t addr, off_t offset, int prot, int flags);
+ *
+ * Mmap bus space for a user application.
+ */
+
+paddr_t bus_space_mmap(bus_space_tag_t t, bus_addr_t addr, off_t off, int prot,
+ int flags);
+
+/*
* int bus_space_alloc(bus_space_tag_t t, bus_addr_t, rstart,
* bus_addr_t rend, bus_size_t size, bus_size_t align,
* bus_size_t boundary, int flags, bus_addr_t *addrp,
Home |
Main Index |
Thread Index |
Old Index