Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Add default implementations for new bus_space(9) ro...
details: https://anonhg.NetBSD.org/src/rev/30d4dbdeb997
branches: trunk
changeset: 766997:30d4dbdeb997
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Jul 06 18:24:26 2011 +0000
description:
Add default implementations for new bus_space(9) routines.
diffstat:
sys/kern/kern_stub.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diffs (56 lines):
diff -r b92fd91b9aa1 -r 30d4dbdeb997 sys/kern/kern_stub.c
--- a/sys/kern/kern_stub.c Wed Jul 06 18:18:07 2011 +0000
+++ b/sys/kern/kern_stub.c Wed Jul 06 18:24:26 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_stub.c,v 1.33 2011/06/01 21:25:01 alnsn Exp $ */
+/* $NetBSD: kern_stub.c,v 1.34 2011/07/06 18:24:26 dyoung Exp $ */
/*-
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.33 2011/06/01 21:25:01 alnsn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_stub.c,v 1.34 2011/07/06 18:24:26 dyoung Exp $");
#include "opt_ptrace.h"
#include "opt_ktrace.h"
@@ -82,6 +82,7 @@
#include <sys/userconf.h>
bool default_bus_space_is_equal(bus_space_tag_t, bus_space_tag_t);
+bool default_bus_space_handle_is_equal(bus_space_handle_t, bus_space_handle_t);
/*
* Nonexistent system call-- signal process (may want to handle it). Flag
@@ -129,9 +130,15 @@
__weak_alias(machdep_init,nullop);
__weak_alias(pci_chipset_tag_create, eopnotsupp);
__weak_alias(pci_chipset_tag_destroy, voidop);
+__weak_alias(bus_space_reserve, eopnotsupp);
+__weak_alias(bus_space_reserve_subregion, eopnotsupp);
+__weak_alias(bus_space_release, voidop);
+__weak_alias(bus_space_reservation_map, eopnotsupp);
+__weak_alias(bus_space_reservation_unmap, voidop);
__weak_alias(bus_space_tag_create, eopnotsupp);
__weak_alias(bus_space_tag_destroy, voidop);
__weak_alias(bus_space_is_equal, default_bus_space_is_equal);
+__weak_alias(bus_space_handle_is_equal, default_bus_space_handle_is_equal);
__weak_alias(userconf_bootinfo, voidop);
__weak_alias(userconf_init, voidop);
__weak_alias(userconf_prompt, voidop);
@@ -270,6 +277,13 @@
}
bool
+default_bus_space_handle_is_equal(bus_space_handle_t h1, bus_space_handle_t h2)
+{
+
+ return memcmp(&h1, &h2, sizeof(h1)) == 0;
+}
+
+bool
default_bus_space_is_equal(bus_space_tag_t t1, bus_space_tag_t t2)
{
Home |
Main Index |
Thread Index |
Old Index