mcd.c (60041) | mcd.c (61011) |
---|---|
1/* 2 * Copyright 1993 by Holger Veit (data part) 3 * Copyright 1993 by Brian Moore (audio part) 4 * Changes Copyright 1993 by Gary Clark II 5 * Changes Copyright (C) 1994-1995 by Andrey A. Chernov, Moscow, Russia 6 * 7 * Rewrote probe routine to work on newer Mitsumi drives. 8 * Additional changes (C) 1994 by Jordan K. Hubbard --- 26 unchanged lines hidden (view full) --- 35 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 36 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 37 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 38 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 39 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 40 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 * | 1/* 2 * Copyright 1993 by Holger Veit (data part) 3 * Copyright 1993 by Brian Moore (audio part) 4 * Changes Copyright 1993 by Gary Clark II 5 * Changes Copyright (C) 1994-1995 by Andrey A. Chernov, Moscow, Russia 6 * 7 * Rewrote probe routine to work on newer Mitsumi drives. 8 * Additional changes (C) 1994 by Jordan K. Hubbard --- 26 unchanged lines hidden (view full) --- 35 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 36 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 37 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 38 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 39 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 40 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 * |
43 * $FreeBSD: head/sys/dev/mcd/mcd.c 60041 2000-05-05 09:59:14Z phk $ | 43 * $FreeBSD: head/sys/dev/mcd/mcd.c 61011 2000-05-28 13:40:48Z peter $ |
44 */ 45static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; 46 47#include "mcd.h" 48#include <sys/param.h> 49#include <sys/systm.h> | 44 */ 45static const char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; 46 47#include "mcd.h" 48#include <sys/param.h> 49#include <sys/systm.h> |
50#include <sys/kernel.h> |
|
50#include <sys/conf.h> 51#include <sys/fcntl.h> 52#include <sys/bio.h> 53#include <sys/cdio.h> 54#include <sys/disklabel.h> | 51#include <sys/conf.h> 52#include <sys/fcntl.h> 53#include <sys/bio.h> 54#include <sys/cdio.h> 55#include <sys/disklabel.h> |
55#include <sys/kernel.h> | 56#include <sys/bus.h> |
56 57#include <machine/clock.h> 58 59#include <i386/isa/isa_device.h> 60#include <i386/isa/mcdreg.h> 61 62#define MCD_TRACE(format, args...) \ 63{ \ --- 125 unchanged lines hidden (view full) --- 189static int mcd_playblocks(int unit, struct ioc_play_blocks *); 190static int mcd_pause(int unit); 191static int mcd_resume(int unit); 192static int mcd_lock_door(int unit, int lock); 193static int mcd_close_tray(int unit); 194 195static int mcd_probe(struct isa_device *dev); 196static int mcd_attach(struct isa_device *dev); | 57 58#include <machine/clock.h> 59 60#include <i386/isa/isa_device.h> 61#include <i386/isa/mcdreg.h> 62 63#define MCD_TRACE(format, args...) \ 64{ \ --- 125 unchanged lines hidden (view full) --- 190static int mcd_playblocks(int unit, struct ioc_play_blocks *); 191static int mcd_pause(int unit); 192static int mcd_resume(int unit); 193static int mcd_lock_door(int unit, int lock); 194static int mcd_close_tray(int unit); 195 196static int mcd_probe(struct isa_device *dev); 197static int mcd_attach(struct isa_device *dev); |
197struct isa_driver mcddriver = { mcd_probe, mcd_attach, "mcd" }; | 198struct isa_driver mcddriver = { 199 INTR_TYPE_BIO, 200 mcd_probe, 201 mcd_attach, 202 "mcd" 203}; 204COMPAT_ISA_DRIVER(mcd, mcddriver); |
198 199static d_open_t mcdopen; 200static d_close_t mcdclose; 201static d_ioctl_t mcdioctl; 202static d_psize_t mcdsize; 203static d_strategy_t mcdstrategy; 204 205#define CDEV_MAJOR 29 --- 1628 unchanged lines hidden --- | 205 206static d_open_t mcdopen; 207static d_close_t mcdclose; 208static d_ioctl_t mcdioctl; 209static d_psize_t mcdsize; 210static d_strategy_t mcdstrategy; 211 212#define CDEV_MAJOR 29 --- 1628 unchanged lines hidden --- |