diff options
Diffstat (limited to 'sys/dev/isp/ispvar.h')
-rw-r--r-- | sys/dev/isp/ispvar.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h index d7d3ea7..fa30e61 100644 --- a/sys/dev/isp/ispvar.h +++ b/sys/dev/isp/ispvar.h @@ -61,16 +61,16 @@ */ struct ispsoftc; struct ispmdvec { - u_int16_t (*dv_rd_reg) __P((struct ispsoftc *, int)); - void (*dv_wr_reg) __P((struct ispsoftc *, int, u_int16_t)); - int (*dv_mbxdma) __P((struct ispsoftc *)); - int (*dv_dmaset) __P((struct ispsoftc *, - XS_T *, ispreq_t *, u_int16_t *, u_int16_t)); + u_int16_t (*dv_rd_reg) (struct ispsoftc *, int); + void (*dv_wr_reg) (struct ispsoftc *, int, u_int16_t); + int (*dv_mbxdma) (struct ispsoftc *); + int (*dv_dmaset) (struct ispsoftc *, + XS_T *, ispreq_t *, u_int16_t *, u_int16_t); void (*dv_dmaclr) - __P((struct ispsoftc *, XS_T *, u_int16_t)); - void (*dv_reset0) __P((struct ispsoftc *)); - void (*dv_reset1) __P((struct ispsoftc *)); - void (*dv_dregs) __P((struct ispsoftc *, const char *)); + (struct ispsoftc *, XS_T *, u_int16_t); + void (*dv_reset0) (struct ispsoftc *); + void (*dv_reset1) (struct ispsoftc *); + void (*dv_dregs) (struct ispsoftc *, const char *); const u_int16_t *dv_ispfw; /* ptr to f/w */ u_int16_t dv_conf1; u_int16_t dv_clock; /* clock frequency */ @@ -499,27 +499,27 @@ typedef struct ispsoftc { * Reset Hardware. Totally. Assumes that you'll follow this with * a call to isp_init. */ -void isp_reset __P((struct ispsoftc *)); +void isp_reset(struct ispsoftc *); /* * Initialize Hardware to known state */ -void isp_init __P((struct ispsoftc *)); +void isp_init(struct ispsoftc *); /* * Reset the ISP and call completion for any orphaned commands. */ -void isp_reinit __P((struct ispsoftc *)); +void isp_reinit(struct ispsoftc *); /* * Interrupt Service Routine */ -int isp_intr __P((void *)); +int isp_intr(void *); /* * Command Entry Point- Platform Dependent layers call into this */ -int isp_start __P((XS_T *)); +int isp_start(XS_T *); /* these values are what isp_start returns */ #define CMD_COMPLETE 101 /* command completed */ #define CMD_EAGAIN 102 /* busy- maybe retry later */ @@ -529,7 +529,7 @@ int isp_start __P((XS_T *)); /* * Command Completion Point- Core layers call out from this with completed cmds */ -void isp_done __P((XS_T *)); +void isp_done(XS_T *); /* * Platform Dependent to External to Internal Control Function @@ -579,7 +579,7 @@ typedef enum { ISPCTL_RUN_MBOXCMD, /* run a mailbox command */ ISPCTL_TOGGLE_TMODE /* toggle target mode */ } ispctl_t; -int isp_control __P((struct ispsoftc *, ispctl_t, void *)); +int isp_control(struct ispsoftc *, ispctl_t, void *); /* @@ -637,7 +637,7 @@ typedef enum { ISPASYNC_CONF_CHANGE, /* Platform Configuration Change */ ISPASYNC_UNHANDLED_RESPONSE /* Unhandled Response Entry */ } ispasync_t; -int isp_async __P((struct ispsoftc *, ispasync_t, void *)); +int isp_async(struct ispsoftc *, ispasync_t, void *); #define ISPASYNC_CHANGE_PDB ((void *) 0) #define ISPASYNC_CHANGE_SNS ((void *) 1) @@ -647,10 +647,10 @@ int isp_async __P((struct ispsoftc *, ispasync_t, void *)); * Platform Dependent Error and Debug Printout */ #ifdef __GNUC__ -void isp_prt __P((struct ispsoftc *, int level, const char *, ...)) +void isp_prt(struct ispsoftc *, int level, const char *, ...) __attribute__((__format__(__printf__,3,4))); #else -void isp_prt __P((struct ispsoftc *, int level, const char *, ...)); +void isp_prt(struct ispsoftc *, int level, const char *, ...); #endif #define ISP_LOGALL 0x0 /* log always */ |