PERFORCE change 64478 for review

Marcel Moolenaar marcel at FreeBSD.org
Sat Nov 6 18:35:29 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=64478

Change 64478 by marcel at marcel_nfs on 2004/11/07 02:34:54

	Define the modes as a bit set so that they can be used as a
	feature set of the SCC class. We can use ffs(3) to iterate
	over the set (destructively of course, but still)...

Affected files ...

.. //depot/projects/uart/dev/scc/scc_bus.h#3 edit

Differences ...

==== //depot/projects/uart/dev/scc/scc_bus.h#3 (text+ko) ====

@@ -40,8 +40,8 @@
 #define	SCC_CLASS_Z8530		1
 
 /* The possible modes supported by the SCC. */
-#define	SCC_MODE_ASYNC		0
-#define	SCC_MODE_BISYNC		1
-#define	SCC_MODE_HDLC		2
+#define	SCC_MODE_ASYNC		0x01
+#define	SCC_MODE_BISYNC		0x02
+#define	SCC_MODE_HDLC		0x04
 
 #endif /* _DEV_SCC_BUS_H_ */


More information about the p4-projects mailing list