diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-05-06 16:50:04 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:09 +0200 |
commit | 289f62c55e200cfe11c689cb5a0e43240f977e65 (patch) | |
tree | 166fbde15bd51bd868180079a6540cc5e1643d7b | |
parent | 4777d7850b0f4826066a878b81b2223bc375886c (diff) |
2007-05-06 Thomas Schwinge <tschwinge@gnu.org>
* device/buf.h (minphys): Add return type.
* device/device_types_kernel.h: We're not in the eighties anymore...
* device/io_req.h: Likewise.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | device/buf.h | 2 | ||||
-rw-r--r-- | device/device_types_kernel.h | 4 | ||||
-rw-r--r-- | device/io_req.h | 6 |
4 files changed, 12 insertions, 6 deletions
@@ -1,3 +1,9 @@ +2007-05-06 Thomas Schwinge <tschwinge@gnu.org> + + * device/buf.h (minphys): Add return type. + * device/device_types_kernel.h: We're not in the eighties anymore... + * device/io_req.h: Likewise. + 2007-05-05 Thomas Schwinge <tschwinge@gnu.org> * i386/i386at/model_dep.c (halt_cpu, halt_all_cpus): Call 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 |