diff options
author | Gwendal Grignou <gwendal@google.com> | 2010-05-25 15:31:38 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-10-21 20:21:03 -0400 |
commit | d9027470b88631d0956ac37cdadfdeb9cdcf2c99 (patch) | |
tree | b15273e88431ba734a24965dfc81132ac13bc8bd /drivers/ata/libata-transport.h | |
parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) |
[libata] Add ATA transport class
This is a scheleton for libata transport class.
All information is read only, exporting information from libata:
- ata_port class: one per ATA port
- ata_link class: one per ATA port or 15 for SATA Port Multiplier
- ata_device class: up to 2 for PATA link, usually one for SATA.
Signed-off-by: Gwendal Grignou <gwendal@google.com>
Reviewed-by: Grant Grundler <grundler@google.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-transport.h')
-rw-r--r-- | drivers/ata/libata-transport.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/ata/libata-transport.h b/drivers/ata/libata-transport.h new file mode 100644 index 000000000000..2820cf864f11 --- /dev/null +++ b/drivers/ata/libata-transport.h | |||
@@ -0,0 +1,18 @@ | |||
1 | #ifndef _LIBATA_TRANSPORT_H | ||
2 | #define _LIBATA_TRANSPORT_H | ||
3 | |||
4 | |||
5 | extern struct scsi_transport_template *ata_scsi_transport_template; | ||
6 | |||
7 | int ata_tlink_add(struct ata_link *link); | ||
8 | void ata_tlink_delete(struct ata_link *link); | ||
9 | |||
10 | int ata_tport_add(struct device *parent, struct ata_port *ap); | ||
11 | void ata_tport_delete(struct ata_port *ap); | ||
12 | |||
13 | struct scsi_transport_template *ata_attach_transport(void); | ||
14 | void ata_release_transport(struct scsi_transport_template *t); | ||
15 | |||
16 | __init int libata_transport_init(void); | ||
17 | void __exit libata_transport_exit(void); | ||
18 | #endif | ||