Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Use "<<" instead of "<" for shift-to-left.
details: https://anonhg.NetBSD.org/src/rev/89928ff672cc
branches: trunk
changeset: 780435:89928ff672cc
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Jul 23 14:07:03 2012 +0000
description:
Use "<<" instead of "<" for shift-to-left.
diffstat:
sys/dev/ic/mvsatareg.h | 50 +++++++++++++++++++++++++-------------------------
1 files changed, 25 insertions(+), 25 deletions(-)
diffs (64 lines):
diff -r 7e430bf59afc -r 89928ff672cc sys/dev/ic/mvsatareg.h
--- a/sys/dev/ic/mvsatareg.h Mon Jul 23 13:32:19 2012 +0000
+++ b/sys/dev/ic/mvsatareg.h Mon Jul 23 14:07:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvsatareg.h,v 1.1 2009/07/27 12:34:14 kiyohara Exp $ */
+/* $NetBSD: mvsatareg.h,v 1.2 2012/07/23 14:07:03 jakllsch Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -191,30 +191,30 @@
#define SATA_BISTDW1 0x338 /* BIST DW1 */
#define SATA_BISTDW2 0x33c /* BIST DW2 */
#define SATA_SATAICFG 0x050 /* Serial-ATA Interface Configuration */
-#define SATA_SATAICFG_REFCLKCNF_20MHZ (0 < 0)
-#define SATA_SATAICFG_REFCLKCNF_25MHZ (1 < 0)
-#define SATA_SATAICFG_REFCLKCNF_30MHZ (2 < 0)
-#define SATA_SATAICFG_REFCLKCNF_40MHZ (3 < 0)
-#define SATA_SATAICFG_REFCLKCNF_MASK (3 < 0)
-#define SATA_SATAICFG_REFCLKDIV_1 (0 < 2)
-#define SATA_SATAICFG_REFCLKDIV_2 (1 < 2) /* Used 20 or 25MHz */
-#define SATA_SATAICFG_REFCLKDIV_4 (2 < 2) /* Used 40MHz */
-#define SATA_SATAICFG_REFCLKDIV_3 (3 < 2) /* Used 30MHz */
-#define SATA_SATAICFG_REFCLKDIV_MASK (3 < 2)
-#define SATA_SATAICFG_REFCLKFEEDDIV_50 (0 < 4) /* or 100, when Gen2En is 1 */
-#define SATA_SATAICFG_REFCLKFEEDDIV_60 (1 < 4) /* or 120. Used 25MHz */
-#define SATA_SATAICFG_REFCLKFEEDDIV_75 (2 < 4) /* or 150. Used 20MHz */
-#define SATA_SATAICFG_REFCLKFEEDDIV_90 (3 < 4) /* or 180 */
-#define SATA_SATAICFG_REFCLKFEEDDIV_MASK (3 < 4)
-#define SATA_SATAICFG_PHYSSCEN (1 < 6)
-#define SATA_SATAICFG_GEN2EN (1 < 7)
-#define SATA_SATAICFG_COMMEN (1 < 8)
-#define SATA_SATAICFG_PHYSHUTDOWN (1 < 9)
-#define SATA_SATAICFG_TARGETMODE (1 < 10) /* 1 = Initiator */
-#define SATA_SATAICFG_COMCHANNEL (1 < 11)
-#define SATA_SATAICFG_IGNOREBSY (1 < 24)
-#define SATA_SATAICFG_LINKRSTEN (1 < 25)
-#define SATA_SATAICFG_CMDRETXDS (1 < 26)
+#define SATA_SATAICFG_REFCLKCNF_20MHZ (0 << 0)
+#define SATA_SATAICFG_REFCLKCNF_25MHZ (1 << 0)
+#define SATA_SATAICFG_REFCLKCNF_30MHZ (2 << 0)
+#define SATA_SATAICFG_REFCLKCNF_40MHZ (3 << 0)
+#define SATA_SATAICFG_REFCLKCNF_MASK (3 << 0)
+#define SATA_SATAICFG_REFCLKDIV_1 (0 << 2)
+#define SATA_SATAICFG_REFCLKDIV_2 (1 << 2) /* Used 20 or 25MHz */
+#define SATA_SATAICFG_REFCLKDIV_4 (2 << 2) /* Used 40MHz */
+#define SATA_SATAICFG_REFCLKDIV_3 (3 << 2) /* Used 30MHz */
+#define SATA_SATAICFG_REFCLKDIV_MASK (3 << 2)
+#define SATA_SATAICFG_REFCLKFEEDDIV_50 (0 << 4) /* or 100, when Gen2En is 1 */
+#define SATA_SATAICFG_REFCLKFEEDDIV_60 (1 << 4) /* or 120. Used 25MHz */
+#define SATA_SATAICFG_REFCLKFEEDDIV_75 (2 << 4) /* or 150. Used 20MHz */
+#define SATA_SATAICFG_REFCLKFEEDDIV_90 (3 << 4) /* or 180 */
+#define SATA_SATAICFG_REFCLKFEEDDIV_MASK (3 << 4)
+#define SATA_SATAICFG_PHYSSCEN (1 << 6)
+#define SATA_SATAICFG_GEN2EN (1 << 7)
+#define SATA_SATAICFG_COMMEN (1 << 8)
+#define SATA_SATAICFG_PHYSHUTDOWN (1 << 9)
+#define SATA_SATAICFG_TARGETMODE (1 << 10) /* 1 = Initiator */
+#define SATA_SATAICFG_COMCHANNEL (1 << 11)
+#define SATA_SATAICFG_IGNOREBSY (1 << 24)
+#define SATA_SATAICFG_LINKRSTEN (1 << 25)
+#define SATA_SATAICFG_CMDRETXDS (1 << 26)
#define SATA_SATAICTL 0x344 /* Serial-ATA Interface Control */
#define SATA_SATAITC 0x348 /* Serial-ATA Interface Test Control */
#define SATA_SATAIS 0x34c /* Serial-ATA Interface Status */
Home |
Main Index |
Thread Index |
Old Index