$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()