]>
git.saurik.com Git - apple/bootx.git/blob - bootx.tproj/include.subproj/sl_words.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
23 * @APPLE_LICENSE_HEADER_END@
26 * sl_words.h - Headers for the Secondary Loader Words.
28 * Copyright (c) 1998-2000 Apple Computer, Inc.
33 #ifndef _BOOTX_SL_WORDS_H_
34 #define _BOOTX_SL_WORDS_H_
38 // The iHandle for the SL Words.
39 extern CICell SLWordsIH
;
41 // Call InitSLWords before using SLWordsIH.
42 // outputLevel is used to supress output.
45 // 2 - SLW's emit and cr.
47 extern long InitSLWords(void);
52 // slw_set_output_level ( level -- )
53 // set the current output level.
54 extern void SetOutputLevel(long level
);
56 // slw_emit ( ch -- ) Output Level: 2
57 // calls emit ( ch -- )
58 extern void Emit(char ch
);
60 // slw_cr ( -- ) Output Level: 2
64 // slw_init_keymap ( keyboardIH -- keyMap )
65 // sets the ihandle for the keyboard and
66 // puts the address of the keyMap on the stack
67 extern char *InitKeyMap(CICell keyboardIH
);
69 // slw_update_keymap ( -- )
70 // Called by slw_spin to make sure all the keys are caught.
71 extern void UpdateKeyMap(void);
73 // slw_spin_init ( screenIH cursorAddr cursorX cursorY cursorW cursorH --)
74 // Sets up the wait cursor.
75 extern 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
);
82 // Spins the wait cursor.
83 extern void Spin(void);
85 extern long GetPackageProperty(CICell phandle
, char *propName
,
86 char **propAddr
, long *propLen
);
88 // slw_pwd ( phandle addr len -- act )
89 // does pwd the hard way.
95 does a simple stack crawl.
101 #endif /* ! _BOOTX_SL_WORDS_H_ */