Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/broadcom basic mmap support, ok skrll
details: https://anonhg.NetBSD.org/src/rev/de225ccf0a96
branches: trunk
changeset: 783861:de225ccf0a96
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Jan 10 21:57:38 2013 +0000
description:
basic mmap support, ok skrll
diffstat:
sys/arch/arm/broadcom/bcm2835_space.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r e5989b18ea06 -r de225ccf0a96 sys/arch/arm/broadcom/bcm2835_space.c
--- a/sys/arch/arm/broadcom/bcm2835_space.c Thu Jan 10 21:50:56 2013 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_space.c Thu Jan 10 21:57:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm2835_space.c,v 1.1 2012/07/26 06:21:57 skrll Exp $ */
+/* $NetBSD: bcm2835_space.c,v 1.2 2013/01/10 21:57:38 jmcneill Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_space.c,v 1.1 2012/07/26 06:21:57 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_space.c,v 1.2 2013/01/10 21:57:38 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -65,7 +65,7 @@
bcm2835_bs_vaddr,
/* mmap */
- bs_notimpl_bs_mmap,
+ bcm2835_bs_mmap,
/* barrier */
bcm2835_bs_barrier,
@@ -373,6 +373,12 @@
return (void *)bsh;
}
+paddr_t
+bcm2835_bs_mmap(void *t, bus_addr_t paddr, off_t offset, int prot, int flags)
+{
+
+ return (arm_btop((paddr + offset)));
+}
int
bcm2835_bs_alloc(void *t, bus_addr_t rstart, bus_addr_t rend,
Home |
Main Index |
Thread Index |
Old Index