blob: 39f1aae2d34a3afd40caa0bf4a010c5e20705682 (
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.5 2002/12/25 01:12:38 uebayasi Exp $
--- iodev/cdrom.cc.orig Tue Dec 24 12:50:46 2002
+++ iodev/cdrom.cc
@@ -662,6 +662,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()
|