Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ozhcd.c File Reference
#include <linux/platform_device.h>
#include <linux/usb.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/export.h>
#include "linux/usb/hcd.h"
#include <asm/unaligned.h>
#include "ozconfig.h"
#include "ozusbif.h"
#include "oztrace.h"
#include "ozurbparanoia.h"
#include "ozevent.h"

Go to the source code of this file.

Data Structures

struct  oz_urb_link
 
struct  oz_endpoint
 
struct  oz_interface
 
struct  oz_port
 
struct  oz_hcd
 

Macros

#define OZ_IN_BUFFERING_UNITS   50
 
#define OZ_PLAT_DEV_NAME   "ozwpan"
 
#define OZ_MAX_LINK_POOL_SIZE   16
 
#define ep_from_link(__e)   container_of((__e), struct oz_endpoint, link)
 
#define OZ_F_EP_BUFFERING   0x1
 
#define OZ_F_EP_HAVE_STREAM   0x2
 
#define OZ_NB_ENDPOINTS   16
 
#define OZ_PORT_F_PRESENT   0x1
 
#define OZ_PORT_F_CHANGED   0x2
 
#define OZ_PORT_F_DYING   0x4
 
#define OZ_NB_PORTS   8
 
#define OZ_HDC_F_SUSPENDED   0x1
 
#define oz_display_conf_type(__x)
 

Functions

struct oz_urb_linkoz_uncancel_urb (struct oz_hcd *ozhcd, struct urb *urb)
 
void oz_complete_buffered_urb (struct oz_port *port, struct oz_endpoint *ep, struct urb *urb)
 
voidoz_hcd_pd_arrived (void *hpd)
 
void oz_hcd_pd_departed (void *hport)
 
void oz_hcd_pd_reset (void *hpd, void *hport)
 
void oz_hcd_get_desc_cnf (void *hport, u8 req_id, int status, u8 *desc, int length, int offset, int total_size)
 
void oz_hcd_control_cnf (void *hport, u8 req_id, u8 rcode, u8 *data, int data_len)
 
void oz_hcd_data_ind (void *hport, u8 endpoint, u8 *data, int data_len)
 
int oz_hcd_heartbeat (void *hport)
 
int oz_hcd_init (void)
 
void oz_hcd_term (void)
 

Macro Definition Documentation

#define ep_from_link (   __e)    container_of((__e), struct oz_endpoint, link)

Definition at line 52 of file ozhcd.c.

#define oz_display_conf_type (   __x)

Definition at line 847 of file ozhcd.c.

#define OZ_F_EP_BUFFERING   0x1

Definition at line 87 of file ozhcd.c.

#define OZ_F_EP_HAVE_STREAM   0x2

Definition at line 88 of file ozhcd.c.

#define OZ_HDC_F_SUSPENDED   0x1

Definition at line 135 of file ozhcd.c.

#define OZ_IN_BUFFERING_UNITS   50

Definition at line 43 of file ozhcd.c.

#define OZ_MAX_LINK_POOL_SIZE   16

Definition at line 49 of file ozhcd.c.

#define OZ_NB_ENDPOINTS   16

Definition at line 99 of file ozhcd.c.

#define OZ_NB_PORTS   8

Definition at line 122 of file ozhcd.c.

#define OZ_PLAT_DEV_NAME   "ozwpan"

Definition at line 46 of file ozhcd.c.

#define OZ_PORT_F_CHANGED   0x2

Definition at line 117 of file ozhcd.c.

#define OZ_PORT_F_DYING   0x4

Definition at line 118 of file ozhcd.c.

#define OZ_PORT_F_PRESENT   0x1

Definition at line 116 of file ozhcd.c.

Function Documentation

void oz_complete_buffered_urb ( struct oz_port port,
struct oz_endpoint ep,
struct urb urb 
)

Definition at line 420 of file ozhcd.c.

void oz_hcd_control_cnf ( void hport,
u8  req_id,
u8  rcode,
u8 data,
int  data_len 
)

Definition at line 897 of file ozhcd.c.

void oz_hcd_data_ind ( void hport,
u8  endpoint,
u8 data,
int  data_len 
)

Definition at line 985 of file ozhcd.c.

void oz_hcd_get_desc_cnf ( void hport,
u8  req_id,
int  status,
u8 desc,
int  length,
int  offset,
int  total_size 
)

Definition at line 761 of file ozhcd.c.

int oz_hcd_heartbeat ( void hport)

Definition at line 1037 of file ozhcd.c.

int oz_hcd_init ( void  )

Definition at line 2270 of file ozhcd.c.

void* oz_hcd_pd_arrived ( void hpd)

Definition at line 631 of file ozhcd.c.

void oz_hcd_pd_departed ( void hport)

Definition at line 690 of file ozhcd.c.

void oz_hcd_pd_reset ( void hpd,
void hport 
)

Definition at line 743 of file ozhcd.c.

void oz_hcd_term ( void  )

Definition at line 2305 of file ozhcd.c.

struct oz_urb_link* oz_uncancel_urb ( struct oz_hcd ozhcd,
struct urb urb 
)
read

Definition at line 330 of file ozhcd.c.