Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev/maple Include "ioconf.h" for struct c...
details: https://anonhg.NetBSD.org/src/rev/0ebba390d324
branches: trunk
changeset: 758086:0ebba390d324
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Oct 17 14:17:49 2010 +0000
description:
Include "ioconf.h" for struct cfdriver.
diffstat:
sys/arch/dreamcast/dev/maple/maple.c | 7 +++----
sys/arch/dreamcast/dev/maple/mlcd.c | 8 ++++----
sys/arch/dreamcast/dev/maple/mmemcard.c | 8 ++++----
3 files changed, 11 insertions(+), 12 deletions(-)
diffs (107 lines):
diff -r 597184a03b30 -r 0ebba390d324 sys/arch/dreamcast/dev/maple/maple.c
--- a/sys/arch/dreamcast/dev/maple/maple.c Sun Oct 17 14:16:21 2010 +0000
+++ b/sys/arch/dreamcast/dev/maple/maple.c Sun Oct 17 14:17:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: maple.c,v 1.41 2010/10/17 14:13:44 tsutsui Exp $ */
+/* $NetBSD: maple.c,v 1.42 2010/10/17 14:17:49 tsutsui Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: maple.c,v 1.41 2010/10/17 14:13:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: maple.c,v 1.42 2010/10/17 14:17:49 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -89,6 +89,7 @@
#include <dreamcast/dev/maple/maplereg.h>
#include <dreamcast/dev/maple/mapleio.h>
+#include "ioconf.h"
#include "locators.h"
/* Internal macros, functions, and variables. */
@@ -160,8 +161,6 @@
CFATTACH_DECL_NEW(maple, sizeof(struct maple_softc),
maplematch, mapleattach, NULL, NULL);
-extern struct cfdriver maple_cd;
-
dev_type_open(mapleopen);
dev_type_close(mapleclose);
dev_type_ioctl(mapleioctl);
diff -r 597184a03b30 -r 0ebba390d324 sys/arch/dreamcast/dev/maple/mlcd.c
--- a/sys/arch/dreamcast/dev/maple/mlcd.c Sun Oct 17 14:16:21 2010 +0000
+++ b/sys/arch/dreamcast/dev/maple/mlcd.c Sun Oct 17 14:17:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mlcd.c,v 1.13 2010/10/17 14:13:44 tsutsui Exp $ */
+/* $NetBSD: mlcd.c,v 1.14 2010/10/17 14:17:49 tsutsui Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mlcd.c,v 1.13 2010/10/17 14:13:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mlcd.c,v 1.14 2010/10/17 14:17:49 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -44,6 +44,8 @@
#include <dreamcast/dev/maple/maple.h>
#include <dreamcast/dev/maple/mapleconf.h>
+#include "ioconf.h"
+
#define MLCD_MAXACCSIZE 1012 /* (255*4) - 8 = 253*32 / 8 */
struct mlcd_funcdef { /* XXX assuming little-endian structure packing */
@@ -174,8 +176,6 @@
CFATTACH_DECL_NEW(mlcd, sizeof(struct mlcd_softc),
mlcdmatch, mlcdattach, mlcddetach, NULL);
-extern struct cfdriver mlcd_cd;
-
/* initial image "NetBSD dreamcast" */
static const char initimg48x32[192] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
diff -r 597184a03b30 -r 0ebba390d324 sys/arch/dreamcast/dev/maple/mmemcard.c
--- a/sys/arch/dreamcast/dev/maple/mmemcard.c Sun Oct 17 14:16:21 2010 +0000
+++ b/sys/arch/dreamcast/dev/maple/mmemcard.c Sun Oct 17 14:17:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mmemcard.c,v 1.19 2010/10/17 14:13:44 tsutsui Exp $ */
+/* $NetBSD: mmemcard.c,v 1.20 2010/10/17 14:17:49 tsutsui Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mmemcard.c,v 1.19 2010/10/17 14:13:44 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mmemcard.c,v 1.20 2010/10/17 14:17:49 tsutsui Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -49,6 +49,8 @@
#include <dreamcast/dev/maple/maple.h>
#include <dreamcast/dev/maple/mapleconf.h>
+#include "ioconf.h"
+
#define MMEM_MAXACCSIZE 1012 /* (255*4) - 8 = 253*32 / 8 */
struct mmem_funcdef { /* XXX assuming little-endian structure packing */
@@ -199,8 +201,6 @@
CFATTACH_DECL_NEW(mmem, sizeof(struct mmem_softc),
mmemmatch, mmemattach, mmemdetach, NULL);
-extern struct cfdriver mmem_cd;
-
struct dkdriver mmemdkdriver = { mmemstrategy };
static int
Home |
Main Index |
Thread Index |
Old Index