summaryrefslogtreecommitdiff
path: root/sys/dev/ata/wd.c
AgeCommit message (Collapse)Author
2006-03-05Remove more NRND NetBSDisms.Kenneth R Westerback
ok marco@
2006-01-21Invoke disk_detach() and related cleanup work in detach(), rather thanMiod Vallat
zeroref() - just to be on the safe side, should we mess up our ref count.
2005-11-09Don't fall back to fake geometry if ata_get_params() fails.Uwe Stuehler
"looks sane" grange@; tested by niall@ krw@ jmc@ jolan@
2005-09-01On zaurus, don't fall back to fake geometry if ata_get_params() fails,Uwe Stuehler
which can happen if the integrated microdrive's DRQ is not clear. This fixes the drive geometry in the default disklabel. Help from weingart@ and grange@; "mention `grange and i will fix this better after 3.8 or we will be flailed'" deraadt@
2005-08-27Use the ATA security FREEZE LOCK command on disks beforeJonathan Gray
they are presented to the rest of the system to stop a password being set that could deny access to the disk. ok grange@ deraadt@
2005-05-15Use FLUSHCACHE EXT instead of FLUSHCACHE for LBA48 operations.Alexander Yurchenko
First noticed by christos@netbsd (iirc) a long time ago. Tested by canacar@ and krw@.
2004-07-06Replace magic number with a more descriptive #define. This magic number wasAaron Campbell
particularly vile because it looks like a typo (i.e., looks like one "f" is missing), but it's really not. I happened to notice this myself, but the fix is inspired by NetBSD in the interest of keeping the code similar. deraadt@ ok
2004-03-03remove bufq support until i figure out just what's going wrong. ok deraadt@Ted Unangst
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-02-02as grange pointed out, BUFQ_ALLOC might failTed Unangst
2004-01-21dynamic bufq support. basically a nullop. ok grange@Ted Unangst
2004-01-16Do not print CHS info for LBA drives, it's useless for drives withAlexander Yurchenko
capacity > 8GB. Total number of cylinders is enough. ok deraadt@
2004-01-15ansi and some spaces; no f/cAlexander Yurchenko
2003-10-21typos from Tom Cosgrove;Jason McIntyre
2003-09-28kill trailing spaces, no functional changesAlexander Yurchenko
2003-07-20Use LBA48 only when accessing blocks after 137Gb limit or using sectorsAlexander Yurchenko
count more than 255 to reduce registers writting overhead. Gives me about 5% perfomance increase in a dumb synthetic test. Some input and ok from costa@ a long time ago.
2003-06-25implement new means of manipulating buf queues, bufq.Ted Unangst
accessed with BUFQ macros, bufq structs support extensible, potentially changable algorithms and queue formats. the current default scheme should support nice priority based queuing, but is missing some vfs_bio.c support. only on wd.c for now, other drivers are easy converts. as a side bonus, this makes the driver code look cleaner. idea for the name comes from netbsd, but this scheme is incompatible. thanks to various people for testing. ok grange@
2003-05-20change spaces to tabs so i can mail grange diffs :)Ted Unangst
ok grange@
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-21Fix Manuel Bouyer's copyright, from NetBSDAlexander Yurchenko
ok deraadt@
2002-12-19Protect WDCDEBUG_PRINT macro with do {} while (0)Alexander Yurchenko
ok costa@
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-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-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-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-12extra wddone caused biodone panics occasionallyConstantine 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-01-25spellingTodd T. Fries
2000-06-30Convert to new timeout API.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-07remove staticsNiklas Hallqvist
1999-11-17New interface to ATA registers that goes through the lower-level deviceConstantine Sapuntzakis
driver (pciide, wdc, etc.) Remove #define WDCDEBUG from top of files More fixes to ATAPISCSI logic: Not all devices transition correctly between phases. Devices are supposed to keep BSY high until they've set the registers to the next sensible state. Some devices drop BSY and leave the registers in an old or nonsense state. Our polling code is extremely sensitive to this (though an early itnerrupt could also observe this). So, if the device is in an unexpected state, the new polling code waits for a while in the hope that it enters a better state. This seems to fix many of the problems reported. Also, there was a horrible bug which would cause sense to fail on a ATAPI command that sent data to the drive
1999-10-09Fix printout at attach time. Print PIO/DMA mode information after havingConstantine Sapuntzakis
printed line with the name of hard disk.
1999-10-09wdc layer work:Constantine Sapuntzakis
Separate wdc_probe_caps into wdc_probe_caps and wdc_print_caps for more flexibility in printing capability information. Get rid of wdc_final_attach. Include name of device (e.g. cd0), if possible, on errors. atapiscsi layer work: Put a pointer to the SCSI device into ata_drive_datas' drv_softc field Simplify, simplify, simplify. Got rid of a bunch of fields in atapiscsi_softc Delay printing capabilities until we know the real device name (e.g. st0)
1999-08-15o Correctly set type and typename in driver-generated labelTodd C. Miller
Should really use viscopy() when copying atap_model -> d_packname. When wd's become sd's this will be trivial (viscopy() lives in sd.c)
1999-08-10support DIOCRLDINFOTheo de Raadt
1999-08-05Make IDE compile on alpha again:Niklas Hallqvist
use b* instead of mem* functions, adhere to NISADMA for DMA support.
1999-07-22shorten dmesg outputTheo de Raadt
1999-07-22Fix bad144intern.Constantine Sapuntzakis
1999-07-20126 -> NBT_BADConstantine Sapuntzakis
Fix disklabel/bad sectors stuff in wd
1999-07-18Import of NetBSD ATA/IDE stuff.Constantine Sapuntzakis
Introduction of home-grown To enable this stuff in your configuration, look at the NEWATA conf file and go through dev/isa/files.isa dev/pci/files.pci conf/files arch/i386/conf/files.i386 and follow the instructions on commenting/uncommenting stuff