1 | /*␊ |
2 | * Copyright (c) 1999-2004 Apple Computer, Inc. All rights reserved.␊ |
3 | *␊ |
4 | * @APPLE_LICENSE_HEADER_START@␊ |
5 | * ␊ |
6 | * Portions Copyright (c) 1999-2004 Apple Computer, Inc. All Rights␊ |
7 | * Reserved. This file contains Original Code and/or Modifications of␊ |
8 | * Original Code as defined in and that are subject to the Apple Public␊ |
9 | * Source License Version 2.0 (the "License"). You may not use this file␊ |
10 | * except in compliance with the License. Please obtain a copy of the␊ |
11 | * License at http://www.apple.com/publicsource and read it before using␊ |
12 | * this file.␊ |
13 | * ␊ |
14 | * The Original Code and all software distributed under the License are␊ |
15 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER␊ |
16 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,␊ |
17 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,␊ |
18 | * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT. Please see the␊ |
19 | * License for the specific language governing rights and limitations␊ |
20 | * under the License.␊ |
21 | * ␊ |
22 | * @APPLE_LICENSE_HEADER_END@␊ |
23 | */␊ |
24 | ␊ |
25 | #ifndef __BOOT2_OPTIONS_H␊ |
26 | #define __BOOT2_OPTIONS_H␊ |
27 | ␊ |
28 | //#include "boot.h"␊ |
29 | //#include "bootstruct.h"␊ |
30 | //#include "graphics.h"␊ |
31 | ␊ |
32 | //AZI: KEEP THIS FILE ???␊ |
33 | ␊ |
34 | extern int␉gDeviceCount;␊ |
35 | void clearBootArgs(void);␊ |
36 | ␊ |
37 | typedef struct {␊ |
38 | int x;␊ |
39 | int y;␊ |
40 | int type;␊ |
41 | } CursorState;␊ |
42 | ␊ |
43 | enum {␊ |
44 | kMenuTopRow = 5,␊ |
45 | kMenuMaxItems = 10,␊ |
46 | kScreenLastRow = 24␊ |
47 | };␊ |
48 | ␊ |
49 | /*␊ |
50 | extern const MenuItem * gMenuItems;␊ |
51 | ␊ |
52 | ␊ |
53 | ␊ |
54 | void addBootArg(const char * argStr);␊ |
55 | void changeCursor( int col, int row, int type, CursorState * cs );␊ |
56 | void moveCursor( int col, int row );␊ |
57 | void restoreCursor( const CursorState * cs );␊ |
58 | void printMemoryInfo(void);␊ |
59 | void lspci(void);␊ |
60 | void printMenuItem( const MenuItem * item, int highlight );␊ |
61 | bool flushKeyboardBuffer(void);␊ |
62 | ␊ |
63 | ␊ |
64 | extern bool shouldboot;␊ |
65 | ␊ |
66 | #ifdef UNUSED␊ |
67 | extern int multiboot_timeout;␊ |
68 | extern int multiboot_timeout_set;␊ |
69 | #endif␊ |
70 | ␊ |
71 | extern BVRef bvChain;␊ |
72 | //extern int␉␉menucount;␊ |
73 | ␊ |
74 | ␊ |
75 | ␊ |
76 | ␊ |
77 | //==========================================================================␊ |
78 | ␊ |
79 | extern char gBootArgs[BOOT_STRING_LEN];␊ |
80 | extern char * gBootArgsPtr;␊ |
81 | extern char * gBootArgsEnd;␊ |
82 | extern char booterCommand[BOOT_STRING_LEN];␊ |
83 | extern char booterParam[BOOT_STRING_LEN];␊ |
84 | ␊ |
85 | ␊ |
86 | //==========================================================================␊ |
87 | ␊ |
88 | extern int gMenuItemCount;␊ |
89 | extern int gMenuRow;␊ |
90 | extern int gMenuHeight;␊ |
91 | extern int gMenuTop;␊ |
92 | extern int gMenuBottom;␊ |
93 | extern int gMenuSelection;␊ |
94 | ␊ |
95 | extern int␉ gMenuStart;␊ |
96 | extern int␉ gMenuEnd;␊ |
97 | ␊ |
98 | extern unsigned char chainbootdev;␊ |
99 | extern unsigned char chainbootflag;␊ |
100 | ␊ |
101 | ␊ |
102 | // Maximum config table value size␊ |
103 | #define VALUE_SIZE 2048␊ |
104 | */␊ |
105 | #endif /* __BOOT2_OPTIONS_H */ |