|
|
1.1 root 1: /*
2: * Mach Operating System
3: * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4: * All Rights Reserved.
5: *
6: * Permission to use, copy, modify and distribute this software and its
7: * documentation is hereby granted, provided that both the copyright
8: * notice and this permission notice appear in all copies of the
9: * software, derivative works or modified versions, and any portions
10: * thereof, and that both notices appear in supporting documentation.
11: *
12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15: *
16: * Carnegie Mellon requests users of this software to return to
17: *
18: * Software Distribution Coordinator or [email protected]
19: * School of Computer Science
20: * Carnegie Mellon University
21: * Pittsburgh PA 15213-3890
22: *
23: * any improvements or extensions that they make and grant Carnegie Mellon
24: * the rights to redistribute these changes.
25: */
26: /*
27: * Author: David B. Golub, Carnegie Mellon University
28: * Date: 8/89
29: *
30: * Request-only side of device interface.
31: */
32:
33: subsystem device_request 2800; /* to match device.defs */
34:
35: #include <device/device_types.defs>
36:
37: serverprefix ds_;
38:
39: type reply_port_t = MACH_MSG_TYPE_MAKE_SEND_ONCE
1.1.1.2 ! root 40: ctype: mach_port_t
! 41: #ifndef KERNEL_SERVER
! 42: #ifdef MACH_PAYLOAD_TO_PORT
! 43: intranpayload: mach_port_t MACH_PAYLOAD_TO_PORT
! 44: #endif /* MACH_PAYLOAD_TO_PORT */
! 45: #endif /* KERNEL_SERVER */
! 46: ;
1.1 root 47:
48: simpleroutine device_open_request(
49: device_server_port : mach_port_t;
50: ureplyport reply_port : reply_port_t;
51: in mode : dev_mode_t;
52: in name : dev_name_t
53: );
54:
55: skip; /* device_close */
56:
57: simpleroutine device_write_request(
58: device : device_t;
59: ureplyport reply_port : reply_port_t;
60: in mode : dev_mode_t;
61: in recnum : recnum_t;
62: in data : io_buf_ptr_t
63: );
64:
65: simpleroutine device_write_request_inband(
66: device : device_t;
67: ureplyport reply_port : reply_port_t;
68: in mode : dev_mode_t;
69: in recnum : recnum_t;
70: in data : io_buf_ptr_inband_t
71: );
72:
73: simpleroutine device_read_request(
74: device : device_t;
75: ureplyport reply_port : reply_port_t;
76: in mode : dev_mode_t;
77: in recnum : recnum_t;
78: in bytes_wanted : int
79: );
80:
81: simpleroutine device_read_request_inband(
82: device : device_t;
83: ureplyport reply_port : reply_port_t;
84: in mode : dev_mode_t;
85: in recnum : recnum_t;
86: in bytes_wanted : int
87: );
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.