linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sata_sil24: endian anotations
@ 2006-06-06  3:31 Alexey Dobriyan
  2006-06-12  3:07 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-06-06  3:31 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Tejun Heo, linux-ide, Andew Morton

With help from Tejun Heo.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 Better patch instead of sata_sil24-endian-annotations.patch

 drivers/scsi/sata_sil24.c |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

--- a/drivers/scsi/sata_sil24.c
+++ b/drivers/scsi/sata_sil24.c
@@ -37,9 +37,9 @@
  * Port request block (PRB) 32 bytes
  */
 struct sil24_prb {
-	u16	ctrl;
-	u16	prot;
-	u32	rx_cnt;
+	__le16	ctrl;
+	__le16	prot;
+	__le32	rx_cnt;
 	u8	fis[6 * 4];
 };
 
@@ -47,17 +47,17 @@ struct sil24_prb {
  * Scatter gather entry (SGE) 16 bytes
  */
 struct sil24_sge {
-	u64	addr;
-	u32	cnt;
-	u32	flags;
+	__le64	addr;
+	__le32	cnt;
+	__le32	flags;
 };
 
 /*
  * Port multiplier
  */
 struct sil24_port_multiplier {
-	u32	diag;
-	u32	sactive;
+	__le32	diag;
+	__le32	sactive;
 };
 
 enum {


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sata_sil24: endian anotations
  2006-06-06  3:31 [PATCH] sata_sil24: endian anotations Alexey Dobriyan
@ 2006-06-12  3:07 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2006-06-12  3:07 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Tejun Heo, linux-ide, Andew Morton

Alexey Dobriyan wrote:
> With help from Tejun Heo.
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
> 
>  Better patch instead of sata_sil24-endian-annotations.patch

applied



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-12  3:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-06  3:31 [PATCH] sata_sil24: endian anotations Alexey Dobriyan
2006-06-12  3:07 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).