1 /* linux/include/linux/optcd.h - Optics Storage 8000 AT CDROM driver 2 $Id: optcd.h,v 1.2 1996/01/15 18:43:44 root Exp root $ 3 4 Copyright (C) 1995 Leo Spiekman (spiekman@dutette.et.tudelft.nl) 5 6 7 Configuration file for linux/drivers/cdrom/optcd.c 8 */ 9 10 #ifndef _LINUX_OPTCD_H 11 #define _LINUX_OPTCD_H 12 13 14 /* I/O base of drive. Drive uses base to base+2. 15 This setting can be overridden with the kernel or insmod command 16 line option 'optcd=<portbase>'. Use address of 0 to disable driver. */ 17 #define OPTCD_PORTBASE 0x340 18 19 20 /* enable / disable parts of driver by define / undef */ 21 #define MULTISESSION /* multisession support (ALPHA) */ 22 #define PROBE_ISP16 /* ISP16 interface card probing */ 23 /* ISP16 probing can also be suppressed with kernel command line option 24 'noisp16', or with insmod parameter 'noisp16=1'. */ 25 26 27 /* Change 0 to 1 to debug various parts of the driver */ 28 #define DEBUG_DRIVE_IF 0 /* Low level drive interface */ 29 #define DEBUG_CONV 0 /* Address conversions */ 30 #define DEBUG_BUFFERS 0 /* Buffering and block size conversion */ 31 #define DEBUG_REQUEST 0 /* Request mechanism */ 32 #define DEBUG_STATE 0 /* State machine */ 33 #define DEBUG_TOC 0 /* Q-channel and Table of Contents */ 34 #define DEBUG_MULTIS 0 /* Multisession code */ 35 #define DEBUG_VFS 0 /* VFS interface */ 36 37 38 /* Various timeout loop repetition counts. Don't touch unless you know 39 what you're doing. */ 40 #define BUSY_TIMEOUT 10000000 /* for busy wait */ 41 #define FAST_TIMEOUT 100000 /* ibid. for probing */ 42 #define SLEEP_TIMEOUT 3000 /* for timer wait */ 43 #define MULTI_SEEK_TIMEOUT 500 /* for timer wait */ 44 #define READ_TIMEOUT 3000 /* for poll wait */ 45 #define STOP_TIMEOUT 1000 /* for poll wait */ 46 #define RESET_WAIT 1000 /* busy wait at drive reset */ 47 48 #endif _LINUX_OPTCD_H