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 "bootstruct.h"␊ |
31 | #include "graphics.h"␊ |
32 | ␊ |
33 | /*␊ |
34 | * options.c␊ |
35 | */␊ |
36 | extern int getBootOptions(bool firstRun);␊ |
37 | extern int processBootOptions(void);␊ |
38 | extern bool promptForRescanOption(void);␊ |
39 | extern bool copyArgument(const char *argName, const char *val, int cnt, char **argP, int *cntRemainingP);␊ |
40 | ␊ |
41 | ␊ |
42 | void showHelp(void);␊ |
43 | void showTextFile(const char * filename);␊ |
44 | char *getMemoryInfoString(void);␊ |
45 | void showMessage(char * message);␊ |
46 | void showTextBuffer(char *buf, int size);␊ |
47 | ␊ |
48 | void clearBootArgs(void);␊ |
49 | void addBootArg(const char * argStr);␊ |
50 | void printMemoryInfo(void);␊ |
51 | void lspci(void);␊ |
52 | char *getMemoryInfoString(void);␊ |
53 | ␊ |
54 | #ifdef UNUSED␊ |
55 | extern int multiboot_timeout;␊ |
56 | extern int multiboot_timeout_set;␊ |
57 | #endif␊ |
58 | ␊ |
59 | ␊ |
60 | // Maximum config table value size␊ |
61 | #define VALUE_SIZE 2048␊ |
62 | ␊ |
63 | #endif /* __BOOT2_OPTIONS_H */ |