hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/cdrom.h
....@@ -73,7 +73,6 @@
7373 int (*drive_status) (struct cdrom_device_info *, int);
7474 unsigned int (*check_events) (struct cdrom_device_info *cdi,
7575 unsigned int clearing, int slot);
76
- int (*media_changed) (struct cdrom_device_info *, int);
7776 int (*tray_move) (struct cdrom_device_info *, int);
7877 int (*lock_door) (struct cdrom_device_info *, int);
7978 int (*select_speed) (struct cdrom_device_info *, int);
....@@ -94,6 +93,11 @@
9493 struct packet_command *);
9594 };
9695
96
+int cdrom_multisession(struct cdrom_device_info *cdi,
97
+ struct cdrom_multisession *info);
98
+int cdrom_read_tocentry(struct cdrom_device_info *cdi,
99
+ struct cdrom_tocentry *entry);
100
+
97101 /* the general block_device operations structure: */
98102 extern int cdrom_open(struct cdrom_device_info *cdi, struct block_device *bdev,
99103 fmode_t mode);
....@@ -102,9 +106,8 @@
102106 fmode_t mode, unsigned int cmd, unsigned long arg);
103107 extern unsigned int cdrom_check_events(struct cdrom_device_info *cdi,
104108 unsigned int clearing);
105
-extern int cdrom_media_changed(struct cdrom_device_info *);
106109
107
-extern int register_cdrom(struct cdrom_device_info *cdi);
110
+extern int register_cdrom(struct gendisk *disk, struct cdrom_device_info *cdi);
108111 extern void unregister_cdrom(struct cdrom_device_info *cdi);
109112
110113 typedef struct {