Skip to content

Commit

Permalink
tg3: Convert u32 flag,flg2,flg3 uses to bitmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and David S. Miller committed Apr 28, 2011
1 parent fa2bd7f commit 63c3a66
Show file tree
Hide file tree
Showing 2 changed files with 728 additions and 739 deletions.
Loading

0 comments on commit 63c3a66

Please sign in to comment.