summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authordanw <danw@NetBSD.org>2000-02-01 04:01:19 +0000
committerdanw <danw@NetBSD.org>2000-02-01 04:01:19 +0000
commitf77befbc847cda5085457f69ba8a50df5e8d3090 (patch)
tree6a938c0864cca3f99621d3839cbef3a6ca64ba91 /sys
parentffd73d1d879294f91aa8350c6ff35d79268fbf00 (diff)
#define __HAVE_DEVICE_REGISTER on ports that have it, and check for
that, rather than a list of architecture defines, in config_attach
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/types.h4
-rw-r--r--sys/arch/hp300/include/types.h4
-rw-r--r--sys/arch/i386/include/types.h4
-rw-r--r--sys/arch/sparc/include/types.h4
-rw-r--r--sys/arch/sparc64/include/types.h4
-rw-r--r--sys/arch/vax/include/types.h4
-rw-r--r--sys/arch/x68k/include/types.h4
-rw-r--r--sys/kern/subr_autoconf.c5
8 files changed, 23 insertions, 10 deletions
diff --git a/sys/arch/alpha/include/types.h b/sys/arch/alpha/include/types.h
index af93fd57b9d..34d0fd028bd 100644
--- a/sys/arch/alpha/include/types.h
+++ b/sys/arch/alpha/include/types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.12 1998/08/14 16:50:03 thorpej Exp $ */
+/* $NetBSD: types.h,v 1.13 2000/02/01 04:01:21 danw Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -72,4 +72,6 @@ typedef int64_t register_t;
#define __HAVE_NWSCONS
+#define __HAVE_DEVICE_REGISTER
+
#endif /* _MACHTYPES_H_ */
diff --git a/sys/arch/hp300/include/types.h b/sys/arch/hp300/include/types.h
index bec16832114..2782a2844ce 100644
--- a/sys/arch/hp300/include/types.h
+++ b/sys/arch/hp300/include/types.h
@@ -1,8 +1,10 @@
-/* $NetBSD: types.h,v 1.8 1996/12/17 08:11:50 thorpej Exp $ */
+/* $NetBSD: types.h,v 1.9 2000/02/01 04:01:21 danw Exp $ */
#ifndef _MACHINE_TYPES_H_
#define _MACHINE_TYPES_H_
#include <m68k/types.h>
+#define __HAVE_DEVICE_REGISTER
+
#endif
diff --git a/sys/arch/i386/include/types.h b/sys/arch/i386/include/types.h
index 0479ecdcbad..319c927cfb1 100644
--- a/sys/arch/i386/include/types.h
+++ b/sys/arch/i386/include/types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.20 1999/02/05 22:13:12 thorpej Exp $ */
+/* $NetBSD: types.h,v 1.21 2000/02/01 04:01:22 danw Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -77,4 +77,6 @@ typedef int32_t register_t;
/* The x86 does not have strict alignment requirements. */
#define __NO_STRICT_ALIGNMENT
+#define __HAVE_DEVICE_REGISTER
+
#endif /* _MACHTYPES_H_ */
diff --git a/sys/arch/sparc/include/types.h b/sys/arch/sparc/include/types.h
index 04badf75dac..4b871a40706 100644
--- a/sys/arch/sparc/include/types.h
+++ b/sys/arch/sparc/include/types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.17 1999/11/30 07:56:28 mrg Exp $ */
+/* $NetBSD: types.h,v 1.18 2000/02/01 04:01:22 danw Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -102,4 +102,6 @@ typedef unsigned long paddr_t;
typedef paddr_t psize_t;
#endif
+#define __HAVE_DEVICE_REGISTER
+
#endif /* _MACHTYPES_H_ */
diff --git a/sys/arch/sparc64/include/types.h b/sys/arch/sparc64/include/types.h
index 4277703a47f..33f2cc64cb7 100644
--- a/sys/arch/sparc64/include/types.h
+++ b/sys/arch/sparc64/include/types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.10 1999/11/27 20:05:45 eeh Exp $ */
+/* $NetBSD: types.h,v 1.11 2000/02/01 04:01:23 danw Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -99,4 +99,6 @@ typedef unsigned long paddr_t;
typedef paddr_t psize_t;
#endif
+#define __HAVE_DEVICE_REGISTER
+
#endif /* _MACHTYPES_H_ */
diff --git a/sys/arch/vax/include/types.h b/sys/arch/vax/include/types.h
index 678856829d3..840578b16c8 100644
--- a/sys/arch/vax/include/types.h
+++ b/sys/arch/vax/include/types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.14 1998/08/13 02:10:49 eeh Exp $ */
+/* $NetBSD: types.h,v 1.15 2000/02/01 04:01:23 danw Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -75,4 +75,6 @@ typedef unsigned long long u_int64_t;
typedef int32_t register_t;
+#define __HAVE_DEVICE_REGISTER
+
#endif /* _MACHTYPES_H_ */
diff --git a/sys/arch/x68k/include/types.h b/sys/arch/x68k/include/types.h
index 299727b4673..a043cfb8041 100644
--- a/sys/arch/x68k/include/types.h
+++ b/sys/arch/x68k/include/types.h
@@ -1,8 +1,10 @@
-/* $NetBSD: types.h,v 1.4 1998/08/04 16:51:53 minoura Exp $ */
+/* $NetBSD: types.h,v 1.5 2000/02/01 04:01:23 danw Exp $ */
#ifndef _MACHINE_TYPES_H_
#define _MACHINE_TYPES_H_
#include <m68k/types.h>
+#define __HAVE_DEVICE_REGISTER
+
#endif
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 12bc1643df4..ebd3a3f0436 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.48 2000/01/25 13:23:26 enami Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.49 2000/02/01 04:01:19 danw Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -409,8 +409,7 @@ config_attach(parent, cf, aux, print)
cf->cf_unit++;
#endif /* __BROKEN_CONFIG_UNIT_USAGE */
}
-#if defined(__alpha__) || defined(hp300) || defined(__i386__) || \
- defined(__sparc__) || defined(__vax__) || defined(x68k)
+#ifdef __HAVE_DEVICE_REGISTER
device_register(dev, aux);
#endif
(*ca->ca_attach)(parent, dev, aux);