Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
net2272.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/errno.h>
#include <linux/gpio.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/prefetch.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/usb.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include "net2272.h"

Go to the source code of this file.

Macros

#define DRIVER_DESC   "PLX NET2272 USB Peripheral Controller"
 
#define DMA_ADDR_INVALID   (~(dma_addr_t)0)
 
#define use_dma   0
 
#define dma_ep   1
 
#define dma_mode   2
 
#define ASSERT_OUT_NAKING(ep)   assert_out_naking(ep, __func__)
 
#define PIPEDIR(bAddress)   (usb_pipein(bAddress) ? "in" : "out")
 

Functions

 module_param (fifo_mode, ushort, 0644)
 
 module_param (enable_suspend, ushort, 0644)
 
 MODULE_ALIAS ("platform:net2272")
 
 module_init (net2272_init)
 
 module_exit (net2272_cleanup)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_AUTHOR ("PLX Technology, Inc.")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ASSERT_OUT_NAKING (   ep)    assert_out_naking(ep, __func__)

Definition at line 136 of file net2272.c.

#define DMA_ADDR_INVALID   (~(dma_addr_t)0)

Definition at line 61 of file net2272.c.

#define dma_ep   1

Definition at line 98 of file net2272.c.

#define dma_mode   2

Definition at line 99 of file net2272.c.

#define DRIVER_DESC   "PLX NET2272 USB Peripheral Controller"

Definition at line 49 of file net2272.c.

#define PIPEDIR (   bAddress)    (usb_pipein(bAddress) ? "in" : "out")

Definition at line 146 of file net2272.c.

#define use_dma   0

Definition at line 97 of file net2272.c.

Function Documentation

MODULE_ALIAS ( "platform:net2272"  )
MODULE_AUTHOR ( "PLX  Technology,
Inc."   
)
MODULE_DESCRIPTION ( DRIVER_DESC  )
module_exit ( net2272_cleanup  )
module_init ( net2272_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( fifo_mode  ,
ushort  ,
0644   
)
module_param ( enable_suspend  ,
ushort  ,
0644   
)