Annotation of sys/arch/zaurus/include/bootconfig.h, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: bootconfig.h,v 1.1 2004/12/31 00:04:35 drahn Exp $ */
2: /* $NetBSD: bootconfig.h,v 1.2 2001/06/21 22:08:28 chris Exp $ */
3:
4: /*
5: * Copyright (c) 1994 Mark Brinicombe.
6: * Copyright (c) 1994 Brini.
7: * All rights reserved.
8: *
9: * This code is derived from software written for Brini by Mark Brinicombe
10: *
11: * Redistribution and use in source and binary forms, with or without
12: * modification, are permitted provided that the following conditions
13: * are met:
14: * 1. Redistributions of source code must retain the above copyright
15: * notice, this list of conditions and the following disclaimer.
16: * 2. Redistributions in binary form must reproduce the above copyright
17: * notice, this list of conditions and the following disclaimer in the
18: * documentation and/or other materials provided with the distribution.
19: * 3. All advertising materials mentioning features or use of this software
20: * must display the following acknowledgement:
21: * This product includes software developed by Mark Brinicombe
22: * for the NetBSD Project.
23: * 4. The name of the company nor the name of the author may be used to
24: * endorse or promote products derived from this software without specific
25: * prior written permission.
26: *
27: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
28: * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
29: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30: * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31: * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33: * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37: * SUCH DAMAGE.
38: *
39: * boot configuration structures
40: *
41: * Created : 12/09/94
42: *
43: * Based on kate/boot/bootconfig.h
44: */
45:
46: typedef struct _PhysMem {
47: u_int address;
48: u_int pages;
49: } PhysMem;
50:
51: #if defined(_KERNEL)
52:
53: #define DRAM_BLOCKS 1
54:
55: typedef struct _BootConfig {
56: PhysMem dram[DRAM_BLOCKS];
57: u_int dramblocks;
58: } BootConfig;
59:
60: extern BootConfig bootconfig;
61: #define MAX_BOOT_STRING 255
62:
63: #define BOOTOPT_TYPE_BOOLEAN 0
64: #define BOOTOPT_TYPE_STRING 1
65: #define BOOTOPT_TYPE_INT 2
66: #define BOOTOPT_TYPE_BININT 3
67: #define BOOTOPT_TYPE_HEXINT 4
68: #define BOOTOPT_TYPE_MASK 7
69:
70: int get_bootconf_option (char *string, char *option, int type, void *result);
71:
72: extern char *boot_args;
73: extern char *boot_file;
74: #endif /* _KERNEL */
75:
76: /* End of bootconfig.h */
CVSweb