Deleted Added
full compact
scsi_cd.c (89114) scsi_cd.c (90868)
1/*
2 * Copyright (c) 1997 Justin T. Gibbs.
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001 Kenneth D. Merry.
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 * 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) 1997 Justin T. Gibbs.
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001 Kenneth D. Merry.
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 * 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/cam/scsi/scsi_cd.c 89114 2002-01-09 03:39:04Z msmith $
27 * $FreeBSD: head/sys/cam/scsi/scsi_cd.c 90868 2002-02-18 20:35:27Z mike $
28 */
29/*
30 * Portions of this driver taken from the original FreeBSD cd driver.
31 * Written by Julian Elischer (julian@tfs.com)
32 * for TRW Financial Systems for use under the MACH(2.5) operating system.
33 *
34 * TRW Financial Systems, in accordance with their agreement with Carnegie
35 * Mellon University, makes this software available to CMU to distribute

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

1986 if (softc->quirks & CD_Q_BCD_TRACKS) {
1987 /* we are going to have to convert the BCD
1988 * encoding on the cd to what is expected
1989 */
1990 th->starting_track =
1991 bcd2bin(th->starting_track);
1992 th->ending_track = bcd2bin(th->ending_track);
1993 }
28 */
29/*
30 * Portions of this driver taken from the original FreeBSD cd driver.
31 * Written by Julian Elischer (julian@tfs.com)
32 * for TRW Financial Systems for use under the MACH(2.5) operating system.
33 *
34 * TRW Financial Systems, in accordance with their agreement with Carnegie
35 * Mellon University, makes this software available to CMU to distribute

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

1986 if (softc->quirks & CD_Q_BCD_TRACKS) {
1987 /* we are going to have to convert the BCD
1988 * encoding on the cd to what is expected
1989 */
1990 th->starting_track =
1991 bcd2bin(th->starting_track);
1992 th->ending_track = bcd2bin(th->ending_track);
1993 }
1994 NTOHS(th->len);
1994 th->len = ntohs(th->len);
1995 bcopy(th, addr, sizeof(*th));
1996 free(th, M_TEMP);
1997 }
1998 break;
1999 case CDIOREADTOCENTRYS:
2000 {
2001 typedef struct {
2002 struct ioc_toc_header header;

--- 1624 unchanged lines hidden ---
1995 bcopy(th, addr, sizeof(*th));
1996 free(th, M_TEMP);
1997 }
1998 break;
1999 case CDIOREADTOCENTRYS:
2000 {
2001 typedef struct {
2002 struct ioc_toc_header header;

--- 1624 unchanged lines hidden ---