Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ozpd.h File Reference
#include "ozeltbuf.h"

Go to the source code of this file.

Data Structures

struct  oz_tx_frame
 
struct  oz_isoc_stream
 
struct  oz_farewell
 
struct  oz_pd
 

Macros

#define OZ_PD_S_IDLE   0x1
 
#define OZ_PD_S_CONNECTED   0x2
 
#define OZ_PD_S_SLEEP   0x4
 
#define OZ_PD_S_STOPPED   0x8
 
#define OZ_TIMER_TOUT   1
 
#define OZ_TIMER_HEARTBEAT   2
 
#define OZ_TIMER_STOP   3
 
#define OZ_MAX_QUEUED_FRAMES   4
 

Functions

struct oz_pdoz_pd_alloc (u8 *mac_addr)
 
void oz_pd_destroy (struct oz_pd *pd)
 
void oz_pd_get (struct oz_pd *pd)
 
void oz_pd_put (struct oz_pd *pd)
 
void oz_pd_set_state (struct oz_pd *pd, unsigned state)
 
void oz_pd_indicate_farewells (struct oz_pd *pd)
 
int oz_pd_sleep (struct oz_pd *pd)
 
void oz_pd_stop (struct oz_pd *pd)
 
void oz_pd_heartbeat (struct oz_pd *pd, u16 apps)
 
int oz_services_start (struct oz_pd *pd, u16 apps, int resume)
 
void oz_services_stop (struct oz_pd *pd, u16 apps, int pause)
 
int oz_prepare_frame (struct oz_pd *pd, int empty)
 
void oz_send_queued_frames (struct oz_pd *pd, int backlog)
 
void oz_retire_tx_frames (struct oz_pd *pd, u8 lpn)
 
int oz_isoc_stream_create (struct oz_pd *pd, u8 ep_num)
 
int oz_isoc_stream_delete (struct oz_pd *pd, u8 ep_num)
 
int oz_send_isoc_unit (struct oz_pd *pd, u8 ep_num, u8 *data, int len)
 
void oz_handle_app_elt (struct oz_pd *pd, u8 app_id, struct oz_elt *elt)
 
void oz_apps_init (void)
 
void oz_apps_term (void)
 

Macro Definition Documentation

#define OZ_MAX_QUEUED_FRAMES   4

Definition at line 100 of file ozpd.h.

#define OZ_PD_S_CONNECTED   0x2

Definition at line 14 of file ozpd.h.

#define OZ_PD_S_IDLE   0x1

Definition at line 13 of file ozpd.h.

#define OZ_PD_S_SLEEP   0x4

Definition at line 15 of file ozpd.h.

#define OZ_PD_S_STOPPED   0x8

Definition at line 16 of file ozpd.h.

#define OZ_TIMER_HEARTBEAT   2

Definition at line 21 of file ozpd.h.

#define OZ_TIMER_STOP   3

Definition at line 22 of file ozpd.h.

#define OZ_TIMER_TOUT   1

Definition at line 20 of file ozpd.h.

Function Documentation

void oz_apps_init ( void  )

Definition at line 895 of file ozpd.c.

void oz_apps_term ( void  )

Definition at line 905 of file ozpd.c.

void oz_handle_app_elt ( struct oz_pd pd,
u8  app_id,
struct oz_elt elt 
)

Definition at line 916 of file ozpd.c.

int oz_isoc_stream_create ( struct oz_pd pd,
u8  ep_num 
)

Definition at line 727 of file ozpd.c.

int oz_isoc_stream_delete ( struct oz_pd pd,
u8  ep_num 
)

Definition at line 755 of file ozpd.c.

struct oz_pd* oz_pd_alloc ( u8 mac_addr)
read

Definition at line 160 of file ozpd.c.

void oz_pd_destroy ( struct oz_pd pd)

Definition at line 188 of file ozpd.c.

void oz_pd_get ( struct oz_pd pd)

Definition at line 145 of file ozpd.c.

void oz_pd_heartbeat ( struct oz_pd pd,
u16  apps 
)

Definition at line 282 of file ozpd.c.

void oz_pd_indicate_farewells ( struct oz_pd pd)

Definition at line 927 of file ozpd.c.

void oz_pd_put ( struct oz_pd pd)

Definition at line 152 of file ozpd.c.

void oz_pd_set_state ( struct oz_pd pd,
unsigned  state 
)

Definition at line 121 of file ozpd.c.

int oz_pd_sleep ( struct oz_pd pd)

Definition at line 326 of file ozpd.c.

void oz_pd_stop ( struct oz_pd pd)

Definition at line 303 of file ozpd.c.

int oz_prepare_frame ( struct oz_pd pd,
int  empty 
)

Definition at line 427 of file ozpd.c.

void oz_retire_tx_frames ( struct oz_pd pd,
u8  lpn 
)

Definition at line 671 of file ozpd.c.

int oz_send_isoc_unit ( struct oz_pd pd,
u8  ep_num,
u8 data,
int  len 
)

Definition at line 779 of file ozpd.c.

void oz_send_queued_frames ( struct oz_pd pd,
int  backlog 
)

Definition at line 584 of file ozpd.c.

int oz_services_start ( struct oz_pd pd,
u16  apps,
int  resume 
)

Definition at line 236 of file ozpd.c.

void oz_services_stop ( struct oz_pd pd,
u16  apps,
int  pause 
)

Definition at line 261 of file ozpd.c.