]> git.saurik.com Git - apple/bootx.git/blame - bootx.tproj/include.subproj/sl_words.h
BootX-59.tar.gz
[apple/bootx.git] / bootx.tproj / include.subproj / sl_words.h
CommitLineData
04fee52e
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
db839b1d 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
04fee52e 7 *
db839b1d
A
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
04fee52e
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
db839b1d
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
04fee52e
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/*
26 * sl_words.h - Headers for the Secondary Loader Words.
27 *
28 * Copyright (c) 1998-2000 Apple Computer, Inc.
29 *
30 * DRI: Josh de Cesare
31 */
32
33#ifndef _BOOTX_SL_WORDS_H_
34#define _BOOTX_SL_WORDS_H_
35
36#include <ci.h>
37
38// The iHandle for the SL Words.
39extern CICell SLWordsIH;
40
41// Call InitSLWords before using SLWordsIH.
42// outputLevel is used to supress output.
43// 0 - all off
44// 1 - OF stdout only
45// 2 - SLW's emit and cr.
46// 3 - ???
366defd1 47extern long InitSLWords(void);
04fee52e
A
48
49
50// Suported words.
51
52// slw_set_output_level ( level -- )
53// set the current output level.
54extern void SetOutputLevel(long level);
55
56// slw_emit ( ch -- ) Output Level: 2
57// calls emit ( ch -- )
58extern void Emit(char ch);
59
60// slw_cr ( -- ) Output Level: 2
61// calls cr ( -- )
62extern void CR(void);
63
64// slw_init_keymap ( keyboardIH -- keyMap )
65// sets the ihandle for the keyboard and
66// puts the address of the keyMap on the stack
67extern char *InitKeyMap(CICell keyboardIH);
68
69// slw_update_keymap ( -- )
70// Called by slw_spin to make sure all the keys are caught.
71extern void UpdateKeyMap(void);
72
73// slw_spin_init ( screenIH cursorAddr cursorX cursorY cursorW cursorH --)
04fee52e 74// Sets up the wait cursor.
366defd1
A
75extern void SpinInit(CICell screenIH, char *cursorAddr,
76 long cursorX, long cursorY,
77 long cursorW, long cursorH,
78 long frames, long fps,
79 long pixelSize, long spare);
04fee52e
A
80
81// slw_spin ( -- )
82// Spins the wait cursor.
83extern void Spin(void);
84
85extern long GetPackageProperty(CICell phandle, char *propName,
86 char **propAddr, long *propLen);
87
88// slw_pwd ( phandle addr len -- act )
89// does pwd the hard way.
90
91#define SL_DEBUG (0)
92
93/*
94 .sc ( -- )
95 does a simple stack crawl.
96
97
98
99 */
100
101#endif /* ! _BOOTX_SL_WORDS_H_ */