56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/* $NetBSD: autoconf.h,v 1.3 2001/06/10 05:26:59 thorpej Exp $ */
|
|
|
|
/*
|
|
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
|
|
* All rights reserved.
|
|
*
|
|
* Author: Chris G. Demetriou
|
|
*
|
|
* Permission to use, copy, modify and distribute this software and
|
|
* its documentation is hereby granted, provided that both the copyright
|
|
* notice and this permission notice appear in all copies of the
|
|
* software, derivative works or modified versions, and any portions
|
|
* thereof, and that both notices appear in supporting documentation.
|
|
*
|
|
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
|
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
|
|
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
|
*
|
|
* Carnegie Mellon requests users of this software to return to
|
|
*
|
|
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
|
* School of Computer Science
|
|
* Carnegie Mellon University
|
|
* Pittsburgh PA 15213-3890
|
|
*
|
|
* any improvements or extensions that they make and grant Carnegie the
|
|
* rights to redistribute these changes.
|
|
*/
|
|
|
|
#ifndef _ALGOR_AUTOCONF_H_
|
|
#define _ALGOR_AUTOCONF_H_
|
|
|
|
#include <machine/bus.h>
|
|
|
|
/*
|
|
* Machine-dependent structures of autoconfiguration
|
|
*/
|
|
struct mainbus_attach_args {
|
|
const char *ma_name; /* device name */
|
|
bus_space_tag_t ma_st; /* the space tag to use */
|
|
bus_addr_t ma_addr; /* system bus address */
|
|
int ma_irq; /* IRQ index */
|
|
};
|
|
|
|
#ifdef _KERNEL
|
|
extern char algor_ethaddr[];
|
|
extern u_long cycles_per_hz;
|
|
extern u_int delay_divisor;
|
|
|
|
void (*algor_iointr)(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
|
|
|
|
void led_display(u_int8_t, u_int8_t, u_int8_t, u_int8_t);
|
|
#endif /* _KERNEL */
|
|
|
|
#endif /* !_ALGOR_AUTOCONF_H_ */
|