bt.c (166901) | bt.c (168752) |
---|---|
1/*- 2 * Generic driver for the BusLogic MultiMaster SCSI host adapters 3 * Product specific probe and attach routines can be found in: 4 * sys/dev/buslogic/bt_isa.c BT-54X, BT-445 cards 5 * sys/dev/buslogic/bt_mca.c BT-64X, SDC3211B, SDC3211F 6 * sys/dev/buslogic/bt_eisa.c BT-74X, BT-75x cards, SDC3222F 7 * sys/dev/buslogic/bt_pci.c BT-946, BT-948, BT-956, BT-958 cards 8 * --- 18 unchanged lines hidden (view full) --- 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Generic driver for the BusLogic MultiMaster SCSI host adapters 3 * Product specific probe and attach routines can be found in: 4 * sys/dev/buslogic/bt_isa.c BT-54X, BT-445 cards 5 * sys/dev/buslogic/bt_mca.c BT-64X, SDC3211B, SDC3211F 6 * sys/dev/buslogic/bt_eisa.c BT-74X, BT-75x cards, SDC3222F 7 * sys/dev/buslogic/bt_pci.c BT-946, BT-948, BT-956, BT-958 cards 8 * --- 18 unchanged lines hidden (view full) --- 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/dev/buslogic/bt.c 166901 2007-02-23 12:19:07Z piso $"); | 35__FBSDID("$FreeBSD: head/sys/dev/buslogic/bt.c 168752 2007-04-15 08:49:19Z scottl $"); |
36 37 /* 38 * Special thanks to Leonard N. Zubkoff for writing such a complete and 39 * well documented Mylex/BusLogic MultiMaster driver for Linux. Support 40 * in this driver for the wide range of MultiMaster controllers and 41 * firmware revisions, with their otherwise undocumented quirks, would not 42 * have been possible without his efforts. 43 */ --- 825 unchanged lines hidden (view full) --- 869 devq = cam_simq_alloc(bt->max_ccbs - 1); 870 if (devq == NULL) 871 return (ENOMEM); 872 873 /* 874 * Construct our SIM entry 875 */ 876 bt->sim = cam_sim_alloc(btaction, btpoll, "bt", bt, bt->unit, | 36 37 /* 38 * Special thanks to Leonard N. Zubkoff for writing such a complete and 39 * well documented Mylex/BusLogic MultiMaster driver for Linux. Support 40 * in this driver for the wide range of MultiMaster controllers and 41 * firmware revisions, with their otherwise undocumented quirks, would not 42 * have been possible without his efforts. 43 */ --- 825 unchanged lines hidden (view full) --- 869 devq = cam_simq_alloc(bt->max_ccbs - 1); 870 if (devq == NULL) 871 return (ENOMEM); 872 873 /* 874 * Construct our SIM entry 875 */ 876 bt->sim = cam_sim_alloc(btaction, btpoll, "bt", bt, bt->unit, |
877 2, tagged_dev_openings, devq); | 877 &Giant, 2, tagged_dev_openings, devq); |
878 if (bt->sim == NULL) { 879 cam_simq_free(devq); 880 return (ENOMEM); 881 } 882 883 if (xpt_bus_register(bt->sim, 0) != CAM_SUCCESS) { 884 cam_sim_free(bt->sim, /*free_devq*/TRUE); 885 return (ENXIO); --- 1544 unchanged lines hidden --- | 878 if (bt->sim == NULL) { 879 cam_simq_free(devq); 880 return (ENOMEM); 881 } 882 883 if (xpt_bus_register(bt->sim, 0) != CAM_SUCCESS) { 884 cam_sim_free(bt->sim, /*free_devq*/TRUE); 885 return (ENXIO); --- 1544 unchanged lines hidden --- |