Module Name: src Committed By: jakllsch Date: Mon Jul 23 14:07:04 UTC 2012
Modified Files: src/sys/dev/ic: mvsatareg.h Log Message: Use "<<" instead of "<" for shift-to-left. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/ic/mvsatareg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/mvsatareg.h diff -u src/sys/dev/ic/mvsatareg.h:1.1 src/sys/dev/ic/mvsatareg.h:1.2 --- src/sys/dev/ic/mvsatareg.h:1.1 Mon Jul 27 12:34:14 2009 +++ src/sys/dev/ic/mvsatareg.h Mon Jul 23 14:07:03 2012 @@ -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 */