Deleted Added
full compact
scsi_cd.c (208800) scsi_cd.c (210471)
1/*-
2 * Copyright (c) 1997 Justin T. Gibbs.
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003 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:

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

41 * functioning of this software in any circumstances.
42 *
43 * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
44 *
45 * from: cd.c,v 1.83 1997/05/04 15:24:22 joerg Exp $
46 */
47
48#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997 Justin T. Gibbs.
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003 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:

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

41 * functioning of this software in any circumstances.
42 *
43 * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
44 *
45 * from: cd.c,v 1.83 1997/05/04 15:24:22 joerg Exp $
46 */
47
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_cd.c 208800 2010-06-04 13:55:55Z avg $");
49__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_cd.c 210471 2010-07-25 15:43:52Z mav $");
50
51#include "opt_cd.h"
52
53#include <sys/param.h>
54#include <sys/systm.h>
55#include <sys/kernel.h>
56#include <sys/bio.h>
57#include <sys/conf.h>

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

728 softc->disk->d_drv1 = periph;
729 if (cpi.maxio == 0)
730 softc->disk->d_maxsize = DFLTPHYS; /* traditional default */
731 else if (cpi.maxio > MAXPHYS)
732 softc->disk->d_maxsize = MAXPHYS; /* for safety */
733 else
734 softc->disk->d_maxsize = cpi.maxio;
735 softc->disk->d_flags = 0;
50
51#include "opt_cd.h"
52
53#include <sys/param.h>
54#include <sys/systm.h>
55#include <sys/kernel.h>
56#include <sys/bio.h>
57#include <sys/conf.h>

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

728 softc->disk->d_drv1 = periph;
729 if (cpi.maxio == 0)
730 softc->disk->d_maxsize = DFLTPHYS; /* traditional default */
731 else if (cpi.maxio > MAXPHYS)
732 softc->disk->d_maxsize = MAXPHYS; /* for safety */
733 else
734 softc->disk->d_maxsize = cpi.maxio;
735 softc->disk->d_flags = 0;
736 softc->disk->d_hba_vendor = cpi.hba_vendor;
737 softc->disk->d_hba_device = cpi.hba_device;
738 softc->disk->d_hba_subvendor = cpi.hba_subvendor;
739 softc->disk->d_hba_subdevice = cpi.hba_subdevice;
736 disk_create(softc->disk, DISK_VERSION);
737 cam_periph_lock(periph);
738
739 /*
740 * Add an async callback so that we get
741 * notified if this device goes away.
742 */
743 xpt_register_async(AC_SENT_BDR | AC_BUS_RESET | AC_LOST_DEVICE,

--- 3494 unchanged lines hidden ---
740 disk_create(softc->disk, DISK_VERSION);
741 cam_periph_lock(periph);
742
743 /*
744 * Add an async callback so that we get
745 * notified if this device goes away.
746 */
747 xpt_register_async(AC_SENT_BDR | AC_BUS_RESET | AC_LOST_DEVICE,

--- 3494 unchanged lines hidden ---