]> git.saurik.com Git - apple/xnu.git/blob - pexpert/pexpert/i386/kd_entries.h
953c2f2906a3813d148ba8ab094f1e4f80b2157f
[apple/xnu.git] / pexpert / pexpert / i386 / kd_entries.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 #ifndef _PEXPERT_I386_KD_ENTRIES_H_
24 #define _PEXPERT_I386_KD_ENTRIES_H_
25 /*
26 * @OSF_COPYRIGHT@
27 */
28 typedef int io_return_t;
29 typedef unsigned int dev_mode_t;
30 typedef unsigned int dev_flavor_t;
31 typedef int *dev_status_t;
32
33 extern io_return_t kdopen(
34 dev_t dev,
35 dev_mode_t flag,
36 io_req_t ior);
37 extern void kdclose(
38 dev_t dev);
39 extern io_return_t kdread(
40 dev_t dev,
41 io_req_t ior);
42 extern io_return_t kdwrite(
43 dev_t dev,
44 io_req_t ior);
45 extern vm_offset_t kdmmap(
46 dev_t dev,
47 vm_offset_t off,
48 vm_prot_t prot);
49 extern boolean_t kdportdeath(
50 dev_t dev,
51 ipc_port_t port);
52 extern io_return_t kdgetstat(
53 dev_t dev,
54 dev_flavor_t flavor,
55 dev_status_t data,
56 natural_t *count);
57 extern io_return_t kdsetstat(
58 dev_t dev,
59 dev_flavor_t flavor,
60 dev_status_t data,
61 natural_t count);
62 extern void kd_cmdreg_write(
63 u_char val);
64 extern int kd_mouse_write(
65 u_char val);
66 extern void kd_mouse_read(
67 int no,
68 char * bufp);
69 extern void kd_mouse_drain(void);
70 extern void kdreboot(void);
71 extern void bmpput(
72 csrpos_t pos,
73 char ch,
74 char chattr);
75 extern void bmpmvup(
76 csrpos_t from,
77 csrpos_t to,
78 int count);
79 extern void bmpmvdown(
80 csrpos_t from,
81 csrpos_t to,
82 int count);
83 extern void bmpclear(
84 csrpos_t to,
85 int count,
86 char chattr);
87 extern void bmpsetsetcursor(
88 csrpos_t pos);
89 extern void kd_slmscu(
90 u_char * from,
91 u_char * to,
92 int count);
93 extern void kd_slmscd(
94 u_char * from,
95 u_char * to,
96 int count);
97 extern void kd_slmwd(
98 u_char * pos,
99 int count,
100 u_short val);
101 extern void kd_sendcmd(
102 u_char c);
103
104 #endif /* _PEXPERT_POWERMAC_PDM_H_ */