summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/atapi.c
Commit message (Collapse)AuthorAgeFilesLines
* Wrong sleep addr passed to wakeup.luoqi1999-08-301-1/+1
| | | | Submitted by: Vsevolod Lobko seva@sevasoft.alex-ua.com
* Fix a potential hang situation.luoqi1999-04-191-1/+2
| | | | PR: i386/2108
* Shoot the LKM support in the old wd/wdc/atapi driver set in the head andpeter1999-04-131-176/+13
| | | | | | | | | | | | | | | | | perform a cleanup/unifdef sweep over it to tidy things up. The atapi code is permanently attached to the wd driver and is always probed. I will add an extra option bit in the flags to disable an atapi probe on either the master or slave if needed, if people want this. Remember, this driver is destined to die some time. It's possible that it will loose all atapi support down the track and only be used for dumb non-ATA disks and all ata/atapi devices will be handled by the new ata system. ATAPI, ATAPI_STATIC and CMD640 are no longer options, all are implicit. Previously discussed with: sos
* Correct prototype for wdstarteivind1999-04-111-1/+1
|
* Rewert the atapi CDROM driver's name to wcd.sos1999-03-161-2/+2
| | | | | This is to avoid confusion with the new system. Also provide real entires in MAKEDEV for the new system.
* Fix breakage by cleanup.sos1998-12-271-13/+3
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-2/+0
| | | | and local variables, goto labels, and functions declared but not defined.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-1/+1
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Removed a stale comment about "ioconf.h".bde1998-09-241-4/+0
|
* Add new atapi-cd driver that supports atapi CD-R/RW drives.sos1998-09-081-5/+29
| | | | This is only a stop-gab solution to get atapi burner support into 3.0.
* Don't use INTR when only one device supports it.msmith1998-04-131-1/+10
| | | | Submitted by: Satoh Junichi <junichi@astec.co.jp>
* First pre alpha Work In Progress commit of a IDE/ATAPI tape driver.sos1998-03-011-6/+14
| | | | | | | | | | | It does endeed work, but there is still some problems to solve. I get a "nonrecovered data error" from time to time, but besides this it has backed up several Gigs allready. Please report any success/failure directly to me. Thanks to Warner Losh for providing a drive to use in writing this driver!
* Staticize.eivind1998-02-091-1/+1
|
* Check the status port after waiting for DRQ; some drives seem to be verymsmith1998-01-271-0/+9
| | | | | | slow coming off the bus (eg. Iomega's ATAPI Zip). Failure to do this results in a false probe of an ATAPI device with garbage data.
* Bring in IDE ATAPI floppy support.pst1998-01-161-1/+14
| | | | | | | | | | | This is Junichi's v1.0 driver. NOTE: Major device numbers have been changed to avoid conflict with other FreeBSD 3.0 devices. The new numbers should be considered "official." This driver is still considered "beta" quality, although we have been playing with it. Please submit bugs to junichi and myself. Submitted by: junichi@astec.co.jp
* Use the argmument `port' instead of hard coded address in atapi_probe.kato1997-12-041-1/+1
| | | | Submitted by: kura@melchior.q.t.u-tokyo.ac.jp (Tomohiko Kurahashi)
* Removed unused #includes.bde1997-07-201-3/+0
|
* Fix support for the Hitachi CDR7730 IDE cdrom drive.sos1997-05-231-2/+4
| | | | | Patch from pr1730. Tested on our IDE cdrom drive farm...
* Make MOD_* macros almost consistent:dufault1997-04-061-1/+2
| | | | | | | | | | | | | | | | | | | | Use the name argument almost the same in all LKM types. Maintain the current behavior for the external (e.g., modstat) name for DEV, EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only #name. This is a candidate for change and I vote just the name without the "_mod". Change the DISPATCH macro to MOD_DISPATCH for consistency with the other macros. Add an LKM_ANON #define to eliminate the magic -1 and associated signed/unsigned warnings. Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure. Change source in tree to use the new interface. Reviewed by: Bruce Evans
* Fixed unit select code in atapi_probe (PC98 specific).kato1997-01-171-0/+4
|
* More merge and update.asami1996-10-301-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | (1) deleted #if 0 pc98/pc98/mse.c (2) hold per-unit I/O ports in ed_softc pc98/pc98/if_ed.c pc98/pc98/if_ed98.h (3) merge more files by segregating changes into headers. new file (moved from pc98/pc98): i386/isa/aic_98.h deleted: well, it's already in the commit message so I won't repeat the long list here ;) Submitted by: The FreeBSD(98) Development Team
* Finish what phk started here in removing devconf. The ATAPI_STATIC casejkh1996-09-081-3/+2
| | | | | was still broken, as was the normal case since atapi_attach() was called internally.
* Bannish ATAPI and ATAPI_STATIC #defines to opt_atapi.h.pst1996-09-061-0/+2
|
* Remove devconf, it never grew up to be of any use.phk1996-09-061-4/+3
|
* Eliminated sloppy common-style declarations. Now there are no duplicatedbde1996-04-131-9/+11
| | | | | | common labels for LINT. There are still some common declarations for the !KERNEL case in tcp_debug.h and spx_debug.h. trpt depends on the ones in tcp_debug.h.
* Changed #includes of <i386/include/foo.h> to #includes of <machine/foo.h>.bde1996-04-071-2/+3
|
* Completed function declarations and/or added prototypes and/or addedbde1995-12-151-2/+7
| | | | #includes to get prototypes.
* Changed the first (name) arg of MOD_DEV(), MOD_EXEC() and MOD_MISC()bde1995-11-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from a string to an identifier so that it can be used to generate declarations and strings. It's much easier to stringize an identifier than to identifize a string. A uniform naming scheme must be used for the automatically generated things to apply. This is a feature. Used the module identifer to generate prototypes for the module load, unload and stat functions. Removed the few prototypes for these that already existed. Used the module identifier to generate a unique struct tag in MOD_DEV(). This should probably be done for all the MOD_*() macros. Moved the trailing semicolon from the MOD_*() macro definitions to the macro invocations that didn't already (bogusly) have it. Staticized the module load and unload functions. Added function return types for the module load, unload and stat functions. lkm/ibcs2/ibcs2.c: Included <sys/sysproto.h> to get everything prototyped. Cleaned up #includes. lkm/ibcs2/ipfw.c: Cleaned up #includes. lkm/linux/linux.c: The module name had to change from "linux_emulator" to "linux_mod" to be automatically generated. Cleaned up #includes. lkm/syscons/*/*_saver.c: Completed delcarations of function pointers. sys/i386/isa/atapi.c: The module name had to change from "atapi" to "atapi_mod" to be automatically generated. sys/i386/isa/wcd.c: Used the fixed MOD_DEV(). This module has two devices and expanded the macro in the source instead of fixing it. The module names had to change from "wcd" and "rwcd" to "wcd_mod" and "rwcd_mod" to be automatically generated. sys/pccard/pcic.c: The module name had to change from "pcic" to "pcic_mod" to be automatically generated.
* Replaced nosys() by lkm_nullcmd().bde1995-11-131-1/+1
|
* Repair the wcd and atapi code a little, so that it compiles and loadspeter1995-10-281-10/+14
| | | | | | | as an LKM. I dont have one of these beasts, so I cannot guarantee that I've not broken it (more). It does compile with ATAPI_STATIC, and as a LKM.
* Latest fixes from Serge:dg1995-10-141-55/+229
| | | | | | | | | | | | | | | | | | | | | | I tried to solve the problem of IDE probing compatibility in this version. When compiled without an ATAPI option, the wd driver is fully backward compatible with 2.0.5. With ATAPI option, the wdprobe becomes strictly weaker. That is, if wdprobe works without ATAPI option, it will always work with it too. Another problem was with the CD-ROM drive attached as a slave in the IDE bus, where there is no master. All IDE CD-ROM drives are shipped in slave configuration, and most users just plug them in, never thinking about jumpers. It works fine with ms-dos and ms-windows, and this version of the driver supports it as well. The eject op can now load disks. Just repeat it twice, and the disk will be ejected and then loaded back. The disc cannot be ejected if it is mounted. Submitted by: Serge Vakulenko, <vak@cronyx.ru>
* Bring IDE CDROM support up to latest version (1.8a?) from Serge.jkh1995-09-301-55/+81
| | | | Submitted by: vak@cronyx.ru
* Patch to the atapi driver, by Serge V.Vakulenko, minor changessos1995-09-091-24/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | by me... Original message: This patch upgrades the ATAPI CD-ROM driver to version 1.3. It has three bugs fixed: 1) The `controller not ready' message at startup and later. It was caused by staled media change bit. 2) Incorrect shuffling of model string for some drives (NEC, Mitsumi). 3) Handling of drives which report itself as been of direct-access type, instead of CD-ROM type. There is one known bug which is not fixed yet -- probing in absense of IDE disks. A work-around exists though (thanks Steve!). If you have no IDE disks attached, then remove them from the kernel config file to make the CD-ROM attach correctly. Unfortunately, there is no way to disable them from the kernel interactive config mode. Reviewed by: sos (Soren Schmidt) Submitted by: vak@gw.cronyx.msk.su (Serge V.Vakulenko)
* Make files get the NWDC definition from "wdc.h" instead of "wd.h".swallace1995-09-071-1/+1
| | | | | This way, if using wd and/or wcd devices, the wdc controller code will get compiled.
* Bring in Serge Vakulenko's IDE CDROM (ATAPI) driver. A number ofjkh1995-08-181-0/+822
people have now indicated to me that it's working more than well enough to bring into -current. Submitted by: Serge Vakulenko <vak@cronyx.ru>
OpenPOWER on IntegriCloud