Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
imx_udc.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/prefetch.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/platform_data/usb-imx_udc.h>
#include <mach/hardware.h>
#include "imx_udc.h"

Go to the source code of this file.

Macros

#define MX1_INT_USBD0   MX1_USBD_INT0
 
#define imx_udc_suspend   NULL
 
#define imx_udc_resume   NULL
 

Functions

void ep0_chg_stat (const char *label, struct imx_udc_struct *imx_usb, enum ep0_state stat)
 
void imx_udc_enable (struct imx_udc_struct *imx_usb)
 
void imx_udc_disable (struct imx_udc_struct *imx_usb)
 
void imx_udc_reset (struct imx_udc_struct *imx_usb)
 
void imx_udc_config (struct imx_udc_struct *imx_usb)
 
void imx_udc_init_irq (struct imx_udc_struct *imx_usb)
 
void imx_udc_init_ep (struct imx_udc_struct *imx_usb)
 
void imx_udc_init_fifo (struct imx_udc_struct *imx_usb)
 
void imx_ep_irq_enable (struct imx_ep_struct *imx_ep)
 
void imx_ep_irq_disable (struct imx_ep_struct *imx_ep)
 
int imx_ep_empty (struct imx_ep_struct *imx_ep)
 
unsigned imx_fifo_bcount (struct imx_ep_struct *imx_ep)
 
void imx_flush (struct imx_ep_struct *imx_ep)
 
void imx_ep_stall (struct imx_ep_struct *imx_ep)
 
irq_handler_t intr_handler (int i)
 
 module_init (udc_init)
 
 module_exit (udc_exit)
 
 MODULE_DESCRIPTION ("IMX USB Device Controller driver")
 
 MODULE_AUTHOR ("Darius Augulis <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:imx_udc")
 

Macro Definition Documentation

#define imx_udc_resume   NULL

Definition at line 1544 of file imx_udc.c.

#define imx_udc_suspend   NULL

Definition at line 1543 of file imx_udc.c.

#define MX1_INT_USBD0   MX1_USBD_INT0

Definition at line 1196 of file imx_udc.c.

Function Documentation

void ep0_chg_stat ( const char label,
struct imx_udc_struct imx_usb,
enum ep0_state  stat 
)

Definition at line 961 of file imx_udc.c.

int imx_ep_empty ( struct imx_ep_struct imx_ep)

Definition at line 257 of file imx_udc.c.

void imx_ep_irq_disable ( struct imx_ep_struct imx_ep)

Definition at line 248 of file imx_udc.c.

void imx_ep_irq_enable ( struct imx_ep_struct imx_ep)

Definition at line 237 of file imx_udc.c.

void imx_ep_stall ( struct imx_ep_struct imx_ep)

Definition at line 282 of file imx_udc.c.

unsigned imx_fifo_bcount ( struct imx_ep_struct imx_ep)

Definition at line 265 of file imx_udc.c.

void imx_flush ( struct imx_ep_struct imx_ep)

Definition at line 273 of file imx_udc.c.

void imx_udc_config ( struct imx_udc_struct imx_usb)

Definition at line 89 of file imx_udc.c.

void imx_udc_disable ( struct imx_udc_struct imx_usb)

Definition at line 62 of file imx_udc.c.

void imx_udc_enable ( struct imx_udc_struct imx_usb)

Definition at line 54 of file imx_udc.c.

void imx_udc_init_ep ( struct imx_udc_struct imx_usb)

Definition at line 165 of file imx_udc.c.

void imx_udc_init_fifo ( struct imx_udc_struct imx_usb)

Definition at line 198 of file imx_udc.c.

void imx_udc_init_irq ( struct imx_udc_struct imx_usb)

Definition at line 144 of file imx_udc.c.

void imx_udc_reset ( struct imx_udc_struct imx_usb)

Definition at line 73 of file imx_udc.c.

irq_handler_t intr_handler ( int  i)

Definition at line 1219 of file imx_udc.c.

MODULE_ALIAS ( "platform:imx_udc"  )
MODULE_AUTHOR ( "Darius Augulis <[email protected]>"  )
MODULE_DESCRIPTION ( "IMX USB Device Controller driver )
module_exit ( udc_exit  )
module_init ( udc_init  )
MODULE_LICENSE ( "GPL"  )