11.7Smatt/* $NetBSD: autoconf.h,v 1.7 2011/07/09 16:03:01 matt Exp $ */ 21.1Sthorpej 31.1Sthorpej/* 41.1Sthorpej * Copyright (c) 1994, 1995 Carnegie-Mellon University. 51.1Sthorpej * All rights reserved. 61.1Sthorpej * 71.1Sthorpej * Author: Chris G. Demetriou 81.1Sthorpej * 91.1Sthorpej * Permission to use, copy, modify and distribute this software and 101.1Sthorpej * its documentation is hereby granted, provided that both the copyright 111.1Sthorpej * notice and this permission notice appear in all copies of the 121.1Sthorpej * software, derivative works or modified versions, and any portions 131.1Sthorpej * thereof, and that both notices appear in supporting documentation. 141.1Sthorpej * 151.1Sthorpej * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 161.1Sthorpej * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 171.1Sthorpej * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 181.1Sthorpej * 191.1Sthorpej * Carnegie Mellon requests users of this software to return to 201.1Sthorpej * 211.1Sthorpej * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 221.1Sthorpej * School of Computer Science 231.1Sthorpej * Carnegie Mellon University 241.1Sthorpej * Pittsburgh PA 15213-3890 251.1Sthorpej * 261.1Sthorpej * any improvements or extensions that they make and grant Carnegie the 271.1Sthorpej * rights to redistribute these changes. 281.1Sthorpej */ 291.1Sthorpej 301.1Sthorpej#ifndef _ALGOR_AUTOCONF_H_ 311.1Sthorpej#define _ALGOR_AUTOCONF_H_ 321.1Sthorpej 331.6Sdyoung#include <sys/bus.h> 341.1Sthorpej 351.1Sthorpej/* 361.4Ssimonb * Machine-dependent structures for autoconfiguration 371.1Sthorpej */ 381.1Sthorpejstruct mainbus_attach_args { 391.1Sthorpej const char *ma_name; /* device name */ 401.2Sthorpej bus_space_tag_t ma_st; /* the space tag to use */ 411.1Sthorpej bus_addr_t ma_addr; /* system bus address */ 421.2Sthorpej int ma_irq; /* IRQ index */ 431.1Sthorpej}; 441.1Sthorpej 451.1Sthorpej#ifdef _KERNEL 461.1Sthorpejextern char algor_ethaddr[]; 471.1Sthorpej 481.7Smattextern void (*algor_iointr)(int, vaddr_t, uint32_t); 491.7Smattextern void * (*algor_intr_establish)(int, int (*)(void *), void *); 501.7Smattextern void (*algor_intr_disestablish)(void *); 511.7Smatt 521.1Sthorpej 531.5Smattvoid led_display(uint8_t, uint8_t, uint8_t, uint8_t); 541.1Sthorpej#endif /* _KERNEL */ 551.1Sthorpej 561.1Sthorpej#endif /* !_ALGOR_AUTOCONF_H_ */ 57