diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2006-01-17 10:29:06 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-17 10:29:06 -0500 |
commit | ea9b395fe20ac74be788f415af2622ac8f0c35c7 (patch) | |
tree | d1653e1a4cbe360aa7132ea4e29ab92a02038224 /include/linux/libata.h | |
parent | 61420e147a706ee7c7a902008045547fb2a2a330 (diff) | |
parent | 1bc4ccfff8675adc3d96f91245eb7e2dc0043ca9 (diff) |
Merge branch 'upstream'
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 13 |
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); | |||
439 | extern int ata_pci_init_one (struct pci_dev *pdev, struct ata_port_info **port_info, | 441 | extern 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); |
441 | extern void ata_pci_remove_one (struct pci_dev *pdev); | 443 | extern void ata_pci_remove_one (struct pci_dev *pdev); |
444 | extern int ata_pci_device_suspend(struct pci_dev *pdev, pm_message_t state); | ||
445 | extern int ata_pci_device_resume(struct pci_dev *pdev); | ||
442 | #endif /* CONFIG_PCI */ | 446 | #endif /* CONFIG_PCI */ |
443 | extern int ata_device_add(const struct ata_probe_ent *ent); | 447 | extern int ata_device_add(const struct ata_probe_ent *ent); |
444 | extern void ata_host_set_remove(struct ata_host_set *host_set); | 448 | extern 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 | |||
448 | extern int ata_scsi_error(struct Scsi_Host *host); | 452 | extern int ata_scsi_error(struct Scsi_Host *host); |
449 | extern int ata_scsi_release(struct Scsi_Host *host); | 453 | extern int ata_scsi_release(struct Scsi_Host *host); |
450 | extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); | 454 | extern unsigned int ata_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc); |
455 | extern int ata_scsi_device_resume(struct scsi_device *); | ||
456 | extern int ata_scsi_device_suspend(struct scsi_device *); | ||
457 | extern int ata_device_resume(struct ata_port *, struct ata_device *); | ||
458 | extern int ata_device_suspend(struct ata_port *, struct ata_device *); | ||
451 | extern int ata_ratelimit(void); | 459 | extern int ata_ratelimit(void); |
452 | 460 | ||
453 | /* | 461 | /* |
@@ -483,7 +491,8 @@ extern u8 ata_bmdma_status(struct ata_port *ap); | |||
483 | extern void ata_bmdma_irq_clear(struct ata_port *ap); | 491 | extern void ata_bmdma_irq_clear(struct ata_port *ap); |
484 | extern void ata_qc_complete(struct ata_queued_cmd *qc); | 492 | extern void ata_qc_complete(struct ata_queued_cmd *qc); |
485 | extern void ata_eng_timeout(struct ata_port *ap); | 493 | extern void ata_eng_timeout(struct ata_port *ap); |
486 | extern void ata_scsi_simulate(u16 *id, struct scsi_cmnd *cmd, | 494 | extern 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 *)); |
488 | extern int ata_std_bios_param(struct scsi_device *sdev, | 497 | extern 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 | |||
506 | extern unsigned int ata_pio_need_iordy(const struct ata_device *); | ||
496 | extern int ata_timing_compute(struct ata_device *, unsigned short, | 507 | extern int ata_timing_compute(struct ata_device *, unsigned short, |
497 | struct ata_timing *, int, int); | 508 | struct ata_timing *, int, int); |
498 | extern void ata_timing_merge(const struct ata_timing *, | 509 | extern void ata_timing_merge(const struct ata_timing *, |