scd.c (126076) | scd.c (126080) |
---|---|
1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Portions of this file are copied from mcd.c 6 * which has the following copyrights: 7 * 8 * Copyright 1993 by Holger Veit (data part) --- 27 unchanged lines hidden (view full) --- 36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 */ 42 43#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Portions of this file are copied from mcd.c 6 * which has the following copyrights: 7 * 8 * Copyright 1993 by Holger Veit (data part) --- 27 unchanged lines hidden (view full) --- 36 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 37 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 39 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/dev/scd/scd.c 126076 2004-02-21 19:42:58Z phk $"); | 44__FBSDID("$FreeBSD: head/sys/dev/scd/scd.c 126080 2004-02-21 21:10:55Z phk $"); |
45 46 47#undef SCD_DEBUG 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/conf.h> --- 89 unchanged lines hidden (view full) --- 142 143static d_open_t scdopen; 144static d_close_t scdclose; 145static d_ioctl_t scdioctl; 146static d_strategy_t scdstrategy; 147 148 149static struct cdevsw scd_cdevsw = { | 45 46 47#undef SCD_DEBUG 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/conf.h> --- 89 unchanged lines hidden (view full) --- 142 143static d_open_t scdopen; 144static d_close_t scdclose; 145static d_ioctl_t scdioctl; 146static d_strategy_t scdstrategy; 147 148 149static struct cdevsw scd_cdevsw = { |
150 .d_version = D_VERSION, |
|
150 .d_open = scdopen, 151 .d_close = scdclose, 152 .d_read = physread, 153 .d_ioctl = scdioctl, 154 .d_strategy = scdstrategy, 155 .d_name = "scd", | 151 .d_open = scdopen, 152 .d_close = scdclose, 153 .d_read = physread, 154 .d_ioctl = scdioctl, 155 .d_strategy = scdstrategy, 156 .d_name = "scd", |
156 .d_flags = D_DISK, | 157 .d_flags = D_DISK | D_NEEDGIANT, |
157}; 158 159int 160scd_attach(struct scd_softc *sc) 161{ 162 int unit; 163 164 unit = device_get_unit(sc->dev); --- 1244 unchanged lines hidden --- | 158}; 159 160int 161scd_attach(struct scd_softc *sc) 162{ 163 int unit; 164 165 unit = device_get_unit(sc->dev); --- 1244 unchanged lines hidden --- |