diff options
author | Matt Jacob <mjacob@FreeBSD.org> | 1998-12-24 06:01:15 +0000 |
---|---|---|
committer | Matt Jacob <mjacob@FreeBSD.org> | 1998-12-24 06:01:15 +0000 |
commit | 5d754af79f5f5d12ac9b21a407fbc70f383586dd (patch) | |
tree | 776800a9098763697f6b208e6e5137975a5d3210 /sys/cam/cam_xpt.c | |
parent | f5457f7c86468b333d7f3104758fc1a990088d4a (diff) | |
download | src-5d754af79f5f5d12ac9b21a407fbc70f383586dd.tar.gz src-5d754af79f5f5d12ac9b21a407fbc70f383586dd.zip |
a more correct change that should meet the sniff test
Notes
Notes:
svn path=/head/; revision=42038
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 598cf5ee7b47..ac1de3d50bc7 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cam_xpt.c,v 1.31 1998/12/22 20:05:21 eivind Exp $ + * $Id: cam_xpt.c,v 1.32 1998/12/24 02:43:41 mjacob Exp $ */ #include <sys/param.h> #include <sys/systm.h> @@ -38,6 +38,7 @@ #include <sys/fcntl.h> #include <sys/md5.h> #include <sys/devicestat.h> +#include <sys/interrupt.h> #ifdef PC98 #include <pc98/pc98/pc98_machdep.h> /* geometry translation */ @@ -572,8 +573,8 @@ static xpt_devicefunc_t xptfinishconfigfunc; static xpt_devicefunc_t xptpassannouncefunc; static void xpt_finishconfig(struct cam_periph *periph, union ccb *ccb); static void xptaction(struct cam_sim *sim, union ccb *work_ccb); - void swi_camnet(void); - void swi_cambio(void); +static swihand_t swi_camnet; +static swihand_t swi_cambio; static void camisr(cam_isrq_t *queue); #if 0 static void xptstart(struct cam_periph *periph, union ccb *work_ccb); @@ -1198,11 +1199,8 @@ xpt_init() } /* Install our software interrupt handlers */ - /* XXX Should call some MI function to do this */ -#ifdef __i386__ - ihandlers[SWI_CAMNET] = swi_camnet; - ihandlers[SWI_CAMBIO] = swi_cambio; -#endif + register_swi(SWI_CAMNET, swi_camnet); + register_swi(SWI_CAMBIO, swi_cambio); } static cam_status @@ -5783,18 +5781,16 @@ xptaction(struct cam_sim *sim, union ccb *work_ccb) /* * Should only be called by the machine interrupt dispatch routines, * so put these prototypes here instead of in the header. - * - * XXX we should really have a way to dynamically register SWI handlers. */ -void -swi_camnet() +static void +swi_camnet(void) { camisr(&cam_netq); } -void -swi_cambio() +static void +swi_cambio(void) { camisr(&cam_bioq); } |