Main Page | Data Structures | Directories | File List | Data Fields | Globals

ah_osdep.h File Reference

Go to the source code of this file.

Defines

#define __ahdecl
#define __packed   __attribute__((__packed__))
#define __printflike(_a, _b)   __attribute__ ((__format__ (__printf__, _a, _b)))
#define __va_list   va_list
#define OS_INLINE   __inline
#define OS_DELAY(_n)   ath_hal_delay(_n)
#define OS_MEMZERO(_a, _n)   ath_hal_memzero((_a), (_n))
#define OS_MEMCPY(_d, _s, _n)   ath_hal_memcpy(_d,_s,_n)
#define abs(_a)   __builtin_abs(_a)
#define OS_GETUPTIME(_ah)   ath_hal_getuptime(_ah)
#define AH_LITTLE_ENDIAN   1234
#define AH_BIG_ENDIAN   4321
#define __bswap32(_x)   (_x)
#define _OS_REG_WRITE(_ah, _reg, _val)
#define _OS_REG_READ(_ah, _reg)   *((volatile u_int32_t *)((_ah)->ah_sh + (_reg)))
#define OS_REG_WRITE(_ah, _reg, _val)   _OS_REG_WRITE(_ah, _reg, _val)
#define OS_REG_READ(_ah, _reg)   _OS_REG_READ(_ah, _reg)
#define OS_MARK(_ah, _id, _v)

Typedefs

typedef signed char int8_t
typedef short int16_t
typedef int int32_t
typedef long long int64_t
typedef unsigned char u_int8_t
typedef unsigned short u_int16_t
typedef unsigned int u_int32_t
typedef unsigned long long u_int64_t
typedef unsigned int size_t
typedef unsigned int u_int
typedef void * va_list
typedef void * HAL_SOFTC
typedef int HAL_BUS_TAG
typedef void * HAL_BUS_HANDLE
typedef u_int32_t HAL_BUS_ADDR

Functions

void __ahdecl ath_hal_delay (int)
void __ahdecl ath_hal_memzero (void *, size_t)
void *__ahdecl ath_hal_memcpy (void *, const void *, size_t)
u_int32_t __ahdecl ath_hal_getuptime (struct ath_hal *)
ath_hal_ath_hal_attach (u_int16_t devid, HAL_SOFTC, HAL_BUS_TAG, HAL_BUS_HANDLE, void *status)
void ath_hal_detach (struct ath_hal *)


Define Documentation

#define __ahdecl
 

Definition at line 54 of file ah_osdep.h.

#define __bswap32 _x  )    (_x)
 

Definition at line 136 of file ah_osdep.h.

struct ar5k_ar5211_tx_status __packed   __attribute__((__packed__))
 

Definition at line 57 of file ah_osdep.h.

#define __printflike _a,
_b  )    __attribute__ ((__format__ (__printf__, _a, _b)))
 

Definition at line 85 of file ah_osdep.h.

#define __va_list   va_list
 

Definition at line 87 of file ah_osdep.h.

#define _OS_REG_READ _ah,
_reg  )    *((volatile u_int32_t *)((_ah)->ah_sh + (_reg)))
 

Definition at line 171 of file ah_osdep.h.

#define _OS_REG_WRITE _ah,
_reg,
_val  ) 
 

Value:

do { \
        *((volatile u_int32_t *)((_ah)->ah_sh + (_reg))) = (_val); \
} while (0)

Definition at line 168 of file ah_osdep.h.

#define abs _a  )    __builtin_abs(_a)
 

Definition at line 107 of file ah_osdep.h.

#define AH_BIG_ENDIAN   4321
 

Definition at line 118 of file ah_osdep.h.

#define AH_LITTLE_ENDIAN   1234
 

Definition at line 117 of file ah_osdep.h.

#define OS_DELAY _n  )    ath_hal_delay(_n)
 

Definition at line 99 of file ah_osdep.h.

#define OS_GETUPTIME _ah  )    ath_hal_getuptime(_ah)
 

Definition at line 112 of file ah_osdep.h.

#define OS_INLINE   __inline
 

Definition at line 88 of file ah_osdep.h.

#define OS_MARK _ah,
_id,
_v  ) 
 

Definition at line 192 of file ah_osdep.h.

#define OS_MEMCPY _d,
_s,
_n  )    ath_hal_memcpy(_d,_s,_n)
 

Definition at line 103 of file ah_osdep.h.

#define OS_MEMZERO _a,
_n  )    ath_hal_memzero((_a), (_n))
 

Definition at line 101 of file ah_osdep.h.

#define OS_REG_READ _ah,
_reg  )    _OS_REG_READ(_ah, _reg)
 

Definition at line 186 of file ah_osdep.h.

#define OS_REG_WRITE _ah,
_reg,
_val  )    _OS_REG_WRITE(_ah, _reg, _val)
 

Definition at line 185 of file ah_osdep.h.


Typedef Documentation

typedef u_int32_t HAL_BUS_ADDR
 

Definition at line 93 of file ah_osdep.h.

typedef void* HAL_BUS_HANDLE
 

Definition at line 92 of file ah_osdep.h.

typedef int HAL_BUS_TAG
 

Definition at line 91 of file ah_osdep.h.

typedef void* HAL_SOFTC
 

Definition at line 90 of file ah_osdep.h.

typedef short int16_t
 

Definition at line 68 of file ah_osdep.h.

typedef int int32_t
 

Definition at line 69 of file ah_osdep.h.

typedef long long int64_t
 

Definition at line 70 of file ah_osdep.h.

typedef signed char int8_t
 

Definition at line 67 of file ah_osdep.h.

typedef unsigned int size_t
 

Definition at line 77 of file ah_osdep.h.

typedef unsigned int u_int
 

Definition at line 78 of file ah_osdep.h.

typedef unsigned short u_int16_t
 

Definition at line 73 of file ah_osdep.h.

typedef unsigned int u_int32_t
 

Definition at line 74 of file ah_osdep.h.

typedef unsigned long long u_int64_t
 

Definition at line 75 of file ah_osdep.h.

typedef unsigned char u_int8_t
 

Definition at line 72 of file ah_osdep.h.

typedef void* va_list
 

Definition at line 79 of file ah_osdep.h.


Function Documentation

struct ath_hal* _ath_hal_attach u_int16_t devid,
HAL_SOFTC ,
HAL_BUS_TAG ,
HAL_BUS_HANDLE ,
void * status
 

Definition at line 164 of file ar5xxx.c.

Referenced by ath_attach().

void __ahdecl ath_hal_delay int  ) 
 

void ath_hal_detach struct ath_hal ) 
 

Definition at line 177 of file ar5xxx.c.

Referenced by ath_attach(), and ath_detach().

struct u_int32_t __ahdecl ath_hal_getuptime struct ath_hal ) 
 

void* __ahdecl ath_hal_memcpy void * ,
const void * ,
size_t 
 

void __ahdecl ath_hal_memzero void * ,
size_t 
 


Generated on Mon Nov 21 16:01:40 2005 for openwifi by  doxygen 1.4.1