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 | ␊ |
26 | ␊ |
27 | #ifndef __BOOT2_OPTIONS_H␊ |
28 | #define __BOOT2_OPTIONS_H␊ |
29 | ␊ |
30 | #include "boot.h"␊ |
31 | #include "bootstruct.h"␊ |
32 | #include "graphics.h"␊ |
33 | ␊ |
34 | typedef struct {␊ |
35 | int x;␊ |
36 | int y;␊ |
37 | int type;␊ |
38 | } CursorState;␊ |
39 | ␊ |
40 | extern MenuItem * menuItems;␊ |
41 | extern const MenuItem * gMenuItems;␊ |
42 | ␊ |
43 | ␊ |
44 | void clearBootArgs(void);␊ |
45 | void addBootArg(const char * argStr);␊ |
46 | void changeCursor( int col, int row, int type, CursorState * cs );␊ |
47 | void moveCursor( int col, int row );␊ |
48 | void restoreCursor( const CursorState * cs );␊ |
49 | void printMemoryInfo(void);␊ |
50 | void lspci(void);␊ |
51 | void printMenuItem( const MenuItem * item, int highlight );␊ |
52 | bool flushKeyboardBuffer(void);␊ |
53 | ␊ |
54 | ␊ |
55 | extern bool shouldboot;␊ |
56 | ␊ |
57 | #ifdef UNUSED␊ |
58 | extern int multiboot_timeout;␊ |
59 | extern int multiboot_timeout_set;␊ |
60 | #endif␊ |
61 | ␊ |
62 | extern BVRef bvChain;␊ |
63 | //extern int␉␉menucount;␊ |
64 | ␊ |
65 | extern int␉␉gDeviceCount;␊ |
66 | ␊ |
67 | extern int␉␉␉selectIndex;␊ |
68 | ␊ |
69 | enum {␊ |
70 | kMenuTopRow = 5,␊ |
71 | kMenuMaxItems = 10,␊ |
72 | kScreenLastRow = 24␊ |
73 | };␊ |
74 | ␊ |
75 | ␊ |
76 | //==========================================================================␊ |
77 | ␊ |
78 | extern char gBootArgs[BOOT_STRING_LEN];␊ |
79 | extern char * gBootArgsPtr;␊ |
80 | extern char * gBootArgsEnd;␊ |
81 | extern char booterCommand[BOOT_STRING_LEN];␊ |
82 | extern char booterParam[BOOT_STRING_LEN];␊ |
83 | ␊ |
84 | ␊ |
85 | //==========================================================================␊ |
86 | ␊ |
87 | extern int gMenuItemCount;␊ |
88 | extern int gMenuRow;␊ |
89 | extern int gMenuHeight;␊ |
90 | extern int gMenuTop;␊ |
91 | extern int gMenuBottom;␊ |
92 | extern int gMenuSelection;␊ |
93 | ␊ |
94 | extern int␉ gMenuStart;␊ |
95 | extern int␉ gMenuEnd;␊ |
96 | ␊ |
97 | extern unsigned char chainbootdev;␊ |
98 | extern unsigned char chainbootflag;␊ |
99 | ␊ |
100 | ␊ |
101 | // Maximum config table value size␊ |
102 | #define VALUE_SIZE 2048␊ |
103 | ␊ |
104 | #endif /* __BOOT2_OPTIONS_H */ |