Date: Tue, 2 Jan 1996 01:35:30 +0000 From: mark@linus.demon.co.uk (Mark Valentine) To: freebsd-scsi@freebsd.org Subject: scsi_start_unit() and cd_open() Message-ID: <199601020135.BAA00338@linus.demon.co.uk>
next in thread | raw e-mail | index | archive | help
What would be the correct way to add a hook to disable the scsi_start_unit() in cd_open() for a particular device? My XM-3401 seems fine without it, and disabling it allows audio CDs to be controlled in a more flexible manner (e.g. separate cdplay/cdpause/cdresume/cdstop invocations - and Workman happily restores its state when restarted). Even if enabled, shouldn't it only be done on first open? Incidentally, the call in cd_open() passes CD_START as "flags", which probably isn't intended (the value appears to be that of SCSI_NOSLEEP in that context). The CD_STOP/CD_START/CD_EJECT #defines seem to be otherwise unused, and it's not clear where they were intended to be used (obviously in some context where "-2" means "eject"). Mark.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601020135.BAA00338>