Module Name: src
Committed By: skrll
Date: Sat Sep 24 14:55:17 UTC 2016
Modified Files:
src/sys/dev/ic: sl811hsreg.h
Log Message:
Use bit defines to create bit groups for SL11_EPSTAT
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/sl811hsreg.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/sl811hsreg.h
diff -u src/sys/dev/ic/sl811hsreg.h:1.4 src/sys/dev/ic/sl811hsreg.h:1.5
--- src/sys/dev/ic/sl811hsreg.h:1.4 Sun Sep 22 06:54:35 2013
+++ src/sys/dev/ic/sl811hsreg.h Sat Sep 24 14:55:16 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: sl811hsreg.h,v 1.4 2013/09/22 06:54:35 skrll Exp $ */
+/* $NetBSD: sl811hsreg.h,v 1.5 2016/09/24 14:55:16 skrll Exp $ */
/*
* Not (c) 2007 Matthew Orgass
@@ -76,8 +76,23 @@
#define SL11_EPSTAT_OVERFLOW (0x20)
#define SL11_EPSTAT_NAK (0x40)
#define SL11_EPSTAT_STALL (0x80)
-#define SL11_EPSTAT_STATBITS (0xf7)
-#define SL11_EPSTAT_ERRBITS (0xf6)
+#define SL11_EPSTAT_STATBITS ( \
+ SL11_EPSTAT_ACK | \
+ SL11_EPSTAT_ERROR | \
+ SL11_EPSTAT_TIMEOUT | \
+ SL11_EPSTAT_SETUP | \
+ SL11_EPSTAT_OVERFLOW | \
+ SL11_EPSTAT_NAK | \
+ SL11_EPSTAT_STALL \
+ )
+#define SL11_EPSTAT_ERRBITS ( \
+ SL11_EPSTAT_ERROR | \
+ SL11_EPSTAT_TIMEOUT | \
+ SL11_EPSTAT_SETUP | \
+ SL11_EPSTAT_OVERFLOW | \
+ SL11_EPSTAT_NAK | \
+ SL11_EPSTAT_STALL \
+ )
#define SL11_CTRL_ENABLESOF (0x01)
/* #define SL11_CTRL_EOF2 (0x04) XXX ? Reserved in 1.5 */