change sockaddr generation to pass around correct types.
[trinity.git] / ioctls / cdrom.c
blob899b454362520cdd12a979a0aa120499a747feb5
1 #include <linux/cdrom.h>
3 #include "utils.h"
4 #include "ioctls.h"
6 static const struct ioctl cdrom_ioctls[] = {
7 IOCTL(CDROMPAUSE),
8 IOCTL(CDROMRESUME),
9 IOCTL(CDROMPLAYMSF),
10 IOCTL(CDROMPLAYTRKIND),
11 IOCTL(CDROMREADTOCHDR),
12 IOCTL(CDROMREADTOCENTRY),
13 IOCTL(CDROMSTOP),
14 IOCTL(CDROMSTART),
15 IOCTL(CDROMEJECT),
16 IOCTL(CDROMVOLCTRL),
17 IOCTL(CDROMSUBCHNL),
18 IOCTL(CDROMREADMODE2),
19 IOCTL(CDROMREADMODE1),
20 IOCTL(CDROMREADAUDIO),
21 IOCTL(CDROMEJECT_SW),
22 IOCTL(CDROMMULTISESSION),
23 IOCTL(CDROM_GET_MCN),
24 IOCTL(CDROMRESET),
25 IOCTL(CDROMVOLREAD),
26 IOCTL(CDROMREADRAW),
27 IOCTL(CDROMREADCOOKED),
28 IOCTL(CDROMSEEK),
29 IOCTL(CDROMPLAYBLK),
30 IOCTL(CDROMREADALL),
31 IOCTL(CDROMGETSPINDOWN),
32 IOCTL(CDROMSETSPINDOWN),
33 IOCTL(CDROMCLOSETRAY),
34 IOCTL(CDROM_SET_OPTIONS),
35 IOCTL(CDROM_CLEAR_OPTIONS),
36 IOCTL(CDROM_SELECT_SPEED),
37 IOCTL(CDROM_SELECT_DISC),
38 IOCTL(CDROM_MEDIA_CHANGED),
39 IOCTL(CDROM_DRIVE_STATUS),
40 IOCTL(CDROM_DISC_STATUS),
41 IOCTL(CDROM_CHANGER_NSLOTS),
42 IOCTL(CDROM_LOCKDOOR),
43 IOCTL(CDROM_DEBUG),
44 IOCTL(CDROM_GET_CAPABILITY),
45 IOCTL(CDROMAUDIOBUFSIZ),
46 IOCTL(DVD_READ_STRUCT),
47 IOCTL(DVD_WRITE_STRUCT),
48 IOCTL(DVD_AUTH),
49 IOCTL(CDROM_SEND_PACKET),
50 IOCTL(CDROM_NEXT_WRITABLE),
51 IOCTL(CDROM_LAST_WRITTEN),
54 static const char *const cdrom_devs[] = {
55 "sr",
58 static const struct ioctl_group cdrom_grp = {
59 .devtype = DEV_BLOCK,
60 .devs = cdrom_devs,
61 .devs_cnt = ARRAY_SIZE(cdrom_devs),
62 .sanitise = pick_random_ioctl,
63 .ioctls = cdrom_ioctls,
64 .ioctls_cnt = ARRAY_SIZE(cdrom_ioctls),
67 REG_IOCTL_GROUP(cdrom_grp)