tg3: Convert u32 flag,flg2,flg3 uses to bitmap
authorJoe Perches <[email protected]>
Tue, 26 Apr 2011 08:12:10 +0000 (08:12 +0000)
committerDavid S. Miller <[email protected]>
Thu, 28 Apr 2011 20:42:24 +0000 (13:42 -0700)
commit63c3a66fe6c827a731dcbdee181158b295626f83
treeadbc4309dca03b6146ced0f1c57694ac59f56427
parentfa2bd7ff9247f4218dfc907db14d000cd7edd862
tg3: Convert u32 flag,flg2,flg3 uses to bitmap

Using a bitmap instead of separate u32 flags allows a consistent, simpler
and more extensible mechanism to determine capabilities.

Convert bitmasks to enum.
Add tg3_flag, tg3_flag_clear and tg3_flag_set.
Convert the flag & bitmask tests.

Signed-off-by: Joe Perches <[email protected]>
Acked-by: Matt Carlson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/tg3.c
drivers/net/tg3.h