Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/timer.h>
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/proc_fs.h>
#include <linux/mm.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/otg.h>
#include <linux/dma-mapping.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/prefetch.h>
#include <linux/io.h>
#include <asm/byteorder.h>
#include <asm/irq.h>
#include <asm/unaligned.h>
#include <asm/mach-types.h>
#include <plat/dma.h>
#include <mach/usb.h>
#include "omap_udc.h"
Go to the source code of this file.
Macros | |
#define | USE_DMA |
#define | USE_ISO |
#define | DRIVER_DESC "OMAP UDC driver" |
#define | DRIVER_VERSION "4 October 2004" |
#define | UDC_FIFO_FULL (UDC_NON_ISO_FIFO_FULL | UDC_ISO_FIFO_FULL) |
#define | UDC_FIFO_UNWRITABLE (UDC_EP_HALTED | UDC_FIFO_FULL) |
#define | FIFO_EMPTY (UDC_NON_ISO_FIFO_EMPTY | UDC_ISO_FIFO_EMPTY) |
#define | FIFO_UNREADABLE (UDC_EP_HALTED | FIFO_EMPTY) |
#define | w_value le16_to_cpu(u.r.wValue) |
#define | w_index le16_to_cpu(u.r.wIndex) |
#define | w_length le16_to_cpu(u.r.wLength) |
#define | OTG_FLAGS (UDC_B_HNP_ENABLE|UDC_A_HNP_SUPPORT|UDC_A_ALT_HNP_SUPPORT) |
#define | PIO_OUT_TIMEOUT (jiffies + HZ/3) |
#define | HALF_FULL(f) (!((f)&(UDC_NON_ISO_FIFO_FULL|UDC_NON_ISO_FIFO_EMPTY))) |
#define | OMAP_BULK_EP(name, addr) |
#define | OMAP_INT_EP(name, addr, maxp) |
#define | OMAP_ISO_EP(name, addr, maxp) |
Functions | |
module_param (fifo_mode, uint, 0) | |
MODULE_PARM_DESC (fifo_mode,"endpoint configuration") | |
module_param (use_dma, bool, 0) | |
MODULE_PARM_DESC (use_dma,"enable/disable DMA") | |
module_platform_driver (udc_driver) | |
MODULE_DESCRIPTION (DRIVER_DESC) | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS ("platform:omap_udc") | |
Definition at line 61 of file omap_udc.c.
#define DRIVER_VERSION "4 October 2004" |
Definition at line 62 of file omap_udc.c.
#define FIFO_EMPTY (UDC_NON_ISO_FIFO_EMPTY | UDC_ISO_FIFO_EMPTY) |
Definition at line 326 of file omap_udc.c.
#define FIFO_UNREADABLE (UDC_EP_HALTED | FIFO_EMPTY) |
Definition at line 327 of file omap_udc.c.
#define HALF_FULL | ( | f | ) | (!((f)&(UDC_NON_ISO_FIFO_FULL|UDC_NON_ISO_FIFO_EMPTY))) |
Definition at line 1856 of file omap_udc.c.
#define OTG_FLAGS (UDC_B_HNP_ENABLE|UDC_A_HNP_SUPPORT|UDC_A_ALT_HNP_SUPPORT) |
Definition at line 1719 of file omap_udc.c.
Definition at line 1855 of file omap_udc.c.
#define UDC_FIFO_FULL (UDC_NON_ISO_FIFO_FULL | UDC_ISO_FIFO_FULL) |
Definition at line 323 of file omap_udc.c.
#define UDC_FIFO_UNWRITABLE (UDC_EP_HALTED | UDC_FIFO_FULL) |
Definition at line 324 of file omap_udc.c.
#define USE_DMA |
Definition at line 56 of file omap_udc.c.
#define USE_ISO |
Definition at line 59 of file omap_udc.c.
#define w_index le16_to_cpu(u.r.wIndex) |
#define w_length le16_to_cpu(u.r.wLength) |
#define w_value le16_to_cpu(u.r.wValue) |
MODULE_ALIAS | ( | "platform:omap_udc" | ) |
MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | fifo_mode | , |
uint | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | fifo_mode | , |
"endpoint configuration" | |||
) |
module_platform_driver | ( | udc_driver | ) |