]> git.saurik.com Git - apple/xnu.git/blame - osfmk/i386/AT386/physmem_entries.h
xnu-344.23.tar.gz
[apple/xnu.git] / osfmk / i386 / AT386 / physmem_entries.h
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
de355530
A
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
1c79356b 11 *
de355530
A
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
de355530
A
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
1c79356b
A
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
23 * @OSF_FREE_COPYRIGHT@
24 */
25/*
26 * HISTORY
27 *
28 * Revision 1.1.1.1 1998/09/22 21:05:39 wsanchez
29 * Import of Mac OS X kernel (~semeria)
30 *
31 * Revision 1.1.1.1 1998/03/07 02:25:38 wsanchez
32 * Import of OSF Mach kernel (~mburg)
33 *
34 * Revision 1.1.4.1 1996/11/29 16:56:56 stephen
35 * nmklinux_1.0b3_shared into pmk1.1
36 * Created. Prototypes for the "physmem" device.
37 * [1996/11/22 15:25:06 barbou]
38 *
39 * $EndLog$
40 */
41
42extern io_return_t physmem_open(
43 dev_t dev,
44 dev_mode_t flag,
45 io_req_t ior);
46extern void physmem_close(
47 dev_t dev);
48extern io_return_t physmem_read(
49 dev_t dev,
50 io_req_t ior);
51extern io_return_t physmem_write(
52 dev_t dev,
53 io_req_t ior);
54extern io_return_t physmem_getstat(
55 dev_t dev,
56 dev_flavor_t flavor,
57 dev_status_t data,
58 mach_msg_type_number_t * count);
59extern io_return_t physmem_setstat(
60 dev_t dev,
61 dev_flavor_t flavor,
62 dev_status_t data,
63 mach_msg_type_number_t count);
64extern vm_offset_t physmem_mmap(
65 dev_t dev,
66 vm_offset_t off,
67 vm_prot_t prot);
68extern io_return_t phsymem_async_in(
69 dev_t dev,
70 ipc_port_t rcv_port,
71 int pri,
72 filter_t *filter,
73 mach_msg_type_number_t fcount,
74 device_t device);
75extern void physmem_reset(
76 dev_t dev);
77extern boolean_t phsymem_port_death(
78 dev_t dev,
79 ipc_port_t port);
80extern io_return_t physmem_dev_info(
81 dev_t dev,
82 dev_flavor_t flavor,
83 char * info);