/****************************************************************** * CopyPolicy: GNU Public License 2 applies * Copyright (C) 1998 Monty xiphmont@mit.edu * * internal include file for cdda interface kit for Linux * ******************************************************************/ #ifndef _cdda_low_interface_ #define _cdda_low_interface_ #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef Linux #include #include /* some include file locations have changed with newer kernels */ #ifdef SBPCD_H #include #endif #ifdef UCDROM_H #include #endif #ifndef CDROMAUDIOBUFSIZ #define CDROMAUDIOBUFSIZ 0x5382 /* set the audio buffer size */ #endif #include #include #include #include #elif defined(__FreeBSD__) #include #include #include #include #endif #include "cdda_interface.h" #define MAX_RETRIES 8 #define MAX_BIG_BUFF_SIZE 65536 #define MIN_BIG_BUFF_SIZE 4096 #ifdef Linux #define SG_OFF sizeof(struct sg_header) #else #define SG_OFF (0) #endif #ifndef SG_EMULATED_HOST /* old kernel version; the check for the ioctl is still runtime, this is just to build */ #define SG_EMULATED_HOST 0x2203 #define SG_SET_TRANSFORM 0x2204 #define SG_GET_TRANSFORM 0x2205 #endif extern int cooked_init_drive (cdrom_drive *d); #ifdef Linux extern unsigned char *scsi_inquiry (cdrom_drive *d); #endif extern int scsi_init_drive (cdrom_drive *d); #ifdef CDDA_TEST extern int test_init_drive (cdrom_drive *d); #endif #endif