summaryrefslogtreecommitdiff
path: root/sys/dev/ata
AgeCommit message (Collapse)Author
2003-05-20change spaces to tabs so i can mail grange diffs :)Ted Unangst
ok grange@
2003-04-14revert last change since it causes problems on some devicesAlexander Yurchenko
2003-04-12Don't wait for DRQ after issuing IDENTIFY command. Fix long detectingAlexander Yurchenko
of atapi devices. Problem reported by Nicolas Baldi <nib1@cs.pitt.edu>, diff from costa@.
2003-04-09sprintf->snprintf. miod@, grange@ ok.Hakan Olsson
2003-04-06Some easy strcpy elimination.Kenneth R Westerback
a) strcpy -> strncpy for copies into disklabel fields d_packname and d_typename. b) '16' -> 'sizeof d_packname' or 'sizeof d_typename' in existing strncpy's. ok millert@
2003-02-28Increase IDENTIFY command timeout to 3 sec, as required by someAlexander Yurchenko
drives; from NetBSD
2003-02-25Correct the size of __reserved9 field in struct ataparams;Alexander Yurchenko
from Yichen Xie's bounds checker via tedu@ ok costa@
2003-02-21Fix Manuel Bouyer's copyright, from NetBSDAlexander Yurchenko
ok deraadt@
2003-02-13Don't force all ATAPI devices to PIO mode 3, there areAlexander Yurchenko
devices which only support PIO mode 2 or less. Use atap_oldpiotiming to obtain supported mode for such devices. Also use SET FEATURES only for PIO mode > 2. Work by Alec Skelly <alec@dtkco.com> with my little help. ok costa@
2003-01-10splio->splbio in commentAlexander Yurchenko
2002-12-23dev/ata/ata.c should depends on wdc_base since it uses some callsAlexander Yurchenko
from dev/ic/wdc.c; from NetBSD. ok miod@ deraadt@
2002-12-19Protect WDCDEBUG_PRINT macro with do {} while (0)Alexander Yurchenko
ok costa@
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Diff generated by Chris Kuethe.
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-05-24protect biodone with splbio.Artur Grabowski
2002-05-03LBA48 support.Grigoriy Orlov
Adopted from NetBSD by Alexander Yurchenko <grange@openbsd.ru>. costa@ ok.
2002-03-27Calculate the maximum queue depth correctly.Grigoriy Orlov
PR2490 from Alexander Yurchenko <grange@rt.mipt.ru>
2002-03-16Use wdc_setdriveConstantine Sapuntzakis
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-01-07pass the proc* down the ioctl chain to controller; mjacob@ csapuntz@ okMichael Shalayeff
2001-11-28Add tag line. Thanks to David KrauseConstantine Sapuntzakis
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-09-21Correct some pryntf() usage: get the correct number of arguments in theMiod Vallat
correct order.
2001-09-20occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok
2001-08-06Remove legacy __BDEVSW_DUMP_OLD_TYPE code.Miod Vallat
2001-07-31Go down only one Ultra DMA mode at a time. Thanks to Matt Evans forConstantine Sapuntzakis
suggesting this fix. Update atapiscsi Ultra DMA downgrade logic.
2001-07-31On DMA timeouts, stop busmaster PCIIDE and reset channel. Avoid readingConstantine Sapuntzakis
device registers as this may cause lock-ups on some chipsets Clean-up in atapiscsi. Get rid of claim_irq. Instead, atapiscsi always returns -1 (maybe) from the interrupt handler.
2001-07-21Undo last fix to ata_wdc.c. Don't deregister timeout in generic codeConstantine Sapuntzakis
2001-07-21Don't hang on missing interruptsConstantine Sapuntzakis
2001-07-12extra wddone caused biodone panics occasionallyConstantine Sapuntzakis
2001-07-12Rework of probe code. Try better to deal with floating buses. DependingConstantine Sapuntzakis
on the value floating on the bus, we would occasionally skip the register writability tests. Whoops... Move fix for a flash device that doesn't wake up until a command is sent Try to supress spurious interrupts. However, if one does happen, acknowledge it anyway by reading status. This prevents the interrupt condition from persisting.
2001-07-09ch_flags should be ch_statusConstantine Sapuntzakis
2001-06-25Fix excessive resets and device probes by storing IDENTIFY results in theConstantine Sapuntzakis
drvp structure
2001-05-01Add fields to keep track of reset capabilities and resets betterConstantine Sapuntzakis
2001-04-30Move ioctl stuff to low-level driverConstantine Sapuntzakis
2001-04-02ATA_POLL should have been AT_POLLConstantine Sapuntzakis
Flushcache on shutdown used to pass both AT_POLL and AT_WAIT. The two flags do not make sense together. Should fix panic when shutting down from ddb
2001-03-25Missing irqack, cleanup DMA error handlingConstantine Sapuntzakis
2001-03-25Minor mods to DMA interface - get rid of unnecessary args. Allow DMA ↵Constantine Sapuntzakis
functions to return status flags. Note: Changing code to have DMA interface indicate when I/O is done (a la NetBSD) was considered. It was rejected due to questionable backward compatability with ISA DMA and MAC obio DMA Added irqack from NetBSD (though this feature should really be in the PCI interrupt handlers) Use pool
2001-03-23atactl SMART support; wouter@yourcreativesolutions.nlTheo de Raadt
2001-01-29Fix bug where timeouts triggered too early, caused panic on ATAPI tapes.Niklas Hallqvist
Removed hardcoded WDCDEBUG definitions.
2001-01-25spellingTodd T. Fries
2000-10-29undo this; adds files, unacceptable at this point in releaseTheo de Raadt
2000-10-28Reduce footprint of ATA driver by only having PROBE debug messages compiledConstantine Sapuntzakis
in by default.
2000-07-20Fix to ATA detect. Some devices seem to be comatose after resetConstantine Sapuntzakis
(return 0x00 status persistently). Send them identify to wake them up. Flag value 0x10000 will enable probe messages for a channel/controller. When UKC supports setting flags, this will be useful debugging failing IDE detects without kernel recompiles.
2000-06-30Convert to new timeout API.Artur Grabowski
2000-06-30Convert some parts to new timeouts.Artur Grabowski
2000-04-10Added support for wd detach (merge from NetBSD). Support forConstantine Sapuntzakis
SCSI/ATAPI detach is not here yet. Minor cleanup of wdc. Downgrade to UDMA mode 1 before going further. Want to stay in UDMA modes because they're more error-resilient due to a CRC. Got rid of some of the ridiculous amount of softc sharing going on. Hopefully, this will make the life of whoever goes in and fixes the ref-counting to be correct easier.
2000-04-07correct debug printoutsNiklas Hallqvist
2000-04-07remove staticsNiklas Hallqvist