1*68fe5b6fSgarbled /* $NetBSD: bootinfo.h,v 1.1 2007/12/17 19:09:08 garbled Exp $ */ 2*68fe5b6fSgarbled 3*68fe5b6fSgarbled /* 4*68fe5b6fSgarbled * Copyright (c) 1997 5*68fe5b6fSgarbled * Matthias Drochner. All rights reserved. 6*68fe5b6fSgarbled * 7*68fe5b6fSgarbled * Redistribution and use in source and binary forms, with or without 8*68fe5b6fSgarbled * modification, are permitted provided that the following conditions 9*68fe5b6fSgarbled * are met: 10*68fe5b6fSgarbled * 1. Redistributions of source code must retain the above copyright 11*68fe5b6fSgarbled * notice, this list of conditions and the following disclaimer. 12*68fe5b6fSgarbled * 2. Redistributions in binary form must reproduce the above copyright 13*68fe5b6fSgarbled * notice, this list of conditions and the following disclaimer in the 14*68fe5b6fSgarbled * documentation and/or other materials provided with the distribution. 15*68fe5b6fSgarbled * 16*68fe5b6fSgarbled * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17*68fe5b6fSgarbled * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18*68fe5b6fSgarbled * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19*68fe5b6fSgarbled * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20*68fe5b6fSgarbled * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21*68fe5b6fSgarbled * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22*68fe5b6fSgarbled * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23*68fe5b6fSgarbled * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24*68fe5b6fSgarbled * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25*68fe5b6fSgarbled * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26*68fe5b6fSgarbled * 27*68fe5b6fSgarbled */ 28*68fe5b6fSgarbled 29*68fe5b6fSgarbled #ifndef _MACHINE_BOOTINFO_H_ 30*68fe5b6fSgarbled #define _MACHINE_BOOTINFO_H_ 31*68fe5b6fSgarbled 32*68fe5b6fSgarbled struct btinfo_common { 33*68fe5b6fSgarbled int next; /* offset of next item, or zero */ 34*68fe5b6fSgarbled int type; 35*68fe5b6fSgarbled }; 36*68fe5b6fSgarbled 37*68fe5b6fSgarbled #define BTINFO_IPLCB 0 38*68fe5b6fSgarbled #define BTINFO_CONSOLE 1 39*68fe5b6fSgarbled 40*68fe5b6fSgarbled struct btinfo_iplcb { 41*68fe5b6fSgarbled struct btinfo_common common; 42*68fe5b6fSgarbled char *addr; 43*68fe5b6fSgarbled }; 44*68fe5b6fSgarbled 45*68fe5b6fSgarbled struct btinfo_console { 46*68fe5b6fSgarbled struct btinfo_common common; 47*68fe5b6fSgarbled char devname[4]; 48*68fe5b6fSgarbled int addr; 49*68fe5b6fSgarbled int speed; 50*68fe5b6fSgarbled }; 51*68fe5b6fSgarbled 52*68fe5b6fSgarbled #ifdef _KERNEL 53*68fe5b6fSgarbled void *lookup_bootinfo(int); 54*68fe5b6fSgarbled #endif 55*68fe5b6fSgarbled 56*68fe5b6fSgarbled #define BOOTINFO_MAXSIZE 0xd0 57*68fe5b6fSgarbled 58*68fe5b6fSgarbled #endif /* _MACHINE_BOOTINFO_H_ */ 59