scd.c (60041) | scd.c (61011) |
---|---|
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 | 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 |
44/* $FreeBSD: head/sys/dev/scd/scd.c 60041 2000-05-05 09:59:14Z phk $ */ | 44/* $FreeBSD: head/sys/dev/scd/scd.c 61011 2000-05-28 13:40:48Z peter $ */ |
45 46/* Please send any comments to micke@dynas.se */ 47 48#define SCD_DEBUG 0 49 50#include "scd.h" 51#include <sys/param.h> 52#include <sys/systm.h> | 45 46/* Please send any comments to micke@dynas.se */ 47 48#define SCD_DEBUG 0 49 50#include "scd.h" 51#include <sys/param.h> 52#include <sys/systm.h> |
53#include <sys/kernel.h> |
|
53#include <sys/conf.h> 54#include <sys/bio.h> 55#include <sys/cdio.h> 56#include <sys/disklabel.h> | 54#include <sys/conf.h> 55#include <sys/bio.h> 56#include <sys/cdio.h> 57#include <sys/disklabel.h> |
57#include <sys/kernel.h> | 58#include <sys/bus.h> |
58 59#include <machine/clock.h> 60#include <machine/stdarg.h> 61 62#include <i386/isa/isa_device.h> 63#include <i386/isa/scdreg.h> 64 65 --- 97 unchanged lines hidden (view full) --- 163/* for xcdplayer */ 164static int scd_toc_header(int unit, struct ioc_toc_header *th); 165static int scd_toc_entrys(int unit, struct ioc_read_toc_entry *te); 166static int scd_toc_entry(int unit, struct ioc_read_toc_single_entry *te); 167#define SCD_LASTPLUS1 170 /* don't ask, xcdplayer passes this in */ 168 169static int scd_probe(struct isa_device *dev); 170static int scd_attach(struct isa_device *dev); | 59 60#include <machine/clock.h> 61#include <machine/stdarg.h> 62 63#include <i386/isa/isa_device.h> 64#include <i386/isa/scdreg.h> 65 66 --- 97 unchanged lines hidden (view full) --- 164/* for xcdplayer */ 165static int scd_toc_header(int unit, struct ioc_toc_header *th); 166static int scd_toc_entrys(int unit, struct ioc_read_toc_entry *te); 167static int scd_toc_entry(int unit, struct ioc_read_toc_single_entry *te); 168#define SCD_LASTPLUS1 170 /* don't ask, xcdplayer passes this in */ 169 170static int scd_probe(struct isa_device *dev); 171static int scd_attach(struct isa_device *dev); |
171struct isa_driver scddriver = { scd_probe, scd_attach, "scd" }; | 172struct isa_driver scddriver = { 173 INTR_TYPE_BIO, 174 scd_probe, 175 scd_attach, 176 "scd" 177}; 178COMPAT_ISA_DRIVER(scd, scddriver); |
172 173/* For canceling our timeout */ 174static struct callout_handle tohandle = CALLOUT_HANDLE_INITIALIZER(&tohanle); 175 176static d_open_t scdopen; 177static d_close_t scdclose; 178static d_ioctl_t scdioctl; 179static d_strategy_t scdstrategy; --- 1373 unchanged lines hidden --- | 179 180/* For canceling our timeout */ 181static struct callout_handle tohandle = CALLOUT_HANDLE_INITIALIZER(&tohanle); 182 183static d_open_t scdopen; 184static d_close_t scdclose; 185static d_ioctl_t scdioctl; 186static d_strategy_t scdstrategy; --- 1373 unchanged lines hidden --- |