summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-21 12:55:26 +0000
committerbde <bde@FreeBSD.org>1995-11-21 12:55:26 +0000
commit24ce87cc75daff742416402eb15baa8a2445fb87 (patch)
treecccb12ba068b651660e03742d946e8b53d952db7 /sys/pc98
parent14d44cd2d7bf837c55a5c3bf55ab4eadbc48aad8 (diff)
downloadFreeBSD-src-24ce87cc75daff742416402eb15baa8a2445fb87.zip
FreeBSD-src-24ce87cc75daff742416402eb15baa8a2445fb87.tar.gz
Completed function declarations and/or added prototypes.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/pc98/atapi.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/pc98/pc98/atapi.h b/sys/pc98/pc98/atapi.h
index f22a5a2..875a5c9 100644
--- a/sys/pc98/pc98/atapi.h
+++ b/sys/pc98/pc98/atapi.h
@@ -198,6 +198,9 @@ struct atapidrv { /* delayed attach info */
struct kern_devconf *parent; /* the devconf info pattern */
};
+struct wcd;
+typedef void atapi_callback_t(struct wcd *, struct buf *, int, struct atapires);
+
struct atapicmd { /* ATAPI command block */
struct atapicmd *next; /* next command in queue */
int busy; /* busy flag */
@@ -205,7 +208,7 @@ struct atapicmd { /* ATAPI command block */
int unit; /* drive unit number */
int count; /* byte count, >0 - read, <0 - write */
char *addr; /* data to transfer */
- void (*callback) (); /* call when done */
+ atapi_callback_t *callback; /* call when done */
void *cbarg1; /* callback arg 1 */
void *cbarg2; /* callback arg 1 */
struct atapires result; /* resulting error code */
@@ -260,7 +263,7 @@ void atapi_request_callback (struct atapi *ata, int unit,
u_char cmd, u_char a1, u_char a2, u_char a3, u_char a4,
u_char a5, u_char a6, u_char a7, u_char a8, u_char a9,
u_char a10, u_char a11, u_char a12, u_char a13, u_char a14, u_char a15,
- char *addr, int count, void (*done)(), void *x, void *y);
+ char *addr, int count, atapi_callback_t *done, void *x, void *y);
struct atapires atapi_request_immediate (struct atapi *ata, int unit,
u_char cmd, u_char a1, u_char a2, u_char a3, u_char a4,
u_char a5, u_char a6, u_char a7, u_char a8, u_char a9,
OpenPOWER on IntegriCloud