Changeset 1dcc0b9 in mainline for uspace/drv/nic/ar9271/ar9271.h


Ignore:
Timestamp:
2015-04-06T10:47:51Z (10 years ago)
Author:
Jan Kolarik <kolarik@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d7dadcb4
Parents:
59fa7ab
Message:

Scanning whole 2.4GHz spectrum, created supplicant for managing connection between device STA and AP, finished association process between STA and AP, handling 4way handshake protocol used for key management, written needed cryptographic algorithms (AES, SHA1, HMAC, PBKDF2) for CCMP protocol, data communication on OPEN/CCMP networks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/ar9271/ar9271.h

    r59fa7ab r1dcc0b9  
    4646#define AR9271_LED_PIN 15
    4747
     48/** Nominal value for AR9271 noise floor calibration. */
     49#define AR9271_CALIB_NOMINAL_VALUE_2GHZ -118
     50
     51/** RX errors values. */
     52#define AR9271_RX_ERROR_CRC 0x01
     53#define AR9271_RX_ERROR_PHY 0x02
     54
     55/** Key index used for device in station mode. */
     56#define AR9271_STA_KEY_INDEX 4
     57
     58/* HW encryption key indicator. */
     59enum ath9k_key_type {
     60        AR9271_KEY_TYPE_CLEAR,
     61        AR9271_KEY_TYPE_WEP,
     62        AR9271_KEY_TYPE_AES,
     63        AR9271_KEY_TYPE_TKIP,
     64};
     65
    4866/** AR9271 Registers */
    4967typedef enum {
     
    7593        AR9271_GPIO_OUT_MUX_AS_OUT = 0x0,       /**< GPIO set mux as output */
    7694   
    77         /* Wakeup related registers */
     95        /* RTC related registers */
    7896        AR9271_RTC_RC = 0x7000,
    7997        AR9271_RTC_RC_MAC_WARM = 0x00000001,
     
    86104        AR9271_RTC_STATUS_SHUTDOWN = 0x00000001,
    87105        AR9271_RTC_STATUS_ON = 0x00000002,
     106        AR9271_RTC_SLEEP_CLOCK = 0x7048,
     107        AR9271_RTC_SLEEP_CLOCK_FORCE_DERIVED = 0x2,
    88108        AR9271_RTC_FORCE_WAKE = 0x704C,
    89109        AR9271_RTC_FORCE_WAKE_ENABLE = 0x00000001,
     
    93113        AR9271_STATION_ID0 = 0x8000,    /**< STA Address Lower 32 Bits */
    94114        AR9271_STATION_ID1 = 0x8004,    /**< STA Address Upper 16 Bits */
    95         AR9271_BSSID0 = 0x8008,                 /**< BSSID Lower 32 Bits */
    96         AR9271_BSSID1 = 0x800C,                 /**< BSSID Upper 16 Bits */
    97         AR9271_BSSID_MASK0 = 0x80E0,            /**< BSSID Mask Lower 32 Bits */
    98         AR9271_BSSID_MASK1 = 0x80E4,            /**< BSSID Mask Upper 16 Bits */
     115        AR9271_BSSID0 = 0x8008,         /**< BSSID Lower 32 Bits */
     116        AR9271_BSSID1 = 0x800C,         /**< BSSID Upper 16 Bits */
     117        AR9271_BSSID_MASK0 = 0x80E0,    /**< BSSID Mask Lower 32 Bits */
     118        AR9271_BSSID_MASK1 = 0x80E4,    /**< BSSID Mask Upper 16 Bits */
    99119        AR9271_STATION_ID1_MASK = 0x0000FFFF,
    100120        AR9271_STATION_ID1_POWER_SAVING = 0x00040000,
     121        AR9271_MULTICAST_FILTER1 = 0x8040,
     122        AR9271_MULTICAST_FILTER2 = 0x8044,     
     123        AR9271_DIAG = 0x8048,
    101124               
    102125        /* RX filtering register */
     
    110133        AR9271_RX_FILTER_PROBEREQ = 0x00000080,
    111134        AR9271_RX_FILTER_MYBEACON = 0x00000200,
    112         AR9271_MULTICAST_FILTER1 = 0x8040,
    113         AR9271_MULTICAST_FILTER2 = 0x8044,     
    114         AR9271_DIAG = 0x8048,
     135        AR9271_RX_FILTER_MCAST_BCAST_ALL = 0x00008000,
     136               
     137        /* Key related registers */
     138        AR9271_KEY_TABLE_GRP = 0x8820,
     139        AR9271_KEY_TABLE_STA = 0x8880,
     140        AR9271_KEY_TABLE_TYPE_WEP40 = 0x0,
     141        AR9271_KEY_TABLE_TYPE_WEP104 = 0x1,
     142        AR9271_KEY_TABLE_TYPE_TKIP = 0x4,
     143        AR9271_KEY_TABLE_TYPE_CCMP = 0x6,
    115144               
    116145        /* Physical layer registers */
     
    118147        AR9271_ADC_CONTROL = 0x982C,
    119148        AR9271_AGC_CONTROL = 0x9860,
     149        AR9271_PHY_CAL = 0x9864,
    120150        AR9271_PHY_SYNTH_CONTROL = 0x9874,
    121151        AR9271_PHY_SPECTRAL_SCAN = 0x9910,
Note: See TracChangeset for help on using the changeset viewer.