1 #include <linux/cdrom.h>
6 static const struct ioctl cdrom_ioctls
[] = {
10 IOCTL(CDROMPLAYTRKIND
),
11 IOCTL(CDROMREADTOCHDR
),
12 IOCTL(CDROMREADTOCENTRY
),
18 IOCTL(CDROMREADMODE2
),
19 IOCTL(CDROMREADMODE1
),
20 IOCTL(CDROMREADAUDIO
),
22 IOCTL(CDROMMULTISESSION
),
27 IOCTL(CDROMREADCOOKED
),
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
),
44 IOCTL(CDROM_GET_CAPABILITY
),
45 IOCTL(CDROMAUDIOBUFSIZ
),
46 IOCTL(DVD_READ_STRUCT
),
47 IOCTL(DVD_WRITE_STRUCT
),
49 IOCTL(CDROM_SEND_PACKET
),
50 IOCTL(CDROM_NEXT_WRITABLE
),
51 IOCTL(CDROM_LAST_WRITTEN
),
54 static const char *const cdrom_devs
[] = {
58 static const struct ioctl_group cdrom_grp
= {
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
)