lkml.org 
[lkml]   [2010]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH 28/68] add ide2libata header file
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: [PATCH] add ide2libata header file

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
include/linux/ide2libata.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

Index: b/include/linux/ide2libata.h
===================================================================
--- /dev/null
+++ b/include/linux/ide2libata.h
@@ -0,0 +1,17 @@
+#ifndef __IDE2LIBATA_H
+#define __IDE2LIBATA_H
+
+#include <linux/ide.h>
+
+#define __IDE2LIBATA 1
+
+#define ATA_DEV_ATA ide_disk
+
+#define ata_host ide_host
+#define ata_port hwif_s
+#define ata_device ide_drive_s
+
+#define ata_pio_need_iordy(d) ide_pio_need_iordy(d, d->pio_mode - XFER_PIO_0)
+#define ata_dev_pair ide_get_pair_dev
+
+#endif /* __IDE2LIBATA_H */

\
 
 \ /
  Last update: 2010-01-29 17:09    [W:0.637 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site