diff options
author | Tejun Heo <htejun@gmail.com> | 2006-02-12 08:47:04 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-12 14:24:41 -0500 |
commit | 0e949ff304a7ca07db38c17fbbf3ead1085d7bbf (patch) | |
tree | ecc4834d27e221863dc5dbef3c13763dbdf4dd56 /include/linux/libata.h | |
parent | 48f80e12abbc1e9034e54614c30e7c304209ce99 (diff) |
[PATCH] libata: implement ata_dev_id_c_string()
ata_dev_id_c_string() reads ATA string from the specified offset of
the given IDENTIFY PAGE and puts it in the specified buffer in trimmed
and NULL-terminated form. The caller must supply a buffer which is
one byte larger than the maximum size of the target ID string.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 83a1f2ead861..0853032673b7 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -540,6 +540,8 @@ extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg, | |||
540 | extern unsigned int ata_dev_classify(const struct ata_taskfile *tf); | 540 | extern unsigned int ata_dev_classify(const struct ata_taskfile *tf); |
541 | extern void ata_dev_id_string(const u16 *id, unsigned char *s, | 541 | extern void ata_dev_id_string(const u16 *id, unsigned char *s, |
542 | unsigned int ofs, unsigned int len); | 542 | unsigned int ofs, unsigned int len); |
543 | extern void ata_dev_id_c_string(const u16 *id, unsigned char *s, | ||
544 | unsigned int ofs, unsigned int len); | ||
543 | extern void ata_dev_config(struct ata_port *ap, unsigned int i); | 545 | extern void ata_dev_config(struct ata_port *ap, unsigned int i); |
544 | extern void ata_bmdma_setup (struct ata_queued_cmd *qc); | 546 | extern void ata_bmdma_setup (struct ata_queued_cmd *qc); |
545 | extern void ata_bmdma_start (struct ata_queued_cmd *qc); | 547 | extern void ata_bmdma_start (struct ata_queued_cmd *qc); |