tg3: Convert u32 flag,flg2,flg3 uses to bitmap
authorJoe Perches <joe@perches.com>
Tue, 26 Apr 2011 08:12:10 +0000 (08:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2011 20:42:24 +0000 (13:42 -0700)
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 <joe@perches.com>
Acked-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found