Changeset 2232

Show
Ignore:
Timestamp:
03/27/07 19:29:30 (2 years ago)
Author:
mickflemm
Message:

* Merge code and headers as a first step to a HAL-less driver
* This contains code for 5211/5212, only tested on 5212
* Needs cleanup/testing and some fixes before merging it with dadwifi (to become ath5k)
* 5210 code is more tricky to include
* All functions except descriptor-related (hw descriptors are different for each chipset) can work directly, i only left the function pointers there for combatibility.
* Check TODOs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/madwifi-old-openhal/openhal/Makefile

    r1941 r2232  
    66 
    77obj-m           += ath_hal.o 
    8 ath_hal-objs    := ah_osdep.o ar5xxx.o ar5212.o ar5211.o ar5210.o ieee80211_regdomain.o 
     8ath_hal-objs    := ah_osdep.o ath5k_hw.o ieee80211_regdomain.o 
    99 
    1010include $(TOP)/Makefile.inc 
  • branches/madwifi-old-openhal/openhal/README

    r1857 r2232  
    1 Linux OpenHAL 20061412 
     1Linux OpenHAL 20072703 
    22====================== 
    33/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ 
    44 * This is a port of the ar5k hal for atheros device drivers that is         * 
    5  * source-compatible with the Madwifi driver for linux                       * 
    6  * (before the BSD - HEAD merge).                                            * 
     5 * source-compatible with the Madwifi driver for linux.                      * 
    76 *                                                                           * 
    87 * Code ported, modified for combatibility and some bugs were fixed by       * 
    98 * Nick "Mick Flemm" Kossifidis (Athens Wireless Metropolitan Network)       * 
    10  * <mickflemm'at'gmail.com> so ar5k can work propertly on Linux.             * 
     9 * <mickflemm'at'gmail.com> and Pavel Roskin so ar5k can work propertly      * 
     10 * on Linux.                                                                 * 
     11 *                                                                           * 
    1112 * Currently only the 5212 code has been tested due to lack of hardware.     * 
    1213 *                                                                           * 
     
    9293WARNING: Don't delete the empty files included (ah_desc.h etc) 
    9394 
    94 Note: Currenty works for MadWiFi versions before HEAD - BSD merge 
    95 (that means it works with 07/11/05 snapshot). 
     95Note: Currenty works for MadWiFi-old 
    9696 
    9797Use 
  • branches/madwifi-old-openhal/openhal/ah.h

    r1975 r2232  
    1 #ifndef _AR5K_AH_H 
    2 #define _AR5K_AH_H 
    3  
    4 #include "ar5xxx.h" 
    5  
    6 #endif 
     1#include "ath5k.h" 
  • branches/madwifi-old-openhal/openhal/ah_osdep.c

    r1972 r2232  
    4242MODULE_AUTHOR("Nick Kossifidis"); 
    4343MODULE_DESCRIPTION("OpenHAL"); 
    44 MODULE_SUPPORTED_DEVICE(""); 
     44MODULE_SUPPORTED_DEVICE("Atheros AR5xxx WLAN cards"); 
    4545#ifdef MODULE_LICENSE 
    4646MODULE_LICENSE("Dual BSD/GPL"); 
     
    5454{ 
    5555        AR5K_STATUS status; 
    56         struct ath_hal *ah = ath_hal_attach(devid, sc, t, h, &status); 
     56        struct ath_hal *ah = ath5k_hw_init(devid, sc, t, h, &status); 
    5757 
    5858        *(AR5K_STATUS *)s = status; 
  • branches/madwifi-old-openhal/openhal/ah_osdep.h

    r2038 r2232  
    7575#define bzero(_a, _b)           memset(_a, 0, _b) 
    7676 
    77 #define AR5K_REG_WRITE(_reg, _val)      (writel(_val, hal->ah_sh + (_reg))) 
     77//#define AR5K_REG_WRITE(_reg, _val)      (writel(_val, hal->ah_sh + (_reg))) 
    7878//      bus_space_write_4(hal->ah_st, hal->ah_sh, (_reg), (_val)) 
    7979 
    80 #define AR5K_REG_READ(_reg)             (readl(hal->ah_sh + (_reg))) 
     80//#define AR5K_REG_READ(_reg)             (readl(hal->ah_sh + (_reg))) 
    8181//      bus_space_read_4(hal->ah_st, hal->ah_sh, (_reg)) 
  • branches/madwifi-old-openhal/openhal/ieee80211_regdomain.c

    r2034 r2232  
    2121 */ 
    2222 
    23 #include "ar5xxx.h" 
     23#include "ah_osdep.h" 
    2424#include "ieee80211_regdomain.h" 
    2525