summaryrefslogtreecommitdiffstats
path: root/include/blkdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/blkdev.h')
-rw-r--r--include/blkdev.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 1e7409dfd..1a9119d43 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -72,6 +72,12 @@
# ifdef __linux__
# define HDIO_GETGEO 0x0301
# endif
+
+/* uniform CD-ROM information */
+#ifndef CDROM_GET_CAPABILITY
+# define CDROM_GET_CAPABILITY 0x5331
+#endif
+
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
@@ -98,4 +104,7 @@ int blkdev_is_misaligned(int fd);
/* get physical block device size */
int blkdev_get_physector_size(int fd, int *sector_size);
+/* is the device cdrom capable? */
+int blkdev_is_cdrom(int fd);
+
#endif /* BLKDEV_H */