Deleted Added
full compact
cdio.h (13885) cdio.h (18444)
1/*
2 * 16 Feb 93 Julian Elischer (julian@dialix.oz.au)
3 *
1/*
2 * 16 Feb 93 Julian Elischer (julian@dialix.oz.au)
3 *
4 * $Id: cdio.h,v 1.12 1996/02/02 20:41:11 ache Exp $
4 * $Id: cdio.h,v 1.13 1996/02/03 14:19:13 ache Exp $
5 */
5 */
6
6/*
7<1> Fixed a conflict with ioctl usage. There were two different
8 functions using code #25. Made file formatting consistent.
9 Added two new ioctl codes: door closing and audio pitch playback.
10 Added a STEREO union called STEREO.
11 5-Mar-95 Frank Durda IV bsdmail@nemesis.lonestar.org
12
13<2> Added a new ioctl that allows you to find out what capabilities
14 a drive has and what commands it will accept. This allows a
15 user application to only offer controls (buttons, sliders, etc)
16 for functions that drive can actually do. Things it can't do
17 can disappear or be greyed-out (like some other system).
18 If the driver doesn't respond to this call, well, handle it the
19 way you used to do it.
20 2-Apr-95 Frank Durda IV bsdmail@nemesis.lonestar.org
21*/
22
7/*
8<1> Fixed a conflict with ioctl usage. There were two different
9 functions using code #25. Made file formatting consistent.
10 Added two new ioctl codes: door closing and audio pitch playback.
11 Added a STEREO union called STEREO.
12 5-Mar-95 Frank Durda IV bsdmail@nemesis.lonestar.org
13
14<2> Added a new ioctl that allows you to find out what capabilities
15 a drive has and what commands it will accept. This allows a
16 user application to only offer controls (buttons, sliders, etc)
17 for functions that drive can actually do. Things it can't do
18 can disappear or be greyed-out (like some other system).
19 If the driver doesn't respond to this call, well, handle it the
20 way you used to do it.
21 2-Apr-95 Frank Durda IV bsdmail@nemesis.lonestar.org
22*/
23
23
24/* Shared between kernel & process */
24/* Shared between kernel & process */
25#ifndef _SYS_CDIO_H_
26#define _SYS_CDIO_H_
27
25
26#ifndef _SYS_CDIO_H_
27#define _SYS_CDIO_H_
28
29#ifndef KERNEL
30#include <sys/types.h>
31#endif
32#include <sys/ioccom.h>
33
28union msf_lba {
29 struct {
30 unsigned char unused;
31 unsigned char minute;
32 unsigned char second;
33 unsigned char frame;
34 } msf;
35 int lba; /* network byte order */

--- 218 unchanged lines hidden (view full) ---

254#define CDREADENTRIES 0x00000200 /*<2>Can read TOC Entries*/
255#define CDREADSUBQ 0x00000200 /*<2>Can read Subchannel info*/
256#define CDREADRW 0x00000400 /*<2>Can read subcodes R-W*/
257#define CDHASDEBUG 0x00004000 /*<2>The tray has dynamic debugging*/
258}; /*<2>*/
259
260#define CDIOCCAPABILITY _IOR('c',30,struct ioc_capability) /*<2>*/
261
34union msf_lba {
35 struct {
36 unsigned char unused;
37 unsigned char minute;
38 unsigned char second;
39 unsigned char frame;
40 } msf;
41 int lba; /* network byte order */

--- 218 unchanged lines hidden (view full) ---

260#define CDREADENTRIES 0x00000200 /*<2>Can read TOC Entries*/
261#define CDREADSUBQ 0x00000200 /*<2>Can read Subchannel info*/
262#define CDREADRW 0x00000400 /*<2>Can read subcodes R-W*/
263#define CDHASDEBUG 0x00004000 /*<2>The tray has dynamic debugging*/
264}; /*<2>*/
265
266#define CDIOCCAPABILITY _IOR('c',30,struct ioc_capability) /*<2>*/
267
262#endif /* _SYS_CDIO_H_ */
263
268#endif /* !_SYS_CDIO_H_ */