Chameleon

Chameleon Svn Source Tree

Root/branches/azimutz/Chazi/i386/boot2/options.h

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

Archive Download this file

Revision: 603