Jason King wrote: > I'm curious to know if anyone feels if there might be utility in > providing macros in a header file for defining and manipulating > bitmasks (analogous to __BIT(x), __BITS(a,b), __SHIFTIN, __SHIFTOUT, > etc on some of the BSDs)? In some of the driver work I've done, I've > found it makes manipulating registers full of bit fields clearer.
Something like the LE_* and BE_* macros from <sys/byteorder.h> ? I used those as a base and created my own specific macros in $SRC/cmd/fwflash/common/fwflash.h James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code