Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
ci.h File Reference
#include <linux/list.h>
#include <linux/irqreturn.h>
#include <linux/usb.h>
#include <linux/usb/gadget.h>

Go to the source code of this file.

Data Structures

struct  ci13xxx_ep
 
struct  ci_role_driver
 
struct  hw_bank
 
struct  ci13xxx
 

Macros

#define CI13XXX_PAGE_SIZE   4096ul /* page size for TD's */
 
#define ENDPT_MAX   32
 

: string description of the endpoint

: queue head for this endpoint : is the endpoint wedged : pointer to the controller : pointer to controller's spinlock : pointer to controller's TD pool

#define REG_BITS   (32)
 
enum  ci_role { CI_ROLE_HOST = 0, CI_ROLE_GADGET, CI_ROLE_END }
 
enum  ci13xxx_regs {
  CAP_CAPLENGTH, CAP_HCCPARAMS, CAP_DCCPARAMS, CAP_TESTMODE,
  CAP_LAST = CAP_TESTMODE, OP_USBCMD, OP_USBSTS, OP_USBINTR,
  OP_DEVICEADDR, OP_ENDPTLISTADDR, OP_PORTSC, OP_DEVLC,
  OP_OTGSC, OP_USBMODE, OP_ENDPTSETUPSTAT, OP_ENDPTPRIME,
  OP_ENDPTFLUSH, OP_ENDPTSTAT, OP_ENDPTCOMPLETE, OP_ENDPTCTRL,
  OP_LAST = OP_ENDPTCTRL + ENDPT_MAX / 2
}
 
int hw_device_reset (struct ci13xxx *ci, u32 mode)
 
int hw_port_test_set (struct ci13xxx *ci, u8 mode)
 
u8 hw_port_test_get (struct ci13xxx *ci)
 

Macro Definition Documentation

#define CI13XXX_PAGE_SIZE   4096ul /* page size for TD's */

Definition at line 24 of file ci.h.

#define ENDPT_MAX   32

Definition at line 25 of file ci.h.

#define REG_BITS   (32)

Definition at line 208 of file ci.h.

Enumeration Type Documentation

Enumerator:
CAP_CAPLENGTH 
CAP_HCCPARAMS 
CAP_DCCPARAMS 
CAP_TESTMODE 
CAP_LAST 
OP_USBCMD 
OP_USBSTS 
OP_USBINTR 
OP_DEVICEADDR 
OP_ENDPTLISTADDR 
OP_PORTSC 
OP_DEVLC 
OP_OTGSC 
OP_USBMODE 
OP_ENDPTSETUPSTAT 
OP_ENDPTPRIME 
OP_ENDPTFLUSH 
OP_ENDPTSTAT 
OP_ENDPTCOMPLETE 
OP_ENDPTCTRL 
OP_LAST 

Definition at line 211 of file ci.h.

enum ci_role
Enumerator:
CI_ROLE_HOST 
CI_ROLE_GADGET 
CI_ROLE_END 

Definition at line 62 of file ci.h.

Function Documentation

int hw_device_reset ( struct ci13xxx ci,
u32  mode 
)

hw_device_reset: resets chip (execute without interruption) : the controller

This function returns an error code

Definition at line 220 of file core.c.

u8 hw_port_test_get ( struct ci13xxx ci)

hw_port_test_get: reads port test mode value

This function returns port test mode value

Definition at line 170 of file core.c.

int hw_port_test_set ( struct ci13xxx ci,
u8  mode 
)

hw_port_test_set: writes port test mode (execute without interruption) : new value

This function returns an error code

Definition at line 154 of file core.c.