summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pciide.c
AgeCommit message (Collapse)Author
2001-05-22Compile with WDCDEBUG. Fix a debug printout.Hakan Olsson
2001-04-17Enable UDMA for rev 0xd0 SiS again (undone in last update)Chris Cappuccio
2001-04-04Disable ATAPI DMA on Promise controllers and some ALi controllers.Constantine Sapuntzakis
Change Bus Master DMA Stop to not trust what we read from the device.
2001-04-04Minor cleanup to minimize diffs with NetBSDConstantine Sapuntzakis
2001-03-26Support for Ultra/66 on Highpoint HPT366 and Ultra/100 on HPT370Chris Cappuccio
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-16Pull in NetBSD Promise Ultra/100 supportChris Cappuccio
(Now we actually program Ultra/100 modes instead of Ultra/66 modes on the Ultra/100 controller) This also fixes interrupt handling on the PDC20265/7 controller. I suspect this new interrupt routine for the PDC20255/7 controller should also be used on the PDC20262.
2001-02-22Use real VIA product names for IDE controllers rather then contrived ones,Chris Cappuccio
ok deraadt@
2001-02-06Laptop ICH2 IDEChris Cappuccio
2001-01-29Add wdc_print_current_modes to print current transfer modes set on theConstantine Sapuntzakis
devices. Print after attach in wdc_isa, wdc_isapnp, wdc_pcmcia. pciide_print_modes rewritten to use wdc_print_current_modes. Disable wdc_print_caps since it's not as useful. Inspired by NetBSD. Thanks to Dale and Theo for pointing out this improvement.
2001-01-22from NetBSD: only pass one byte for control register handle (Manuel Bouyer)Chris Cappuccio
2001-01-18Only try VIA CLK66 bit code for VIA rev >= 6,Chris Cappuccio
Only try UDMA on ALi rev >= 0x20 (as per Daniela Engert's ChipList.txt) After I fix a few more bugs I will re-enable the ALi code
2001-01-08From chris@Jeremy Evans
Partial sync w/NetBSD -Support Ultra/100 on Intel ICH2 (Tomokazu HARADA) -Support Ultra/66 on VIA Apollo (Manuel Bouyer) -Disable 16bit io-space limitation on Promise (Charles Hannum)
2000-12-08Fix attach message printing for CY82C693U to be like pciide_print_channels().Todd C. Miller
It is done inline for the CY82C693U since it only has one channel.
2000-12-06supposed changes needed for 82801BA support; chrisTheo de Raadt
2000-11-20support at least ATA6 on 82801BA; chrisTheo de Raadt
2000-11-13Don't map unsafe registers from controllers that require 16 bit io spaceChris Cappuccio
(from NetBSD)
2000-11-07Promise PCI devs renamedChris Cappuccio
2000-10-2182801BA is DMA, in 3 months there will be lots of theseTheo de Raadt
2000-10-21(Temporarily) disable DMA support for OPTi 82C621 and untested 82C568/82D568Chris Cappuccio
because it breaks on two different revisions in two different ways and is so old and slow anyways that it isn't that much of an advantage to have DMA
2000-10-16Fix a bug introduced in 1.25->1.26 with regards to printing channelChris Cappuccio
information, tested by deraadt
2000-08-25Match Promise Ultra/100 as PDC20262 instead of PDC20246Chris Cappuccio
(netbsd)
2000-08-05Support Promise Ultra/100 as found on some Microstar motherboardsChris Cappuccio
(From NetBSD PR 10756)
2000-07-31Fix PR 1341 -Chris Cappuccio
Don't enable UDMA modes on VIA "82C586" with revision under 6
2000-07-07Support Intel 440MX Ultra/33 controller found on various laptopsChris Cappuccio
2000-07-07From NetBSD:Chris Cappuccio
Match Promise Ultra/100 controller (Ultra/100 drives will be used as Ultra/66 fow now) Work-around for a bug in revision D2 AMD controllers (They do not work correctly with Multiword-DMA mode, workaround is to disable MW DMA, but this bug does not affect all drives so there is an option PCIIDE_AMD756_ENABLEDMA to stop this behavior. You know you have this bug when your system hangs completely with this option.)
2000-06-26interface can be faked for cmd chipsChris Cappuccio
2000-06-26from NetBSDChris Cappuccio
support CMD 648/649 UDMA66 controllers fix promise UDMA66 cable check
2000-06-13clean up Cypress section (obviously nobody has used these w/OpenBSD)Chris Cappuccio
also sync w/NetBSD support map memory mapped or IO mapped controllers program DMA modes for Cypress controllers support for OPTi chipsets (82C621 and compatible 82C568/82D568)
2000-05-04Don't attach a PCTECH RZ1000 on the PCI bus--it has severe problems.Todd C. Miller
It will attach at wdc and be less problematical, though I still wouldn't trust my data to it.
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-03-24From NetBSD:Chris Cappuccio
Don't reset cp->hw_ok ro 0 when cp isn't initialised in cy693_chip_map() Support for AMD 756 IDE controller
2000-01-17From Manuel Bouyer -Chris Cappuccio
Don't set WDC_CAPABILITY_UDMA at all for SiS rev < 0xd0
2000-01-11Clean up my cruftChris Cappuccio
2000-01-11use PCI_REVISION macroChris Cappuccio
2000-01-10Don't enable UDMA modes for revisions of SiS 5513 < 0xd0Chris Cappuccio
The only revisions I know which don't actually support UDMA are 0x09 and below.. But the only revision I know which does support UDMA is 0xd0 (and presumably above that)
2000-01-10Sync w/NetBSD regarding Promise PDC20262 support (the Promise Ultra/66Chris Cappuccio
controller actually works now!) and Manuel Bouyer's copyright.
1999-11-23Bugfix from NetBSD. For SiS, PIIX, and Apollo IDE controllers,Chris Cappuccio
the secondary channel was ignored when the primary channel is disabled.
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-11-030x5597 will never match an SiS pciide controller because they are 0x5513Chris Cappuccio
The NetBSD pcidevs is confusing because it calles "5597_IDE" 0x5513, but OpenBSD pcidevs just had "SiS 5597" as 0x5597
1999-11-02fix printf (had an extra space)Chris Cappuccio
add useless comments to new Intel code
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-10-04promise support; chris@ took it from netbsdTheo de Raadt
1999-09-01Fix messed up logic that could cause an unmap of an unmapped region.Constantine Sapuntzakis
1999-08-05It is not ok to do #ifdef processing inside argument lists of calls, whereNiklas Hallqvist
it is feasible the function is really a macro, like pci_intr_establish is on alpha.
1999-08-04new bus_dma API, match itNiklas Hallqvist
1999-07-30printout flawsTheo de Raadt
1999-07-25I've gotten complaints about failed DMA with the Acer Labs PCI IDEConstantine Sapuntzakis
chipset. I will disable it until the arrival of the Acer databook so I can validate the driver against some specs.
1999-07-22shorten dmesg; rename primary/secondary to channel 0/1; save space inTheo de Raadt
vendor/product tables
1999-07-20Fix SIS 5597 define.Federico G. Schwindt