Changeset 9e5a51c in mainline for uspace/drv/bus/usb/ar9271/ar9271.h
- Timestamp:
- 2015-03-08T22:20:34Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 864762a
- Parents:
- 4cb0148
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/ar9271/ar9271.h
r4cb0148 r9e5a51c 98 98 AR9271_BSSID_MASK1 = 0x80E4, /**< BSSID Mask Upper 16 Bits */ 99 99 AR9271_STATION_ID1_MASK = 0x0000FFFF, 100 AR9271_STATION_ID1_POWER_SAVING = 0x00040000, 100 101 101 102 /* RX filtering register */ … … 111 112 AR9271_MULTICAST_FILTER1 = 0x8040, 112 113 AR9271_MULTICAST_FILTER2 = 0x8044, 114 AR9271_DIAG = 0x8048, 113 115 114 116 /* Physical layer registers */ 117 115 118 AR9271_PHY_ACTIVE = 0x981C, 116 119 AR9271_ADC_CONTROL = 0x982C, 117 120 AR9271_AGC_CONTROL = 0x9860, 118 121 AR9271_PHY_SYNTH_CONTROL = 0x9874, 122 AR9271_PHY_SPECTRAL_SCAN = 0x9910, 123 AR9271_PHY_RADAR0 = 0x9954, 124 AR9271_PHY_RADAR0_FFT_ENABLED = 0x80000000, 125 AR9271_PHY_RFBUS_KILL = 0x997C, 126 AR9271_PHY_RFBUS_GRANT = 0x9C20, 119 127 AR9271_PHY_MODE = 0xA200, 120 128 AR9271_PHY_CCK_TX_CTRL = 0xA204, … … 127 135 AR9271_AGC_CONTROL_TX_CALIB = 0x00010000, 128 136 AR9271_AGC_CONTROL_NF_NOT_UPDATE = 0x00020000, 129 AR9271_PHY_MODE_2G = 0x02,130 137 AR9271_PHY_MODE_DYNAMIC = 0x04, 131 138 AR9271_PHY_CCK_TX_CTRL_JAPAN = 0x00000010, … … 156 163 /** AR9271 device data */ 157 164 typedef struct { 165 /** Whether device is starting up. */ 166 bool starting_up; 167 158 168 /** Backing DDF device */ 159 169 ddf_dev_t *ddf_dev; … … 187 197 {0x0000801c, 0x12e0002b}, 188 198 {0x00008318, 0x00003440}, 189 {0x00009804, 0x000003 00},199 {0x00009804, 0x000003c0},/*< note: overridden */ 190 200 {0x00009820, 0x02020200}, 191 201 {0x00009824, 0x01000e0e}, 192 {0x00009828, 0x 3a020001},202 {0x00009828, 0x0a020001},/*< note: overridden */ 193 203 {0x00009834, 0x00000e0e}, 194 204 {0x00009838, 0x00000007}, … … 486 496 487 497 /** 498 * AR9271 TX init values for 2GHz mode operation. 499 * 500 * Taken from Linux sources. 501 */ 502 static const uint32_t ar9271_2g_tx_array[][2] = { 503 {0x0000a300, 0x00010000}, 504 {0x0000a304, 0x00016200}, 505 {0x0000a308, 0x00018201}, 506 {0x0000a30c, 0x0001b240}, 507 {0x0000a310, 0x0001d241}, 508 {0x0000a314, 0x0001f600}, 509 {0x0000a318, 0x00022800}, 510 {0x0000a31c, 0x00026802}, 511 {0x0000a320, 0x0002b805}, 512 {0x0000a324, 0x0002ea41}, 513 {0x0000a328, 0x00038b00}, 514 {0x0000a32c, 0x0003ab40}, 515 {0x0000a330, 0x0003cd80}, 516 {0x0000a334, 0x000368de}, 517 {0x0000a338, 0x0003891e}, 518 {0x0000a33c, 0x0003a95e}, 519 {0x0000a340, 0x0003e9df}, 520 {0x0000a344, 0x0003e9df}, 521 {0x0000a348, 0x0003e9df}, 522 {0x0000a34c, 0x0003e9df}, 523 {0x0000a350, 0x0003e9df}, 524 {0x0000a354, 0x0003e9df}, 525 {0x00007838, 0x0000002b}, 526 {0x00007824, 0x00d8a7ff}, 527 {0x0000786c, 0x08609eba}, 528 {0x00007820, 0x00000c00}, 529 {0x0000a274, 0x0a214652}, 530 {0x0000a278, 0x0e739ce7}, 531 {0x0000a27c, 0x05018063}, 532 {0x0000a394, 0x06318c63}, 533 {0x0000a398, 0x00000063}, 534 {0x0000a3dc, 0x06318c63}, 535 {0x0000a3e0, 0x00000063} 536 }; 537 538 /** 488 539 * AR9271 hardware init values. 489 540 * … … 584 635 {0x00008058, 0x00000000}, 585 636 {0x0000805c, 0x000fc78f}, 586 {0x00008060, 0x 0000000f},637 {0x00008060, 0xc7ff000f}, 587 638 {0x00008064, 0x00000000}, 588 639 {0x00008070, 0x00000000}, … … 680 731 {0x0000833c, 0x00000000}, 681 732 {0x00008340, 0x00010380}, 682 {0x00008344, 0x00 581003},/*< note: disabled ADHOC_MCAST_KEYID feature */733 {0x00008344, 0x00481083},/*< note: disabled ADHOC_MCAST_KEYID feature */ 683 734 {0x00007010, 0x00000030}, 684 735 {0x00007034, 0x00000002},
Note:
See TracChangeset
for help on using the changeset viewer.