Deleted Added
full compact
ciss.c (102291) ciss.c (104094)
1/*-
2 * Copyright (c) 2001 Michael Smith
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) 2001 Michael Smith
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/ciss/ciss.c 102291 2002-08-22 21:24:01Z archie $
26 * $FreeBSD: head/sys/dev/ciss/ciss.c 104094 2002-09-28 17:15:38Z phk $
27 */
28
29/*
30 * Common Interface for SCSI-3 Support driver.
31 *
32 * CISS claims to provide a common interface between a generic SCSI
33 * transport and an intelligent host adapter.
34 *

--- 2439 unchanged lines hidden (view full) ---

2474 return(periph);
2475}
2476
2477/********************************************************************************
2478 * Name the device at (target)
2479 *
2480 * XXX is this strictly correct?
2481 */
27 */
28
29/*
30 * Common Interface for SCSI-3 Support driver.
31 *
32 * CISS claims to provide a common interface between a generic SCSI
33 * transport and an intelligent host adapter.
34 *

--- 2439 unchanged lines hidden (view full) ---

2474 return(periph);
2475}
2476
2477/********************************************************************************
2478 * Name the device at (target)
2479 *
2480 * XXX is this strictly correct?
2481 */
2482int
2482static int
2483ciss_name_device(struct ciss_softc *sc, int target)
2484{
2485 struct cam_periph *periph;
2486
2487 if ((periph = ciss_find_periph(sc, target)) != NULL) {
2488 sprintf(sc->ciss_logical[target].cl_name, "%s%d", periph->periph_name, periph->unit_number);
2489 return(0);
2490 }

--- 949 unchanged lines hidden ---
2483ciss_name_device(struct ciss_softc *sc, int target)
2484{
2485 struct cam_periph *periph;
2486
2487 if ((periph = ciss_find_periph(sc, target)) != NULL) {
2488 sprintf(sc->ciss_logical[target].cl_name, "%s%d", periph->periph_name, periph->unit_number);
2489 return(0);
2490 }

--- 949 unchanged lines hidden ---