Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev - use <sys/bus.h> rather than <machine/bus.h>
details: https://anonhg.NetBSD.org/src/rev/d5e28f23b80a
branches: trunk
changeset: 779239:d5e28f23b80a
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun May 13 00:47:16 2012 +0000
description:
- use <sys/bus.h> rather than <machine/bus.h>
- no need to include uvm_extern.h
- include "ioconf.h" for struct cfdriver foo_cd
diffstat:
sys/arch/x68k/dev/fd.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diffs (63 lines):
diff -r caec1cb80671 -r d5e28f23b80a sys/arch/x68k/dev/fd.c
--- a/sys/arch/x68k/dev/fd.c Sat May 12 21:42:38 2012 +0000
+++ b/sys/arch/x68k/dev/fd.c Sun May 13 00:47:16 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.98 2012/05/12 15:29:22 tsutsui Exp $ */
+/* $NetBSD: fd.c,v 1.99 2012/05/13 00:47:16 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -64,13 +64,14 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.98 2012/05/12 15:29:22 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.99 2012/05/13 00:47:16 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_m68k_arch.h"
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bus.h>
#include <sys/callout.h>
#include <sys/kernel.h>
#include <sys/conf.h>
@@ -89,11 +90,8 @@
#include <sys/fdio.h>
#include <sys/rnd.h>
-#include <uvm/uvm_extern.h>
-
#include <dev/cons.h>
-#include <machine/bus.h>
#include <machine/cpu.h>
#include <arch/x68k/dev/intiovar.h>
@@ -102,6 +100,7 @@
#include <arch/x68k/dev/opmvar.h> /* for CT1 access */
#include "locators.h"
+#include "ioconf.h"
#ifdef FDDEBUG
#define DPRINTF(x) if (fddebug) printf x
@@ -168,8 +167,6 @@
CFATTACH_DECL_NEW(fdc, sizeof(struct fdc_softc),
fdcprobe, fdcattach, NULL, NULL);
-extern struct cfdriver fdc_cd;
-
/*
* Floppies come in various flavors, e.g., 1.2MB vs 1.44MB; here is how
* we tell them apart.
@@ -252,8 +249,6 @@
CFATTACH_DECL_NEW(fd, sizeof(struct fd_softc),
fdprobe, fdattach, NULL, NULL);
-extern struct cfdriver fd_cd;
-
dev_type_open(fdopen);
dev_type_close(fdclose);
dev_type_read(fdread);
Home |
Main Index |
Thread Index |
Old Index