From aace7c9e2f2343fb1a04ae8d7e0c0847d1b5ba3d Mon Sep 17 00:00:00 2001 From: mjacob Date: Sun, 16 Jun 2002 04:54:46 +0000 Subject: Set default command count to 0xfe. This tells the f/w essentially to *not* do flow control based upon resource counts for the firmware. Increase default immediate notify count to 16. Change isp_target_async to a function returning an integer. --- sys/dev/isp/isp_target.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/dev/isp') diff --git a/sys/dev/isp/isp_target.h b/sys/dev/isp/isp_target.h index 5362987..c59e59a 100644 --- a/sys/dev/isp/isp_target.h +++ b/sys/dev/isp/isp_target.h @@ -523,8 +523,8 @@ int isp_target_notify(struct ispsoftc *, void *, u_int16_t *); * Enable/Disable/Modify a logical unit. * (softc, cmd, bus, tgt, lun, cmd_cnt, inotify_cnt, opaque) */ -#define DFLT_CMND_CNT 32 -#define DFLT_INOT_CNT 4 +#define DFLT_CMND_CNT 0xfe /* unmonitored */ +#define DFLT_INOT_CNT 16 int isp_lun_cmd(struct ispsoftc *, int, int, int, int, int, int, u_int32_t); /* @@ -549,8 +549,10 @@ int isp_endcmd(struct ispsoftc *, void *, u_int32_t, u_int16_t); /* * Handle an asynchronous event + * + * Return nonzero if the interrupt that generated this event has been dismissed. */ -void isp_target_async(struct ispsoftc *, int, int); +int isp_target_async(struct ispsoftc *, int, int); #endif #endif /* _ISP_TARGET_H */ -- cgit v1.1