summaryrefslogtreecommitdiff
path: root/sys/dev/atapiscsi
AgeCommit message (Collapse)Author
2006-01-13Enable detaching atapiscsi devices.Miod Vallat
2005-08-01spacing; ok deraadt@David Krause
2005-03-08Cosmetics...Thierry Deval
Mainly remove space between locators parens, replace spaces with tabs where appropriate and consistently align dependencies.
2004-02-21SCSI_DATA_OUT doesn't mean transfer from host in all cases, whenAlexander Yurchenko
requesting sense we reuse the same scsi xfer so flags lie and we should check for C_SENSE too. Eliminates pciide timeouts at the end of every burning with cdrecord. Bug introduced, found and then fixed by costa@. ok costa@ krw@
2004-02-13Cleanup debug messages: use %b for status, %x -> 0x%x, wrap lines.Alexander Yurchenko
2004-02-07Always disable interrupts on a controller for polled commands.Alexander Yurchenko
This solves a long standing problem with hangs during attaching scsibus at atapiscsi on some i386 machines. Help in debugging the problem pval@. Testing pval@, deraadt@, david@ and me on several machines. ok costa@ tdeval@ pb@ deraadt@
2004-01-14Nuke SDEV_NOLUNS, SDEV_FORCELUNS, and PQUIRK_FORCELUNS quirks. AlsoKenneth R Westerback
moreluns field in scsi_link structure. Instead, treat an INQUIRY result that duplicates the INQUIRY result of LUN 0 as proof the LUN does not exist. Compensate for lack of SDEV_NOLUNS where necessary by setting sc_link->luns to 1, which has the same effect. From Marco Peereboom. Don't issue Test Unit Ready command before INQUIRY command - not necessary and potentially harmful to devices with ADEV_NOTUR quirk since quirks have not been set yet. From mycroft@NetBSD ok deraadt@, mvme* changes by miod@.
2004-01-09remove uvm_extern.hBrad Smith
tested on alpha, i386, powerpc, sparc64, m68k. ok miod@
2003-10-21typos from Tom Cosgrove;Jason McIntyre
2003-10-17Merge an old fix from NetBSD:Alexander Yurchenko
- do not stop/unload current DMA operation if an IRQ was not detected by DMA engine unless the force flag was given, fixes DMA problems in shared IRQ setups; - ack interrupt before entering DMA codepath Tested by many. Work by niklas@ but he doesn't want to commit it for some reason.
2003-10-16Allow setting of wdcdebug*_mask variables via preprocessor defines.Alexander Yurchenko
This makes creating debug kernels be much more easy.
2003-09-28kill trailing spaces, no functional changesAlexander Yurchenko
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@
2002-12-19Protect WDCDEBUG_PRINT macro with do {} while (0)Alexander Yurchenko
ok costa@
2002-05-21Move enum definitions to global scope. Local scope is meaningless, andMarc Espie
interferes with C99's anonymous stuff. ok millert@
2002-05-10Dump the actual command to be sentConstantine Sapuntzakis
2002-05-08Drives can go busy after IDENTIFY. Make sure drive is not busy before issuingConstantine Sapuntzakis
SET PIO mode. Heh, this might have been the cause of all those old PIO mode aborts.
2002-03-16Log extra info for ATAPI devicesConstantine Sapuntzakis
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-01duplicate includeArtur Grabowski
Noted by Jacob Meuser <jakemsr@jakemsr.com>
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-25Change scsi_[free|get]_xs to use pool(9); art@ krw@ miod@ ok.Federico G. Schwindt
2001-08-18typo from 1.50; biorn@chips.chalmers.seTheo de Raadt
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-10Wait 1 second after soft reset.Constantine Sapuntzakis
Add back IDENTIFY after soft reset. Fix ch_flags -> ch_status in a couple places
2001-07-03obvious typo in condition; csapuntz@ okNiklas Hallqvist
2001-07-02Compile with WDCDEBUG.Hakan Olsson
2001-06-25Undo premature commitConstantine Sapuntzakis
2001-06-25Whoops, there's nothing at sc_link[1] any moreConstantine Sapuntzakis
2001-06-25Fix excessive resets and device probes by storing IDENTIFY results in theConstantine Sapuntzakis
drvp structure
2001-05-27Cleanup of definesConstantine Sapuntzakis
Fix around the logic in the reset code to be more tolerant of weird devices. Pause a long time after reset to allow device to reboot itself
2001-04-17Turn off DMA on REQUEST SENSEConstantine Sapuntzakis
2001-04-17dma_status variable check is only valid for DMA transfers.Constantine 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-15Fix races between timeouts and interrupts.Constantine Sapuntzakis
Cleanup atapiscsi driver a bit by moving fields out of xfer.
2001-03-05Convert to new timeout API. costa@ ok.Hakan Olsson
2001-01-30Ignore PIOMODE(0x4) errorsConstantine Sapuntzakis
2001-01-29Fix bug where timeouts triggered too early, caused panic on ATAPI tapes.Niklas Hallqvist
Removed hardcoded WDCDEBUG definitions.
2000-12-19A DMA transfer of 4 bytes was failing to complete correctlyConstantine Sapuntzakis
on a combination of VIA South Bridge and old Toshiba drive. DMA transfers of 4 bytes work for my old Mitsumi FX600 drive. Assume Toshiba drive is in error. Avoid situation by only invoking DMA transfers on transfers over 100 bytes. Thanks to Tim Howe for the hardware for testing
2000-11-16Fix timeout computation; ok csapuntz@Niklas Hallqvist
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-08-11DMA transfers should transition to completed state directly tooConstantine Sapuntzakis
2000-08-09Death to acd_stub.c. No longer neededConstantine Sapuntzakis
2000-08-09Unnecessary headerConstantine Sapuntzakis
2000-08-09Fixes for the BCD 48SB CD-ROM C2.4, which seems to like to dropConstantine Sapuntzakis
both DRQ and BSY. The driver has been adjusted to ignore invalid/unexpected phases while traversing the state machine. This may break drives that do no set ireason correctly.
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.