1
/* @(#)mycdrom.h 1.4 00/06/15 Copyright 1998,1999 Heiko Eissfeldt */
3
# include <linux/cdrom.h>
5
# if defined HAVE_SYS_CDIO_H
8
# if (defined (__sun) && defined (SVR4))
11
/* Sun has this cdda reading ioctl: CDROMCDDA */
13
* Definition of CD-DA structure
16
unsigned int cdda_addr;
17
unsigned int cdda_length;
19
unsigned char cdda_subcode;
22
To get the subcode information related to CD-DA data, the following values are
23
appropriate for the cdda_subcode field:
26
CD-DA data with no subcode.
29
CD-DA data with sub Q code.
32
CD-DA data with all subcode.
37
To allocate the memory related to CD-DA and/or subcode data, the following
38
values are appropriate for each data block transferred:
40
CD-DA data with no subcode
43
CD-DA data with sub Q code
46
CD-DA data with all subcode
55
# if defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
56
# if !defined CDIOCREADAUDIO
57
# undef HAVE_IOCTL_INTERFACE
60
#define CDROM_LBA CD_LBA_FORMAT
61
#define CDROM_MSF CD_MSF_FORMAT
62
#define CDROM_DATA_TRACK 0x04
63
#define CDROM_LEADOUT 0xAA
65
#define CDROMSTOP CDIOCSTOP
66
#define CDROMSTART CDIOCSTART
67
#define CDROMREADTOCHDR CDIOREADTOCHEADER
68
#define CDROMREADTOCENTRY CDIOREADTOCENTRY
69
#define CDROMPLAYMSF CDIOCPLAYMSF
70
#define CDROMREADAUDIO CDIOCREADAUDIO
71
#define CDROM_GET_MCN CDIOCREADSUBCHANNEL
72
#define CDROMSUBCHNL CDIOCREADSUBCHANNEL
74
#ifndef CDIOREADTOCENTRY
75
#define CDIOREADTOCENTRY CDIOREADTOCENTRYS
78
#define cdrom_tochdr ioc_toc_header
79
#define cdth_trk0 starting_track
80
#define cdth_trk1 ending_track
82
#define cdrom_tocentry ioc_read_toc_single_entry
83
#define cdte_track track
84
#define cdte_format address_format
85
#define cdte_adr entry.addr_type
86
#define cdte_ctrl entry.control
87
#define cdte_addr entry.addr
89
#define cdrom_read_audio ioc_read_audio
90
#define addr_format address_format
93
#define cdrom_msf ioc_play_msf
94
#define cdmsf_min0 start_m
95
#define cdmsf_sec0 start_s
96
#define cdmsf_frame0 start_f
97
#define cdmsf_min1 end_m
98
#define cdmsf_sec1 end_s
99
#define cdmsf_frame1 end_f
101
#define cdrom_subchnl ioc_read_subchannel
102
#define cdsc_audiostatus data->header.audio_status
103
#define cdsc_format data->what.position.data_format
104
#define cdsc_adr data->what.position.addr_type
105
#define cdsc_ctrl data->what.position.control
106
#define cdsc_trk data->what.position.track_number
107
#define cdsc_ind data->what.position.index_number
108
#define cdsc_absaddr data->what.position.absaddr
109
#define cdsc_reladdr data->what.position.reladdr
112
# undef HAVE_IOCTL_INTERFACE
114
# endif /* not SUN SVR4 */
115
# else /* HAVE_SYS_CDIO_H */
116
# if defined HAVE_SUNDEV_SRREG_H
117
# include <sundev/srreg.h>
118
# if !defined CDROMCDDA
119
# undef HAVE_IOCTL_INTERFACE
122
# endif /* not HAVE_SYS_CDIO_H */
123
#endif /* not linux */