diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-09 17:46:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-09 17:46:35 +0000 |
commit | b30904d8405e0fc49c1043759a015628e89a2a2c (patch) | |
tree | d044a3ac558b84ef586376cd72c3d4f76db77509 /sys/cam/cam_xpt.c | |
parent | 1b1c815619bd7dd106cc79a9144b32c38284b829 (diff) | |
download | FreeBSD-src-b30904d8405e0fc49c1043759a015628e89a2a2c.zip FreeBSD-src-b30904d8405e0fc49c1043759a015628e89a2a2c.tar.gz |
- Catch up to the new swi API changes:
- Use swi_* function names.
- Use void * to hold cookies to handlers instead of struct intrhand *.
- In sio.c, use 'driver_name' instead of "sio" as the name of the driver
lock to minimize diffs with cy(4).
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 8e8a49b..39cf22f 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -616,8 +616,8 @@ u_int32_t cam_debug_delay; #endif /* Pointers to software interrupt handlers */ -struct intrhand *camnet_ih; -struct intrhand *cambio_ih; +void *camnet_ih; +void *cambio_ih; #if defined(CAM_DEBUG_FLAGS) && !defined(CAMDEBUG) #error "You must have options CAMDEBUG to use options CAM_DEBUG_FLAGS" @@ -1381,10 +1381,8 @@ xpt_init(dummy) } /* Install our software interrupt handlers */ - camnet_ih = sinthand_add("camnet", NULL, camisr, &cam_netq, - SWI_CAMNET, 0); - cambio_ih = sinthand_add("cambio", NULL, camisr, &cam_bioq, - SWI_CAMBIO, 0); + swi_add(NULL, "camnet", camisr, &cam_netq, SWI_CAMNET, 0, &camnet_ih); + swi_add(NULL, "cambio", camisr, &cam_bioq, SWI_CAMBIO, 0, &cambio_ih); } static cam_status @@ -4561,13 +4559,13 @@ xpt_done(union ccb *done_ccb) TAILQ_INSERT_TAIL(&cam_bioq, &done_ccb->ccb_h, sim_links.tqe); done_ccb->ccb_h.pinfo.index = CAM_DONEQ_INDEX; - sched_swi(cambio_ih, SWI_NOSWITCH); + swi_sched(cambio_ih, SWI_NOSWITCH); break; case CAM_PERIPH_NET: TAILQ_INSERT_TAIL(&cam_netq, &done_ccb->ccb_h, sim_links.tqe); done_ccb->ccb_h.pinfo.index = CAM_DONEQ_INDEX; - sched_swi(camnet_ih, SWI_NOSWITCH); + swi_sched(camnet_ih, SWI_NOSWITCH); break; } } |