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