OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [optcd.h] - Diff between revs 1765 and 1782

Only display areas with differences | Details | Blame | View Log

Rev 1765 Rev 1782
/*      linux/include/linux/optcd.h - Optics Storage 8000 AT CDROM driver
/*      linux/include/linux/optcd.h - Optics Storage 8000 AT CDROM driver
        $Id: optcd.h,v 1.1 2005-12-20 11:32:25 jcastillo Exp $
        $Id: optcd.h,v 1.1 2005-12-20 11:32:25 jcastillo Exp $
 
 
        Copyright (C) 1995 Leo Spiekman (spiekman@dutette.et.tudelft.nl)
        Copyright (C) 1995 Leo Spiekman (spiekman@dutette.et.tudelft.nl)
 
 
 
 
        Configuration file for linux/drivers/cdrom/optcd.c
        Configuration file for linux/drivers/cdrom/optcd.c
*/
*/
 
 
#ifndef _LINUX_OPTCD_H
#ifndef _LINUX_OPTCD_H
#define _LINUX_OPTCD_H
#define _LINUX_OPTCD_H
 
 
 
 
/* I/O base of drive. Drive uses base to base+2.
/* I/O base of drive. Drive uses base to base+2.
   This setting can be overridden with the kernel or insmod command
   This setting can be overridden with the kernel or insmod command
   line option 'optcd=<portbase>'. Use address of 0 to disable driver. */
   line option 'optcd=<portbase>'. Use address of 0 to disable driver. */
#define OPTCD_PORTBASE  0x340
#define OPTCD_PORTBASE  0x340
 
 
 
 
/* enable / disable parts of driver by define / undef */
/* enable / disable parts of driver by define / undef */
#define MULTISESSION            /* multisession support (ALPHA) */
#define MULTISESSION            /* multisession support (ALPHA) */
 
 
 
 
/* Change 0 to 1 to debug various parts of the driver */
/* Change 0 to 1 to debug various parts of the driver */
#define DEBUG_DRIVE_IF  0        /* Low level drive interface */
#define DEBUG_DRIVE_IF  0        /* Low level drive interface */
#define DEBUG_CONV      0        /* Address conversions */
#define DEBUG_CONV      0        /* Address conversions */
#define DEBUG_BUFFERS   0        /* Buffering and block size conversion */
#define DEBUG_BUFFERS   0        /* Buffering and block size conversion */
#define DEBUG_REQUEST   0        /* Request mechanism */
#define DEBUG_REQUEST   0        /* Request mechanism */
#define DEBUG_STATE     0        /* State machine */
#define DEBUG_STATE     0        /* State machine */
#define DEBUG_TOC       0        /* Q-channel and Table of Contents */
#define DEBUG_TOC       0        /* Q-channel and Table of Contents */
#define DEBUG_MULTIS    0        /* Multisession code */
#define DEBUG_MULTIS    0        /* Multisession code */
#define DEBUG_VFS       0        /* VFS interface */
#define DEBUG_VFS       0        /* VFS interface */
 
 
 
 
/* Don't touch these unless you know what you're doing. */
/* Don't touch these unless you know what you're doing. */
 
 
/* Various timeout loop repetition counts. */
/* Various timeout loop repetition counts. */
#define BUSY_TIMEOUT            10000000        /* for busy wait */
#define BUSY_TIMEOUT            10000000        /* for busy wait */
#define FAST_TIMEOUT            100000          /* ibid. for probing */
#define FAST_TIMEOUT            100000          /* ibid. for probing */
#define SLEEP_TIMEOUT           6000            /* for timer wait */
#define SLEEP_TIMEOUT           6000            /* for timer wait */
#define MULTI_SEEK_TIMEOUT      1000            /* for timer wait */
#define MULTI_SEEK_TIMEOUT      1000            /* for timer wait */
#define READ_TIMEOUT            6000            /* for poll wait */
#define READ_TIMEOUT            6000            /* for poll wait */
#define STOP_TIMEOUT            2000            /* for poll wait */
#define STOP_TIMEOUT            2000            /* for poll wait */
#define RESET_WAIT              5000            /* busy wait at drive reset */
#define RESET_WAIT              5000            /* busy wait at drive reset */
 
 
/* # of buffers for block size conversion. 6 is optimal for my setup (P75),
/* # of buffers for block size conversion. 6 is optimal for my setup (P75),
   giving 280 kb/s, with 0.4% CPU usage. Experiment to find your optimal
   giving 280 kb/s, with 0.4% CPU usage. Experiment to find your optimal
   setting */
   setting */
#define N_BUFS          6
#define N_BUFS          6
 
 
 
 
#endif _LINUX_OPTCD_H
#endif _LINUX_OPTCD_H
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.