libata-scsi.c (6f366c1c751454df3d1c0f25f15ee0164821112a) libata-scsi.c (6ffa01d88c9dd45e2ed917b5eeeb494d07efb1ab)
1/*
2 * libata-scsi.c - helper library for ATA
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2003-2004 Red Hat, Inc. All rights reserved.

--- 496 unchanged lines hidden (view full) ---

505 if (err & 0x10) printk("SectorIdNotFound ");
506 if (err & 0x02) printk("TrackZeroNotFound ");
507 if (err & 0x01) printk("AddrMarkNotFound ");
508 printk("}\n");
509 }
510 }
511}
512
1/*
2 * libata-scsi.c - helper library for ATA
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2003-2004 Red Hat, Inc. All rights reserved.

--- 496 unchanged lines hidden (view full) ---

505 if (err & 0x10) printk("SectorIdNotFound ");
506 if (err & 0x02) printk("TrackZeroNotFound ");
507 if (err & 0x01) printk("AddrMarkNotFound ");
508 printk("}\n");
509 }
510 }
511}
512
513#ifdef CONFIG_PM
513/**
514 * ata_scsi_device_suspend - suspend ATA device associated with sdev
515 * @sdev: the SCSI device to suspend
516 * @mesg: target power management message
517 *
518 * Request suspend EH action on the ATA device associated with
519 * @sdev and wait for the operation to complete.
520 *

--- 108 unchanged lines hidden (view full) ---

629 ata_port_schedule_eh(ap);
630
631 out_unlock:
632 spin_unlock_irqrestore(ap->lock, flags);
633 out:
634 sdev->sdev_gendev.power.power_state = PMSG_ON;
635 return 0;
636}
514/**
515 * ata_scsi_device_suspend - suspend ATA device associated with sdev
516 * @sdev: the SCSI device to suspend
517 * @mesg: target power management message
518 *
519 * Request suspend EH action on the ATA device associated with
520 * @sdev and wait for the operation to complete.
521 *

--- 108 unchanged lines hidden (view full) ---

630 ata_port_schedule_eh(ap);
631
632 out_unlock:
633 spin_unlock_irqrestore(ap->lock, flags);
634 out:
635 sdev->sdev_gendev.power.power_state = PMSG_ON;
636 return 0;
637}
638#endif /* CONFIG_PM */
637
638/**
639 * ata_to_sense_error - convert ATA error to SCSI error
640 * @id: ATA device number
641 * @drv_stat: value contained in ATA status register
642 * @drv_err: value contained in ATA error register
643 * @sk: the sense key we'll fill out
644 * @asc: the additional sense code we'll fill out

--- 2715 unchanged lines hidden ---
639
640/**
641 * ata_to_sense_error - convert ATA error to SCSI error
642 * @id: ATA device number
643 * @drv_stat: value contained in ATA status register
644 * @drv_err: value contained in ATA error register
645 * @sk: the sense key we'll fill out
646 * @asc: the additional sense code we'll fill out

--- 2715 unchanged lines hidden ---