~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/drivers/cdrom/optcd.h

Version: ~ [ 2.4.21-47.EL ] ~ [ 2.6.9-67.EL ] ~ [ 2.6.18-128.el5 ] ~ [ 2.6.18-164.el5 ] ~
Architecture: ~ [ i386 ] ~ [ x86_64 ] ~

  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 
 23 
 24 /* Change 0 to 1 to debug various parts of the driver */
 25 #define DEBUG_DRIVE_IF  0       /* Low level drive interface */
 26 #define DEBUG_CONV      0       /* Address conversions */
 27 #define DEBUG_BUFFERS   0       /* Buffering and block size conversion */
 28 #define DEBUG_REQUEST   0       /* Request mechanism */
 29 #define DEBUG_STATE     0       /* State machine */
 30 #define DEBUG_TOC       0       /* Q-channel and Table of Contents */
 31 #define DEBUG_MULTIS    0       /* Multisession code */
 32 #define DEBUG_VFS       0       /* VFS interface */
 33 
 34 
 35 /* Don't touch these unless you know what you're doing. */
 36 
 37 /* Various timeout loop repetition counts. */
 38 #define BUSY_TIMEOUT            10000000        /* for busy wait */
 39 #define FAST_TIMEOUT            100000          /* ibid. for probing */
 40 #define SLEEP_TIMEOUT           6000            /* for timer wait */
 41 #define MULTI_SEEK_TIMEOUT      1000            /* for timer wait */
 42 #define READ_TIMEOUT            6000            /* for poll wait */
 43 #define STOP_TIMEOUT            2000            /* for poll wait */
 44 #define RESET_WAIT              5000            /* busy wait at drive reset */
 45 
 46 /* # of buffers for block size conversion. 6 is optimal for my setup (P75),
 47    giving 280 kb/s, with 0.4% CPU usage. Experiment to find your optimal
 48    setting */
 49 #define N_BUFS          6
 50 
 51 
 52 #endif /* _LINUX_OPTCD_H */
 53 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.