adwcam.c (267340) | adwcam.c (274819) |
---|---|
1/*- 2 * CAM SCSI interface for the Advanced Systems Inc. 3 * Second Generation SCSI controllers. 4 * 5 * Product specific probe and attach routines can be found in: 6 * 7 * adw_pci.c ABP[3]940UW, ABP950UW, ABP3940U2W 8 * --- 30 unchanged lines hidden (view full) --- 39 * 40 * Redistribution and use in source and binary forms, with or without 41 * modification, are permitted provided that redistributions of source 42 * code retain the above copyright notice and this comment without 43 * modification. 44 */ 45 46#include <sys/cdefs.h> | 1/*- 2 * CAM SCSI interface for the Advanced Systems Inc. 3 * Second Generation SCSI controllers. 4 * 5 * Product specific probe and attach routines can be found in: 6 * 7 * adw_pci.c ABP[3]940UW, ABP950UW, ABP3940U2W 8 * --- 30 unchanged lines hidden (view full) --- 39 * 40 * Redistribution and use in source and binary forms, with or without 41 * modification, are permitted provided that redistributions of source 42 * code retain the above copyright notice and this comment without 43 * modification. 44 */ 45 46#include <sys/cdefs.h> |
47__FBSDID("$FreeBSD: head/sys/dev/advansys/adwcam.c 267340 2014-06-10 20:25:45Z jhb $"); | 47__FBSDID("$FreeBSD: head/sys/dev/advansys/adwcam.c 274819 2014-11-21 21:01:24Z smh $"); |
48 49#include <sys/param.h> 50#include <sys/conf.h> 51#include <sys/systm.h> 52#include <sys/kernel.h> 53#include <sys/malloc.h> 54#include <sys/lock.h> 55#include <sys/module.h> --- 261 unchanged lines hidden (view full) --- 317 adwfreeacb(adw, acb); 318 xpt_done(ccb); 319 return; 320 } 321 322 acb->state |= ACB_ACTIVE; 323 ccb->ccb_h.status |= CAM_SIM_QUEUED; 324 LIST_INSERT_HEAD(&adw->pending_ccbs, &ccb->ccb_h, sim_links.le); | 48 49#include <sys/param.h> 50#include <sys/conf.h> 51#include <sys/systm.h> 52#include <sys/kernel.h> 53#include <sys/malloc.h> 54#include <sys/lock.h> 55#include <sys/module.h> --- 261 unchanged lines hidden (view full) --- 317 adwfreeacb(adw, acb); 318 xpt_done(ccb); 319 return; 320 } 321 322 acb->state |= ACB_ACTIVE; 323 ccb->ccb_h.status |= CAM_SIM_QUEUED; 324 LIST_INSERT_HEAD(&adw->pending_ccbs, &ccb->ccb_h, sim_links.le); |
325 callout_reset(&acb->timer, (ccb->ccb_h.timeout * hz) / 1000, 326 adwtimeout, acb); | 325 callout_reset_sbt(&acb->timer, SBT_1MS * ccb->ccb_h.timeout, 0, 326 adwtimeout, acb, 0); |
327 328 adw_send_acb(adw, acb, acbvtob(adw, acb)); 329} 330 331static void 332adw_action(struct cam_sim *sim, union ccb *ccb) 333{ 334 struct adw_softc *adw; --- 1170 unchanged lines hidden --- | 327 328 adw_send_acb(adw, acb, acbvtob(adw, acb)); 329} 330 331static void 332adw_action(struct cam_sim *sim, union ccb *ccb) 333{ 334 struct adw_softc *adw; --- 1170 unchanged lines hidden --- |