1 /* $OpenBSD: tcreg.h,v 1.3 2002/05/02 22:56:06 miod Exp $ */ 2 /* $NetBSD: tcreg.h,v 1.1 1995/12/20 00:48:36 cgd Exp $ */ 3 4 /* 5 * Copyright (c) 1994, 1995 Carnegie-Mellon University. 6 * All rights reserved. 7 * 8 * Author: Chris G. Demetriou 9 * 10 * Permission to use, copy, modify and distribute this software and 11 * its documentation is hereby granted, provided that both the copyright 12 * notice and this permission notice appear in all copies of the 13 * software, derivative works or modified versions, and any portions 14 * thereof, and that both notices appear in supporting documentation. 15 * 16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 18 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 19 * 20 * Carnegie Mellon requests users of this software to return to 21 * 22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 23 * School of Computer Science 24 * Carnegie Mellon University 25 * Pittsburgh PA 15213-3890 26 * 27 * any improvements or extensions that they make and grant Carnegie the 28 * rights to redistribute these changes. 29 */ 30 31 #ifndef __DEV_TC_TCREG_H__ 32 #define __DEV_TC_TCREG_H__ 33 34 /* 35 * TurboChannel bus and register definitions. 36 */ 37 38 #define TC_ROM_LLEN 8 39 #define TC_ROM_SLEN 4 40 #define TC_ROM_TEST_SIZE 16 41 42 #define TC_SLOT_ROM 0x000003e0 43 #define TC_SLOT_PROTOROM 0x003c03e0 44 45 typedef struct tc_padchar { 46 u_int8_t v; 47 u_int8_t pad[3]; 48 } tc_padchar_t; 49 50 struct tc_rommap { 51 tc_padchar_t tcr_width; 52 tc_padchar_t tcr_stride; 53 tc_padchar_t tcr_rsize; 54 tc_padchar_t tcr_ssize; 55 u_int8_t tcr_test[TC_ROM_TEST_SIZE]; 56 tc_padchar_t tcr_rev[TC_ROM_LLEN]; 57 tc_padchar_t tcr_vendname[TC_ROM_LLEN]; 58 tc_padchar_t tcr_modname[TC_ROM_LLEN]; 59 tc_padchar_t tcr_firmtype[TC_ROM_SLEN]; 60 }; 61 62 #endif /* __DEV_TC_TCREG_H__ */ 63