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

Go to the source code of this file.

Macros

#define DRIVER_DESC   "PLX NET228x USB Peripheral Controller"
 
#define DRIVER_VERSION   "2005 Sept 27"
 
#define DMA_ADDR_INVALID   (~(dma_addr_t)0)
 
#define EP_DONTUSE   13 /* nonzero */
 
#define USE_RDK_LEDS   /* GPIO pins control three LEDs */
 
#define DIR_STRING(bAddress)   (((bAddress) & USB_DIR_IN) ? "in" : "out")
 
#define valid_bit   cpu_to_le32 (1 << VALID_BIT)
 
#define dma_done_ie   cpu_to_le32 (1 << DMA_DONE_INTERRUPT_ENABLE)
 
#define device_create_file(a, b)   (0)
 
#define device_remove_file(a, b)   do { } while (0)
 
#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 DMA_INTERRUPTS
 
#define PCI_ERROR_INTERRUPTS
 

Functions

 module_param (use_dma, bool, S_IRUGO)
 
 module_param (use_dma_chaining, bool, S_IRUGO)
 
 module_param (fifo_mode, ushort, 0644)
 
 module_param (enable_suspend, bool, S_IRUGO)
 
 MODULE_DEVICE_TABLE (pci, pci_ids)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_AUTHOR ("David Brownell")
 
 MODULE_LICENSE ("GPL")
 
 module_init (init)
 
 module_exit (cleanup)
 

Macro Definition Documentation

#define device_create_file (   a,
  b 
)    (0)

Definition at line 1697 of file net2280.c.

#define device_remove_file (   a,
  b 
)    do { } while (0)

Definition at line 1698 of file net2280.c.

#define DIR_STRING (   bAddress)    (((bAddress) & USB_DIR_IN) ? "in" : "out")

Definition at line 120 of file net2280.c.

#define DMA_ADDR_INVALID   (~(dma_addr_t)0)

Definition at line 68 of file net2280.c.

#define dma_done_ie   cpu_to_le32 (1 << DMA_DONE_INTERRUPT_ENABLE)

Definition at line 137 of file net2280.c.

#define DMA_INTERRUPTS
Value:
( \
(1 << DMA_D_INTERRUPT) \
| (1 << DMA_C_INTERRUPT) \
| (1 << DMA_B_INTERRUPT) \
| (1 << DMA_A_INTERRUPT))

Definition at line 2427 of file net2280.c.

#define DRIVER_DESC   "PLX NET228x USB Peripheral Controller"

Definition at line 65 of file net2280.c.

#define DRIVER_VERSION   "2005 Sept 27"

Definition at line 66 of file net2280.c.

#define EP_DONTUSE   13 /* nonzero */

Definition at line 69 of file net2280.c.

#define PCI_ERROR_INTERRUPTS
Value:

Definition at line 2432 of file net2280.c.

#define USE_RDK_LEDS   /* GPIO pins control three LEDs */

Definition at line 71 of file net2280.c.

#define valid_bit   cpu_to_le32 (1 << VALID_BIT)

Definition at line 136 of file net2280.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)

Function Documentation

MODULE_AUTHOR ( "David Brownell"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( pci  ,
pci_ids   
)
module_exit ( cleanup  )
module_init ( init  )
MODULE_LICENSE ( "GPL"  )
module_param ( use_dma  ,
bool  ,
S_IRUGO   
)
module_param ( use_dma_chaining  ,
bool  ,
S_IRUGO   
)
module_param ( fifo_mode  ,
ushort  ,
0644   
)
module_param ( enable_suspend  ,
bool  ,
S_IRUGO   
)