aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2007-10-06 08:13:06 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:55:10 -0400
commit483272f5ee968b25172b80bd2d27e37fef1dcc3a (patch)
tree22662424648ce07e05c7e53168ad0aef1d60a19e /drivers
parent6d7f9877a66a3abe0b04b63d1de4659919e21a92 (diff)
[PATCH] rt2x00: Move rt2x00dev flags into enumeration
By putting the flags into a enumeration we can make it easier maintable since we don't have to assign numbers for each flag. This makes it easier to insert and remove flags. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h49
1 files changed, 33 insertions, 16 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index d280d0ec9042..82dfcd95bb26 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -441,6 +441,39 @@ struct rt2x00_ops {
441}; 441};
442 442
443/* 443/*
444 * rt2x00 device flags
445 */
446enum rt2x00_flags {
447 /*
448 * Device state flags
449 */
450 DEVICE_PRESENT,
451 DEVICE_REGISTERED_HW,
452 DEVICE_INITIALIZED,
453 DEVICE_STARTED,
454 DEVICE_STARTED_SUSPEND,
455 DEVICE_ENABLED_RADIO,
456 DEVICE_ENABLED_RADIO_HW,
457
458 /*
459 * Driver features
460 */
461 DRIVER_REQUIRE_FIRMWARE,
462 DRIVER_REQUIRE_BEACON_RING,
463
464 /*
465 * Driver configuration
466 */
467 CONFIG_SUPPORT_HW_BUTTON,
468 CONFIG_FRAME_TYPE,
469 CONFIG_RF_SEQUENCE,
470 CONFIG_EXTERNAL_LNA_A,
471 CONFIG_EXTERNAL_LNA_BG,
472 CONFIG_DOUBLE_ANTENNA,
473 CONFIG_DISABLE_LINK_TUNING,
474};
475
476/*
444 * rt2x00 device structure. 477 * rt2x00 device structure.
445 */ 478 */
446struct rt2x00_dev { 479struct rt2x00_dev {
@@ -493,22 +526,6 @@ struct rt2x00_dev {
493 * of the device capabilities are stored. 526 * of the device capabilities are stored.
494 */ 527 */
495 unsigned long flags; 528 unsigned long flags;
496#define DEVICE_PRESENT 1
497#define DEVICE_REGISTERED_HW 2
498#define DEVICE_INITIALIZED 3
499#define DEVICE_STARTED 4
500#define DEVICE_ENABLED_RADIO 5
501#define DEVICE_ENABLED_RADIO_HW 6
502#define DRIVER_REQUIRE_FIRMWARE 7
503#define DRIVER_REQUIRE_BEACON_RING 8
504#define CONFIG_SUPPORT_HW_BUTTON 9
505#define CONFIG_FRAME_TYPE 10
506#define CONFIG_RF_SEQUENCE 11
507#define CONFIG_EXTERNAL_LNA_A 12
508#define CONFIG_EXTERNAL_LNA_BG 13
509#define CONFIG_DOUBLE_ANTENNA 14
510#define CONFIG_DISABLE_LINK_TUNING 15
511#define DEVICE_STARTED_SUSPEND 16
512 529
513 /* 530 /*
514 * Chipset identification. 531 * Chipset identification.