cam_xpt.c (249470) | cam_xpt.c (249664) |
---|---|
1/*- 2 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998, 1999 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/cam/cam_xpt.c 249470 2013-04-14 10:14:26Z mav $"); | 31__FBSDID("$FreeBSD: head/sys/cam/cam_xpt.c 249664 2013-04-20 00:33:37Z sbruno $"); |
32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/systm.h> 36#include <sys/types.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/time.h> --- 833 unchanged lines hidden (view full) --- 873 TAILQ_INIT(&xsoftc.ccb_scanq); 874 STAILQ_INIT(&xsoftc.highpowerq); 875 xsoftc.num_highpower = CAM_MAX_HIGHPOWER; 876 877 mtx_init(&cam_simq_lock, "CAM SIMQ lock", NULL, MTX_DEF); 878 mtx_init(&xsoftc.xpt_lock, "XPT lock", NULL, MTX_DEF); 879 mtx_init(&xsoftc.xpt_topo_lock, "XPT topology lock", NULL, MTX_DEF); 880 | 32 33#include <sys/param.h> 34#include <sys/bus.h> 35#include <sys/systm.h> 36#include <sys/types.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/time.h> --- 833 unchanged lines hidden (view full) --- 873 TAILQ_INIT(&xsoftc.ccb_scanq); 874 STAILQ_INIT(&xsoftc.highpowerq); 875 xsoftc.num_highpower = CAM_MAX_HIGHPOWER; 876 877 mtx_init(&cam_simq_lock, "CAM SIMQ lock", NULL, MTX_DEF); 878 mtx_init(&xsoftc.xpt_lock, "XPT lock", NULL, MTX_DEF); 879 mtx_init(&xsoftc.xpt_topo_lock, "XPT topology lock", NULL, MTX_DEF); 880 |
881#ifdef CAM_BOOT_DELAY |
|
881 /* | 882 /* |
883 * Override this value at compile time to assist our users 884 * who don't use loader to boot a kernel. 885 */ 886 xsoftc.boot_delay = CAM_BOOT_DELAY; 887#endif 888 /* |
|
882 * The xpt layer is, itself, the equivelent of a SIM. 883 * Allow 16 ccbs in the ccb pool for it. This should 884 * give decent parallelism when we probe busses and 885 * perform other XPT functions. 886 */ 887 devq = cam_simq_alloc(16); 888 xpt_sim = cam_sim_alloc(xptaction, 889 xptpoll, --- 4081 unchanged lines hidden --- | 889 * The xpt layer is, itself, the equivelent of a SIM. 890 * Allow 16 ccbs in the ccb pool for it. This should 891 * give decent parallelism when we probe busses and 892 * perform other XPT functions. 893 */ 894 devq = cam_simq_alloc(16); 895 xpt_sim = cam_sim_alloc(xptaction, 896 xptpoll, --- 4081 unchanged lines hidden --- |