blob: 1c91789f17a11a3393d01a0d4265e4b69398d619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-ad,v 1.4 2002/07/12 03:39:16 itojun Exp $
--- iodev/cdrom.cc.orig Tue Mar 19 19:24:16 2002
+++ iodev/cdrom.cc
@@ -357,6 +357,22 @@
return(true);
}
+ int
+cdrom_interface::start_cdrom()
+{
+ // Spin up the cdrom drive.
+
+ if (fd >= 0) {
+#if defined(__NetBSD__)
+ if (ioctl (fd, CDIOCSTART) < 0)
+ BX_DEBUG(( "start_cdrom: start returns error: %s", strerror (errno) ));
+ return(true);
+#else
+ BX_INFO(("start_cdrom: your OS is not supported yet."));
+ return(false); // OS not supported yet, return false always.
+#endif
+ }
+}
void
cdrom_interface::eject_cdrom()
|