- Nuke old leftover bogocities, round one; externs for non-existent

functions, less-intuitive #define's in inappropriate header files.
This commit is contained in:
nisimura 1999-03-12 07:13:14 +00:00
parent f875c6618a
commit 57edf91cbc
3 changed files with 9 additions and 38 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.h,v 1.9 1998/10/06 20:50:17 thorpej Exp $ */
/* $NetBSD: autoconf.h,v 1.10 1999/03/12 07:13:15 nisimura Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -35,29 +35,10 @@
struct confargs;
/* Handle device interrupt for given unit of a driver */
typedef void* intr_arg_t; /* pointer to some softc */
typedef void *intr_arg_t; /* pointer to some softc */
typedef int (*intr_handler_t) __P((intr_arg_t));
/*
* XXX Establish interrupt on an arbitrary decstation/decsystem bus.
*/
extern void
generic_intr_establish __P(( void * parent, void * cookie,
int level,
intr_handler_t handler, intr_arg_t arg));
#define KN02_ASIC_NAME "KN02 " /* ROM name in 3max system slot */
#define INTR_ESTABLISH(parent, cookie, level, handler, val) \
generic_intr_establish((parent), (cookie), (level), (handler), (val))
#define BUS_INTR_ESTABLISH(ca, handler, val) \
generic_intr_establish( ((struct device*)(val))->dv_parent, \
(void*)(ca)->ca_slotpri, 0, (handler), (val))
struct confargs {
char *ca_name; /* Device name. */
@ -67,11 +48,5 @@ struct confargs {
int ca_slotpri; /* Device interrupt "priority" */
};
extern caddr_t baseboard_cvtaddr __P((struct confargs *)); /*XXX*/
#ifndef pmax
void set_clockintr __P((void (*)(struct clockframe *)));
#endif
void set_iointr __P((void (*)(void *, int)));
int badaddr __P((void *, u_int));
int badaddr __P((void *, u_int));
void makebootdev __P((char *cp));

View File

@ -1,4 +1,4 @@
/* $NetBSD: tc_machdep.h,v 1.8 1998/04/19 11:16:18 jonathan Exp $ */
/* $NetBSD: tc_machdep.h,v 1.9 1999/03/12 07:13:14 nisimura Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@ -108,8 +108,6 @@ extern void config_tcbus __P((struct device *parent, int cputype,
int printfn __P((void*, const char*)) ));
extern int badaddr __P((void *, u_int));
#define TC_SCSI "PMAZ-AA "
#define TC_ETHER "PMAD-AA "
#define TC_KV(x) ((tc_addr_t)MIPS_PHYS_TO_KSEG1(x))
#define TC_C(x) ((void *)(u_long)x)
#endif /* __MACHINE_TC_MACHDEP_H__*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: tc_3max.c,v 1.1 1998/04/19 07:59:13 jonathan Exp $ */
/* $NetBSD: tc_3max.c,v 1.2 1999/03/12 07:13:15 nisimura Exp $ */
/*
* Copyright (c) 1998 Jonathan Stone. All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: tc_3max.c,v 1.1 1998/04/19 07:59:13 jonathan Exp $ ");
__KERNEL_RCSID(0, "$NetBSD: tc_3max.c,v 1.2 1999/03/12 07:13:15 nisimura Exp $ ");
#include <sys/types.h>
@ -59,16 +59,14 @@ struct tc_slotdesc tc_kn02_slots [8] = {
int tc_kn02_nslots =
sizeof(tc_kn02_slots) / sizeof(tc_kn02_slots[0]);
#define KN02_ROM_NAME KN02_ASIC_NAME
#define TC_KN02_DEV_IOASIC -1
#define TC_KN02_DEV_ETHER 6
#define TC_KN02_DEV_SCSI 5
const struct tc_builtin tc_kn02_builtins[] = {
{ KN02_ROM_NAME,7, 0x0, TC_C(TC_KN02_DEV_IOASIC) /* TC_C(7)*/ },
{ TC_ETHER, 6, 0x0, TC_C(TC_KN02_DEV_ETHER) /* TC_C(6)*/ },
{ TC_SCSI, 5, 0x0, TC_C(TC_KN02_DEV_SCSI) /* TC_C(5)*/ }
{ "KN02 ", 7, 0x0, TC_C(TC_KN02_DEV_IOASIC) /* TC_C(7)*/ },
{ "PMAD-AA ", 6, 0x0, TC_C(TC_KN02_DEV_ETHER) /* TC_C(6)*/ },
{ "PMAZ-AA ", 5, 0x0, TC_C(TC_KN02_DEV_SCSI) /* TC_C(5)*/ }
};