aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2006-01-17 10:29:06 -0500
committerJeff Garzik <jgarzik@pobox.com>2006-01-17 10:29:06 -0500
commitea9b395fe20ac74be788f415af2622ac8f0c35c7 (patch)
treed1653e1a4cbe360aa7132ea4e29ab92a02038224 /include/linux/libata.h
parent61420e147a706ee7c7a902008045547fb2a2a330 (diff)
parent1bc4ccfff8675adc3d96f91245eb7e2dc0043ca9 (diff)
Merge branch 'upstream'
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 596858e37cc1..5aa8b133f011 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -125,6 +125,8 @@ enum {
125 ATA_FLAG_DEBUGMSG = (1 << 10), 125 ATA_FLAG_DEBUGMSG = (1 << 10),
126 ATA_FLAG_NO_ATAPI = (1 << 11), /* No ATAPI support */ 126 ATA_FLAG_NO_ATAPI = (1 << 11), /* No ATAPI support */
127 127
128 ATA_FLAG_SUSPENDED = (1 << 12), /* port is suspended */
129
128 ATA_QCFLAG_ACTIVE = (1 << 1), /* cmd not yet ack'd to scsi lyer */ 130 ATA_QCFLAG_ACTIVE = (1 << 1), /* cmd not yet ack'd to scsi lyer */
129 ATA_QCFLAG_SG = (1 << 3), /* have s/g table? */ 131 ATA_QCFLAG_SG = (1 << 3), /* have s/g table? */
130 ATA_QCFLAG_SINGLE = (1 << 4), /* no s/g, just a single buffer */ 132 ATA_QCFLAG_SINGLE = (1 << 4), /* no s/g, just a single buffer */
@@ -439,6 +441,8 @@ extern void ata_std_ports(struct ata_ioports *ioaddr);
439extern int ata_pci_init_one (struct pci_dev *pdev, struct ata_port_info **port_info, 441extern int ata_pci_init_one (struct pci_dev *pdev, struct ata_port_info **port_info,
440 unsigned int n_ports); 442 unsigned int n_ports);
441extern void ata_pci_remove_one (struct pci_dev *pdev); 443extern void ata_pci_remove_one (struct pci_dev *pdev);
444extern int ata_pci_device_suspend(struct pci_dev *pdev, pm_message_t state);
445extern int ata_pci_device_resume(struct pci_dev *pdev);
442#endif /* CONFIG_PCI */ 446#endif /* CONFIG_PCI */
443extern int ata_device_add(const struct ata_probe_ent *ent); 447extern int ata_device_add(const struct ata_probe_ent *ent);
444extern void ata_host_set_remove(struct ata_host_set *host_set); 448extern void ata_host_set_remove(struct ata_host_set *host_set);
@@ -448,6 +452,10 @@ extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmn
448extern int ata_scsi_error(struct Scsi_Host *host); 452extern int ata_scsi_error(struct Scsi_Host *host);
449extern int ata_scsi_release(struct Scsi_Host *host); 453extern int ata_scsi_release(struct Scsi_Host *host);
450extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); 454extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc);
455extern int ata_scsi_device_resume(struct scsi_device *);
456extern int ata_scsi_device_suspend(struct scsi_device *);
457extern int ata_device_resume(struct ata_port *, struct ata_device *);
458extern int ata_device_suspend(struct ata_port *, struct ata_device *);
451extern int ata_ratelimit(void); 459extern int ata_ratelimit(void);
452 460
453/* 461/*
@@ -483,7 +491,8 @@ extern u8 ata_bmdma_status(struct ata_port *ap);
483extern void ata_bmdma_irq_clear(struct ata_port *ap); 491extern void ata_bmdma_irq_clear(struct ata_port *ap);
484extern void ata_qc_complete(struct ata_queued_cmd *qc); 492extern void ata_qc_complete(struct ata_queued_cmd *qc);
485extern void ata_eng_timeout(struct ata_port *ap); 493extern void ata_eng_timeout(struct ata_port *ap);
486extern void ata_scsi_simulate(u16 *id, struct scsi_cmnd *cmd, 494extern void ata_scsi_simulate(struct ata_port *ap, struct ata_device *dev,
495 struct scsi_cmnd *cmd,
487 void (*done)(struct scsi_cmnd *)); 496 void (*done)(struct scsi_cmnd *));
488extern int ata_std_bios_param(struct scsi_device *sdev, 497extern int ata_std_bios_param(struct scsi_device *sdev,
489 struct block_device *bdev, 498 struct block_device *bdev,
@@ -493,6 +502,8 @@ extern int ata_scsi_slave_config(struct scsi_device *sdev);
493/* 502/*
494 * Timing helpers 503 * Timing helpers
495 */ 504 */
505
506extern unsigned int ata_pio_need_iordy(const struct ata_device *);
496extern int ata_timing_compute(struct ata_device *, unsigned short, 507extern int ata_timing_compute(struct ata_device *, unsigned short,
497 struct ata_timing *, int, int); 508 struct ata_timing *, int, int);
498extern void ata_timing_merge(const struct ata_timing *, 509extern void ata_timing_merge(const struct ata_timing *,