vpo.c (94154) | vpo.c (109623) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 Nicolas Souchu 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997, 1998, 1999 Nicolas Souchu 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/ppbus/vpo.c 94154 2002-04-07 22:06:20Z ticso $ | 26 * $FreeBSD: head/sys/dev/ppbus/vpo.c 109623 2003-01-21 08:56:16Z alfred $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/module.h> 32#include <sys/bus.h> 33#include <sys/malloc.h> 34#include <sys/devicestat.h> /* for struct devstat */ --- 146 unchanged lines hidden (view full) --- 181{ 182 free(ccb, M_TEMP); 183} 184 185static void 186vpo_cam_rescan(struct vpo_data *vpo) 187{ 188 struct cam_path *path; | 27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/module.h> 32#include <sys/bus.h> 33#include <sys/malloc.h> 34#include <sys/devicestat.h> /* for struct devstat */ --- 146 unchanged lines hidden (view full) --- 181{ 182 free(ccb, M_TEMP); 183} 184 185static void 186vpo_cam_rescan(struct vpo_data *vpo) 187{ 188 struct cam_path *path; |
189 union ccb *ccb = malloc(sizeof(union ccb), M_TEMP, M_WAITOK | M_ZERO); | 189 union ccb *ccb = malloc(sizeof(union ccb), M_TEMP, M_ZERO); |
190 191 if (xpt_create_path(&path, xpt_periph, cam_sim_path(vpo->sim), 0, 0) 192 != CAM_REQ_CMP) { 193 /* A failure is benign as the user can do a manual rescan */ 194 return; 195 } 196 197 xpt_setup_ccb(&ccb->ccb_h, path, 5/*priority (low)*/); --- 266 unchanged lines hidden --- | 190 191 if (xpt_create_path(&path, xpt_periph, cam_sim_path(vpo->sim), 0, 0) 192 != CAM_REQ_CMP) { 193 /* A failure is benign as the user can do a manual rescan */ 194 return; 195 } 196 197 xpt_setup_ccb(&ccb->ccb_h, path, 5/*priority (low)*/); --- 266 unchanged lines hidden --- |