mly.c (85560) | mly.c (94936) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/mly/mly.c 85560 2001-10-26 18:46:48Z jhb $ | 27 * $FreeBSD: head/sys/dev/mly/mly.c 94936 2002-04-17 13:06:36Z mux $ |
28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/conf.h> --- 1886 unchanged lines hidden (view full) --- 1922 mly_printf(sc, "can't allocate CAM SIM queue\n"); 1923 return(ENOMEM); 1924 } 1925 1926 /* 1927 * If physical channel registration has been requested, register these first. 1928 * Note that we enable tagged command queueing for physical channels. 1929 */ | 28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/conf.h> --- 1886 unchanged lines hidden (view full) --- 1922 mly_printf(sc, "can't allocate CAM SIM queue\n"); 1923 return(ENOMEM); 1924 } 1925 1926 /* 1927 * If physical channel registration has been requested, register these first. 1928 * Note that we enable tagged command queueing for physical channels. 1929 */ |
1930 if (getenv("hw.mly.register_physical_channels") != NULL) { | 1930 if (testenv("hw.mly.register_physical_channels")) { |
1931 chn = 0; 1932 for (i = 0; i < sc->mly_controllerinfo->physical_channels_present; i++, chn++) { 1933 1934 if ((sc->mly_cam_sim[chn] = cam_sim_alloc(mly_cam_action, mly_cam_poll, "mly", sc, 1935 device_get_unit(sc->mly_dev), 1936 sc->mly_controllerinfo->maximum_parallel_commands, 1937 1, devq)) == NULL) { 1938 return(ENOMEM); --- 1004 unchanged lines hidden --- | 1931 chn = 0; 1932 for (i = 0; i < sc->mly_controllerinfo->physical_channels_present; i++, chn++) { 1933 1934 if ((sc->mly_cam_sim[chn] = cam_sim_alloc(mly_cam_action, mly_cam_poll, "mly", sc, 1935 device_get_unit(sc->mly_dev), 1936 sc->mly_controllerinfo->maximum_parallel_commands, 1937 1, devq)) == NULL) { 1938 return(ENOMEM); --- 1004 unchanged lines hidden --- |