summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/buf.h2
-rw-r--r--device/device_types_kernel.h4
-rw-r--r--device/io_req.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/device/buf.h b/device/buf.h
index cf53880..80466c8 100644
--- a/device/buf.h
+++ b/device/buf.h
@@ -93,7 +93,7 @@
/*
* Export standard minphys routine.
*/
-extern minphys(io_req_t);
+extern void minphys(io_req_t);
/*
* Alternate name for iodone
diff --git a/device/device_types_kernel.h b/device/device_types_kernel.h
index c9698b1..87ce00f 100644
--- a/device/device_types_kernel.h
+++ b/device/device_types_kernel.h
@@ -38,7 +38,7 @@
#include <mach/port.h>
#include <device/dev_hdr.h>
-extern device_t dev_port_lookup(/* struct ipc_port * */);
-extern struct ipc_port *convert_device_to_port(/* device_t */);
+extern device_t dev_port_lookup(ipc_port_t);
+extern ipc_port_t convert_device_to_port(device_t);
#endif /* _DEVICE_DEVICE_TYPES_KERNEL_H_ */
diff --git a/device/io_req.h b/device/io_req.h
index 4d249c6..5988f55 100644
--- a/device/io_req.h
+++ b/device/io_req.h
@@ -46,6 +46,7 @@
/*
* IO request element, queued on device for delayed replies.
*/
+typedef struct io_req *io_req_t;
struct io_req {
struct io_req * io_next; /* next, ... */
struct io_req * io_prev; /* prev pointers: link in done,
@@ -68,8 +69,8 @@ struct io_req {
long io_alloc_size; /* amount allocated */
long io_residual; /* amount NOT done */
io_return_t io_error; /* error code */
- boolean_t (*io_done)(); /* call when done - returns TRUE
- if IO really finished */
+ /* call when done - returns TRUE if IO really finished */
+ boolean_t (*io_done)(io_req_t);
struct ipc_port *io_reply_port; /* reply port, for asynchronous
messages */
mach_msg_type_name_t io_reply_port_type;
@@ -84,7 +85,6 @@ struct io_req {
number */
long io_rectotal; /* total number of blocks to move */
};
-typedef struct io_req * io_req_t;
/*
* LOCKING NOTE: Operations on io_req's are in general single threaded by