Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
unifi_os.h File Reference
#include <linux/kernel.h>
#include <linux/time.h>
#include <linux/list.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define INLINE   inline
 
#define CSR_WIFI_ALIGN_BYTES   4
 
#define func_enter()
 
#define func_exit()
 
#define func_exit_r(_rc)
 
#define ASSERT(cond)
 
#define unifi_error   if(1);else unifi_error_nop
 
#define unifi_warning   if(1);else unifi_error_nop
 
#define unifi_notice   if(1);else unifi_error_nop
 
#define unifi_info   if(1);else unifi_error_nop
 
#define unifi_trace   if(1);else unifi_trace_nop
 
#define UDBG0   0 /* always prints in debug build */
 
#define UDBG1   1
 
#define UDBG2   2
 
#define UDBG3   3
 
#define UDBG4   4
 
#define UDBG5   5
 
#define UDBG6   6
 
#define UDBG7   7
 

Functions

CsrResult unifi_net_data_malloc (void *ospriv, bulk_data_desc_t *bulk_data_slot, unsigned int size)
 
void unifi_net_data_free (void *ospriv, bulk_data_desc_t *bulk_data_slot)
 
CsrResult unifi_net_dma_align (void *ospriv, bulk_data_desc_t *bulk_data_slot)
 
void unifi_error_nop (void *ospriv, const char *fmt,...)
 
void unifi_trace_nop (void *ospriv, int level, const char *fmt,...)
 

Variables

int unifi_debug
 

Macro Definition Documentation

#define ASSERT (   cond)

Definition at line 114 of file unifi_os.h.

#define CSR_WIFI_ALIGN_BYTES   4

Definition at line 38 of file unifi_os.h.

#define func_enter ( )

Definition at line 110 of file unifi_os.h.

#define func_exit ( )

Definition at line 111 of file unifi_os.h.

#define func_exit_r (   _rc)

Definition at line 112 of file unifi_os.h.

#define INLINE   inline

Definition at line 33 of file unifi_os.h.

#define UDBG0   0 /* always prints in debug build */

Definition at line 135 of file unifi_os.h.

#define UDBG1   1

Definition at line 136 of file unifi_os.h.

#define UDBG2   2

Definition at line 137 of file unifi_os.h.

#define UDBG3   3

Definition at line 138 of file unifi_os.h.

#define UDBG4   4

Definition at line 139 of file unifi_os.h.

#define UDBG5   5

Definition at line 140 of file unifi_os.h.

#define UDBG6   6

Definition at line 141 of file unifi_os.h.

#define UDBG7   7

Definition at line 142 of file unifi_os.h.

#define unifi_error   if(1);else unifi_error_nop

Definition at line 125 of file unifi_os.h.

#define unifi_info   if(1);else unifi_error_nop

Definition at line 128 of file unifi_os.h.

#define unifi_notice   if(1);else unifi_error_nop

Definition at line 127 of file unifi_os.h.

#define unifi_trace   if(1);else unifi_trace_nop

Definition at line 129 of file unifi_os.h.

#define unifi_warning   if(1);else unifi_error_nop

Definition at line 126 of file unifi_os.h.

Function Documentation

void unifi_error_nop ( void ospriv,
const char fmt,
  ... 
)

Definition at line 349 of file os.c.

void unifi_net_data_free ( void ospriv,
bulk_data_desc_t bulk_data_slot 
)

Definition at line 100 of file os.c.

CsrResult unifi_net_data_malloc ( void ospriv,
bulk_data_desc_t bulk_data_slot,
unsigned int  size 
)

The HIP lib OS abstraction consists of the implementation of the functions in this file. It is part of the porting exercise.

Definition at line 47 of file os.c.

CsrResult unifi_net_dma_align ( void ospriv,
bulk_data_desc_t bulk_data_slot 
)

Definition at line 133 of file os.c.

void unifi_trace_nop ( void ospriv,
int  level,
const char fmt,
  ... 
)

Definition at line 354 of file os.c.

Variable Documentation

int unifi_debug

Definition at line 48 of file drv.c.