summaryrefslogtreecommitdiff
path: root/include/linux/libata.h
AgeCommit message (Collapse)AuthorFilesLines
2005-10-04libata: bitmask based pci init functions for one or two portsAlan Cox1-1/+5
This redoes the n_ports logic I proposed before as a bitmask. ata_pci_init_native_mode is now used with a mask allowing for mixed mode stuff later on. ata_pci_init_legacy_port is called with port number and does one port now not two. Instead it is called twice by the ata init logic which cleans both of them up. There are stil limits in the original code left over - IRQ/port mapping for legacy mode should be arch specific values - You can have one legacy mode IDE adapter per PCI root bridge on some systems - Doesn't handle mixed mode devices yet (but is now a lot closer to it)
2005-10-04Merge libata upstream (which includes C/H/S support) include irq-pio branch.Jeff Garzik1-1/+7
Merge branch 'upstream'
2005-09-30[PATCH] libata irq-pio: rename atapi_packet_task() and commentsAlbert Lee1-3/+3
Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-09-30[PATCH] libata irq-pio: add comments and cleanupAlbert Lee1-9/+10
Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-09-28/spare/repo/libata-dev branch 'chs-support'Jeff Garzik1-0/+6
2005-09-28[PATCH] libata: interrupt driven pio for LLDAlbert Lee1-0/+2
libata.h: libata-core: Add ATA_FLAG_PIO_POLLING flag for LLDs that expect interrupt for command completion only. sata_nv.c: sata_vsc.c: irq handler is wrapper around ata_host_intr(), can handle PIO interrupts. sata_promise.c: sata_sx4.c: sata_qstor.c: sata_mv.c: Private irq handler. Polling mode ATA_FLAG_PIO_POLLING used for compatibility. Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-09-28[PATCH] libata: interrupt driven pio for libata-coreAlbert Lee1-2/+2
- add PIO_ST_FIRST for the state before sending ATAPI CDB or sending "ATA PIO data out" first data block. - add ATA_TFLAG_POLLING and ATA_DFLAG_CDB_INTR flags - remove the ATA_FLAG_NOINTR flag since the interrupt handler is now aware of the states - modify ata_pio_sector() and atapi_pio_bytes() to work in the interrupt context - modify the ata_host_intr() to handle PIO interrupts - modify ata_qc_issue_prot() to initialize states - atapi_packet_task() changed to handle "ATA PIO data out" first data block - support the pre-ATA4 ATAPI device which raise interrupt when ready to receive CDB Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-09-28[PATCH] libata: rename host statesAlbert Lee1-10/+10
Changes: s/PIO_ST_/HSM_ST_/ and s/pio_task_state/hsm_task_state/. Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-09-24Merge /spare/repo/linux-2.6/Jeff Garzik1-0/+1
2005-09-16[PATCH] PATCH: remove function for non-PCI as requestedAlan Cox1-0/+1
Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-09-08Merge /spare/repo/linux-2.6/ Jeff Garzik1-1/+1
2005-09-05/spare/repo/libata-dev branch 'iomap-try3'Jeff Garzik1-0/+1
2005-08-30[libata] update several drivers to use pci_iomap()/pci_iounmap()Jeff Garzik1-0/+1
2005-08-30[libata] allow ATAPI to be enabled with new atapi_enabled module optionJeff Garzik1-1/+0
ATAPI is getting close to being ready. To increase exposure, we enable the code in the upstream kernel, but default it to off (present behavior). Users must pass atapi_enabled=1 as a module option (if module) or on the kernel command line (if built in) to turn on discovery of their ATAPI devices.
2005-08-30Merge libata branch 'chs-support' to latest upstream kernel.Jeff Garzik1-22/+27
2005-08-29Merge /spare/repo/linux-2.6/Jeff Garzik1-3/+5
2005-08-29[libata] license change, other bitsJeff Garzik1-19/+22
- changes license of all code from OSL+GPL to plain ole GPL - except for NVIDIA, who hasn't yet responded about sata_nv - copyright holders were already contacted privately - adds info in each driver about where hardware/protocol docs may be obtained - where I have made major contributions, updated copyright dates
2005-08-27libata: fix a few alan-ismsJeff Garzik1-1/+0
2005-08-27[PATCH] libata: regularize dma_start/stop argumentsAlan Cox1-2/+3
Needed for a few PATA drivers. Also fix up a wrong comment. Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-08-23[PATCH] fix atapi_packet_task vs. intr race (take 2)Tejun Heo1-0/+2
Interrupts from devices sharing the same IRQ could cause ata_host_intr to finish commands being processed by atapi_packet_task if the commands are using ATA_PROT_ATAPI_NODATA or ATA_PROT_ATAPI_DMA protocol. This is because libata interrupt handler is unaware that interrupts are not expected during that period. This patch adds ATA_FLAG_NOINTR flag to tell the interrupt handler that we're not expecting interrupts. Note that once proper HSM is implemented for interrupt-driven PIO, this should be merged into it and this flag will be removed. ahci.c is a different kind of beast, so it's left alone. * The following drivers use ata_qc_issue_prot and ata_interrupt, so changes in libata core will do. ata_piix sata_sil sata_svw sata_via sata_sis sata_uli * The following drivers use ata_qc_issue_prot and custom intr handler. They need this change to work correctly. sata_nv sata_vsc * The following drivers use custom issue function and intr handler. Currently all custom issue functions don't support ATAPI, so this change is irrelevant, updated for consistency and to avoid later mistakes. sata_promise sata_qstor sata_sx4 Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2005-07-31libata: trim trailing whitespace.Jeff Garzik1-1/+1
Also, fixup a tabs-to-spaces block of code in ata_piix.
2005-06-22Merge upstream kernel changes into 'C/H/S support' branch of libata.Jeff Garzik1-0/+67
2005-06-04Automatic merge of /spare/repo/linux-2.6/.git branch HEAD1-0/+66
2005-06-03Automatic merge of /spare/repo/linux-2.6/.git branch HEAD1-0/+1
2005-06-03libata: update inline source docsEdward Falk1-0/+58
2005-05-27libata: Fix use-after-iounmapJeff Garzik1-0/+1
Jens Axboe pointed out that the iounmap() call in libata was occurring too early, and some drivers (ahci, probably others) were using ioremap'd memory after it had been unmapped. The patch should address that problem by way of improving the libata driver API: * move ->host_stop() call after all ->port_stop() calls have occurred. * create default helper function ata_host_stop(), and move iounmap() call there. * add ->host_stop_prewalk() hook, use it in sata_qstor.c (hi Mark). sata_qstor appears to require the host-stop-before-port-stop ordering that existed prior to applying the attached patch.
2005-05-16[PATCH] libata: flush COMRESET set and clearBrett Russ1-0/+7
Updated patch to fix erroneous flush of COMRESET set and missing flush of COMRESET clear. Created a new routine scr_write_flush() to try to prevent this in the future. Also, this patch is based on libata-2.6 instead of the previous libata-dev-2.6 based patch. Signed-off-by: Brett Russ <russb@emc.com> Index: libata-2.6/drivers/scsi/libata-core.c ===================================================================
2005-05-12[libata] C/H/S support, for older devicesAlbert Lee1-0/+6
2005-05-12[PATCH] libata basic detection and errata for PATA->SATA bridgesBrad Campbell1-0/+1
This patch works around an issue with WD drives (and possibly others) over SiL PATA->SATA Bridges on SATA controllers locking up with transfers > 200 sectors. Signed-off-by: Brad Campbell <brad@wasp.net.au>
2005-04-17Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds1-0/+599
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!