]> git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/pe_images.h
b2ef26ad1b45bfcfa3acdf3164477ea03dfaaa64
[apple/xnu.git] / pexpert / pexpert / pe_images.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 #include <pexpert/GearImage.h>
25
26
27 // XXX #warning shared video_console.c
28 struct vc_progress_element {
29 unsigned int version;
30 unsigned int flags;
31 unsigned int time;
32 unsigned char count;
33 unsigned char res[3];
34 int width;
35 int height;
36 int dx;
37 int dy;
38 int transparent;
39 unsigned int res2[3];
40 };
41 typedef struct vc_progress_element vc_progress_element;
42
43 struct boot_progress_element {
44 unsigned int width;
45 unsigned int height;
46 int yOffset;
47 unsigned int res[5];
48 unsigned char data[0];
49 };
50 typedef struct boot_progress_element boot_progress_element;
51
52
53 static const unsigned char * default_progress_data = gGearPict;
54 static const unsigned char * default_noroot_data = 0;
55
56 static vc_progress_element default_progress =
57 { 0, 4|1, 1000 / kGearFPS, kGearFrames, {0, 0, 0},
58 kGearWidth, kGearHeight, 0, kGearOffset,
59 0, {0, 0, 0} };
60
61 static vc_progress_element default_noroot =
62 { 0, 1, 0, 0, {0, 0, 0},
63 128, 128, 0, 0,
64 -1, {0, 0, 0} };