Annotation of sys/arch/vax/boot/common/vaxstand.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: vaxstand.h,v 1.1 2000/04/27 02:26:26 bjc Exp $ */
! 2: /* $NetBSD: vaxstand.h,v 1.1 1999/03/06 16:36:05 ragge Exp $ */
! 3: /*
! 4: * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
! 5: * All rights reserved.
! 6: *
! 7: * Redistribution and use in source and binary forms, with or without
! 8: * modification, are permitted provided that the following conditions
! 9: * are met:
! 10: * 1. Redistributions of source code must retain the above copyright
! 11: * notice, this list of conditions and the following disclaimer.
! 12: * 2. Redistributions in binary form must reproduce the above copyright
! 13: * notice, this list of conditions and the following disclaimer in the
! 14: * documentation and/or other materials provided with the distribution.
! 15: * 3. All advertising materials mentioning features or use of this software
! 16: * must display the following acknowledgement:
! 17: * This product includes software developed at Ludd, University of Lule}.
! 18: * 4. The name of the author may not be used to endorse or promote products
! 19: * derived from this software without specific prior written permission
! 20: *
! 21: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
! 22: * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! 23: * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
! 24: * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
! 25: * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
! 26: * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
! 27: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
! 28: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
! 29: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
! 30: * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
! 31: */
! 32:
! 33: /* All bugs are subject to removal without further notice */
! 34:
! 35:
! 36: #define MAXNMBA 8 /* Massbussadapters */
! 37: #define MAXNUBA 8 /* Unibusadapters */
! 38: #define MAXMBAU 8 /* Units on an mba */
! 39:
! 40: /* Variables used in autoconf */
! 41: extern int nmba, nuba, nbi, nsbi, nuda;
! 42: extern int *ubaaddr, *mbaaddr, *udaaddr, *uioaddr, *biaddr;
! 43: extern int cpunumber, howto;
! 44: extern dev_t bootdev;
! 45:
! 46: /* devsw type definitions, used in bootxx and conf */
! 47: #define SADEV(name,strategy,open,close,ioctl) \
! 48: { (char *)name, \
! 49: (int(*)(void *, int ,daddr_t , size_t, void *, size_t *))strategy, \
! 50: (int(*)(struct open_file *, ...))open, \
! 51: (int(*)(struct open_file *))close, \
! 52: (int(*)(struct open_file *,u_long, void *))ioctl}
! 53:
! 54: #define SDELAY(count) {volatile int i; for (i = count; i; i--);}
! 55: /*
! 56: * Easy-to-use definitions
! 57: */
! 58:
! 59: char *index();
CVSweb