adwcam.c (166901) | adwcam.c (168752) |
---|---|
1/*- 2 * CAM SCSI interface for the 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 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 166901 2007-02-23 12:19:07Z piso $"); | 47__FBSDID("$FreeBSD: head/sys/dev/advansys/adwcam.c 168752 2007-04-15 08:49:19Z scottl $"); |
48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/malloc.h> 53#include <sys/lock.h> 54#include <sys/module.h> 55#include <sys/mutex.h> --- 1173 unchanged lines hidden (view full) --- 1229 devq = cam_simq_alloc(adw->max_acbs); 1230 if (devq == NULL) 1231 return (ENOMEM); 1232 1233 /* 1234 * Construct our SIM entry. 1235 */ 1236 adw->sim = cam_sim_alloc(adw_action, adw_poll, "adw", adw, adw->unit, | 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/malloc.h> 53#include <sys/lock.h> 54#include <sys/module.h> 55#include <sys/mutex.h> --- 1173 unchanged lines hidden (view full) --- 1229 devq = cam_simq_alloc(adw->max_acbs); 1230 if (devq == NULL) 1231 return (ENOMEM); 1232 1233 /* 1234 * Construct our SIM entry. 1235 */ 1236 adw->sim = cam_sim_alloc(adw_action, adw_poll, "adw", adw, adw->unit, |
1237 1, adw->max_acbs, devq); | 1237 &Giant, 1, adw->max_acbs, devq); |
1238 if (adw->sim == NULL) { 1239 error = ENOMEM; 1240 goto fail; 1241 } 1242 1243 /* 1244 * Register the bus. 1245 */ --- 340 unchanged lines hidden --- | 1238 if (adw->sim == NULL) { 1239 error = ENOMEM; 1240 goto fail; 1241 } 1242 1243 /* 1244 * Register the bus. 1245 */ --- 340 unchanged lines hidden --- |