Linux Kernel
3.7.1
|
#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) | |
#define DIR_STRING | ( | bAddress | ) | (((bAddress) & USB_DIR_IN) ? "in" : "out") |
#define DMA_ADDR_INVALID (~(dma_addr_t)0) |
#define dma_done_ie cpu_to_le32 (1 << DMA_DONE_INTERRUPT_ENABLE) |
#define DMA_INTERRUPTS |
#define DRIVER_DESC "PLX NET228x USB Peripheral Controller" |
#define PCI_ERROR_INTERRUPTS |
#define valid_bit cpu_to_le32 (1 << VALID_BIT) |
#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_AUTHOR | ( | "David Brownell" | ) |
MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
pci_ids | |||
) |
module_exit | ( | cleanup | ) |
module_init | ( | init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | fifo_mode | , |
ushort | , | ||
0644 | |||
) |