#define __HAVE_DEVICE_REGISTER on ports that have it, and check for

that, rather than a list of architecture defines, in config_attach
This commit is contained in:
danw 2000-02-01 04:01:19 +00:00
parent ffd73d1d87
commit f77befbc84
8 changed files with 23 additions and 10 deletions

View File

@ -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_ */

View File

@ -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

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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_ */

View File

@ -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

View File

@ -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);