diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /drivers/net/wireless/wl1251/init.h | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'drivers/net/wireless/wl1251/init.h')
| -rw-r--r-- | drivers/net/wireless/wl1251/init.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl1251/init.h b/drivers/net/wireless/wl1251/init.h new file mode 100644 index 00000000000..543f17582ea --- /dev/null +++ b/drivers/net/wireless/wl1251/init.h | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | /* | ||
| 2 | * This file is part of wl1251 | ||
| 3 | * | ||
| 4 | * Copyright (C) 2009 Nokia Corporation | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * version 2 as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, but | ||
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
| 18 | * 02110-1301 USA | ||
| 19 | * | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef __WL1251_INIT_H__ | ||
| 23 | #define __WL1251_INIT_H__ | ||
| 24 | |||
| 25 | #include "wl1251.h" | ||
| 26 | |||
| 27 | enum { | ||
| 28 | /* best effort/legacy */ | ||
| 29 | AC_BE = 0, | ||
| 30 | |||
| 31 | /* background */ | ||
| 32 | AC_BK = 1, | ||
| 33 | |||
| 34 | /* video */ | ||
| 35 | AC_VI = 2, | ||
| 36 | |||
| 37 | /* voice */ | ||
| 38 | AC_VO = 3, | ||
| 39 | |||
| 40 | /* broadcast dummy access category */ | ||
| 41 | AC_BCAST = 4, | ||
| 42 | |||
| 43 | NUM_ACCESS_CATEGORIES = 4 | ||
| 44 | }; | ||
| 45 | |||
| 46 | /* following are defult values for the IE fields*/ | ||
| 47 | #define CWMIN_BK 15 | ||
| 48 | #define CWMIN_BE 15 | ||
| 49 | #define CWMIN_VI 7 | ||
| 50 | #define CWMIN_VO 3 | ||
| 51 | #define CWMAX_BK 1023 | ||
| 52 | #define CWMAX_BE 63 | ||
| 53 | #define CWMAX_VI 15 | ||
| 54 | #define CWMAX_VO 7 | ||
| 55 | |||
| 56 | /* slot number setting to start transmission at PIFS interval */ | ||
| 57 | #define AIFS_PIFS 1 | ||
| 58 | |||
| 59 | /* | ||
| 60 | * slot number setting to start transmission at DIFS interval - normal DCF | ||
| 61 | * access | ||
| 62 | */ | ||
| 63 | #define AIFS_DIFS 2 | ||
| 64 | |||
| 65 | #define AIFSN_BK 7 | ||
| 66 | #define AIFSN_BE 3 | ||
| 67 | #define AIFSN_VI AIFS_PIFS | ||
| 68 | #define AIFSN_VO AIFS_PIFS | ||
| 69 | #define TXOP_BK 0 | ||
| 70 | #define TXOP_BE 0 | ||
| 71 | #define TXOP_VI 3008 | ||
| 72 | #define TXOP_VO 1504 | ||
| 73 | |||
| 74 | int wl1251_hw_init_hwenc_config(struct wl1251 *wl); | ||
| 75 | int wl1251_hw_init_templates_config(struct wl1251 *wl); | ||
| 76 | int wl1251_hw_init_rx_config(struct wl1251 *wl, u32 config, u32 filter); | ||
| 77 | int wl1251_hw_init_phy_config(struct wl1251 *wl); | ||
| 78 | int wl1251_hw_init_beacon_filter(struct wl1251 *wl); | ||
| 79 | int wl1251_hw_init_pta(struct wl1251 *wl); | ||
| 80 | int wl1251_hw_init_energy_detection(struct wl1251 *wl); | ||
| 81 | int wl1251_hw_init_beacon_broadcast(struct wl1251 *wl); | ||
| 82 | int wl1251_hw_init_power_auth(struct wl1251 *wl); | ||
| 83 | int wl1251_hw_init_mem_config(struct wl1251 *wl); | ||
| 84 | int wl1251_hw_init(struct wl1251 *wl); | ||
| 85 | |||
| 86 | #endif | ||
