xref: /NextBSD/sys/sys/mach/device/device_types_kernel.h (revision 33da5adc555b3bc29986eeadca03829e4ad06b1e)
1 /*
2  * Copyright 1991-1998 by Open Software Foundation, Inc.
3  *              All Rights Reserved
4  *
5  * Permission to use, copy, modify, and distribute this software and
6  * its documentation for any purpose and without fee is hereby granted,
7  * provided that the above copyright notice appears in all copies and
8  * that both the copyright notice and this permission notice appear in
9  * supporting documentation.
10  *
11  * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
12  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13  * FOR A PARTICULAR PURPOSE.
14  *
15  * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
16  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
18  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
19  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20  */
21 /*
22  * MkLinux
23  */
24 /* CMU_HIST */
25 /*
26  * Revision 2.6  91/06/25  10:26:46  rpd
27  * 	Changed the convert_foo_to_bar functions
28  * 	to use ipc_port_t instead of mach_port_t.
29  * 	[91/05/27            rpd]
30  *
31  * Revision 2.5  91/05/14  15:43:37  mrt
32  * 	Correcting copyright
33  *
34  * Revision 2.4  91/02/05  17:09:18  mrt
35  * 	Changed to new Mach copyright
36  * 	[91/01/31  17:28:48  mrt]
37  *
38  * Revision 2.3  90/06/02  14:47:56  rpd
39  * 	Converted to new IPC.
40  * 	[90/03/26  21:54:19  rpd]
41  *
42  * Revision 2.2  89/09/08  11:24:03  dbg
43  * 	Created.
44  * 	[89/08/01            dbg]
45  *
46  */
47 /* CMU_ENDHIST */
48 /*
49  * Mach Operating System
50  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
51  * All Rights Reserved.
52  *
53  * Permission to use, copy, modify and distribute this software and its
54  * documentation is hereby granted, provided that both the copyright
55  * notice and this permission notice appear in all copies of the
56  * software, derivative works or modified versions, and any portions
57  * thereof, and that both notices appear in supporting documentation.
58  *
59  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
60  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
61  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
62  *
63  * Carnegie Mellon requests users of this software to return to
64  *
65  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
66  *  School of Computer Science
67  *  Carnegie Mellon University
68  *  Pittsburgh PA 15213-3890
69  *
70  * any improvements or extensions that they make and grant Carnegie Mellon
71  * the rights to redistribute these changes.
72  */
73 /*
74  */
75 /*
76  *	Author: David B. Golub, Carnegie Mellon University
77  *	Date: 	8/89
78  */
79 
80 #ifndef	_DEVICE_DEVICE_TYPES_KERNEL_H_
81 #define	_DEVICE_DEVICE_TYPES_KERNEL_H_
82 
83 /*
84  * Kernel-only type definitions for device server.
85  */
86 
87 #include <mach/port.h>
88 #include <device/dev_hdr.h>
89 
90 extern device_t		dev_port_lookup(
91 					ipc_port_t	port);
92 extern struct ipc_port	*convert_device_to_port(
93 					device_t	dev);
94 extern struct ipc_port	*mach_convert_device_to_port(
95 					void		*dev);
96 extern io_done_queue_t	io_done_queue_port_lookup(
97 					ipc_port_t	port);
98 extern struct ipc_port	*convert_io_done_queue_to_port(
99 					io_done_queue_t	queue);
100 
101 #endif	/* _DEVICE_DEVICE_TYPES_KERNEL_H_ */
102