Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
u132-hcd.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/delay.h>
#include <linux/ioport.h>
#include <linux/pci_ids.h>
#include <linux/sched.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/usb.h>
#include <linux/usb/hcd.h>
#include <linux/workqueue.h>
#include <linux/platform_device.h>
#include <linux/mutex.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/byteorder.h>
#include "ohci.h"
#include "../misc/usb_u132.h"

Go to the source code of this file.

Data Structures

struct  u132_port
 
struct  u132_addr
 
struct  u132_udev
 
struct  u132_urbq
 
struct  u132_spin
 
struct  u132_endp
 
struct  u132_ring
 
struct  u132
 

Macros

#define OHCI_CONTROL_INIT   OHCI_CTRL_CBSR
 
#define OHCI_INTR_INIT
 
#define INT_MODULE_PARM(n, v)   static int n = v;module_param(n, int, 0444)
 
#define MAX_U132_PORTS   7
 
#define MAX_U132_ADDRS   128
 
#define MAX_U132_UDEVS   4
 
#define MAX_U132_ENDPS   100
 
#define MAX_U132_RINGS   4
 
#define ENDP_QUEUE_SHIFT   3
 
#define ENDP_QUEUE_SIZE   (1<<ENDP_QUEUE_SHIFT)
 
#define ENDP_QUEUE_MASK   (ENDP_QUEUE_SIZE-1)
 
#define ftdi_read_pcimem(pdev, member, data)
 
#define ftdi_write_pcimem(pdev, member, data)
 
#define u132_read_pcimem(u132, member, data)
 
#define u132_write_pcimem(u132, member, data)
 
#define kref_to_u132(d)   container_of(d, struct u132, kref)
 
#define kref_to_u132_endp(d)   container_of(d, struct u132_endp, kref)
 
#define kref_to_u132_udev(d)   container_of(d, struct u132_udev, kref)
 
#define PORT_C_MASK
 
#define PORT_RESET_HW_MSEC   10
 
#define PORT_RESET_MSEC   10
 
#define tick_before(t1, t2)   ((s16)(((s16)(t1))-((s16)(t2))) < 0)
 
#define u132_bus_suspend   NULL
 
#define u132_bus_resume   NULL
 
#define u132_suspend   NULL
 
#define u132_resume   NULL
 

Functions

 MODULE_AUTHOR ("Tony Olech - Elan Digital Systems Limited")
 
 MODULE_DESCRIPTION ("U132 USB Host Controller Driver")
 
 MODULE_LICENSE ("GPL")
 
 INT_MODULE_PARM (testing, 0)
 
 module_param (distrust_firmware, bool, 0)
 
 MODULE_PARM_DESC (distrust_firmware,"true to distrust firmware power/overcurren""t setup")
 
 module_init (u132_hcd_init)
 
 module_exit (u132_hcd_exit)
 
 MODULE_ALIAS ("platform:u132_hcd")
 

Macro Definition Documentation

#define ENDP_QUEUE_MASK   (ENDP_QUEUE_SIZE-1)

Definition at line 138 of file u132-hcd.c.

#define ENDP_QUEUE_SHIFT   3

Definition at line 136 of file u132-hcd.c.

#define ENDP_QUEUE_SIZE   (1<<ENDP_QUEUE_SHIFT)

Definition at line 137 of file u132-hcd.c.

#define ftdi_read_pcimem (   pdev,
  member,
  data 
)
Value:
offsetof(struct ohci_regs, member), 0, data);

Definition at line 214 of file u132-hcd.c.

#define ftdi_write_pcimem (   pdev,
  member,
  data 
)
Value:
offsetof(struct ohci_regs, member), 0, data);

Definition at line 216 of file u132-hcd.c.

#define INT_MODULE_PARM (   n,
  v 
)    static int n = v;module_param(n, int, 0444)

Definition at line 73 of file u132-hcd.c.

#define kref_to_u132 (   d)    container_of(d, struct u132, kref)

Definition at line 246 of file u132-hcd.c.

#define kref_to_u132_endp (   d)    container_of(d, struct u132_endp, kref)

Definition at line 247 of file u132-hcd.c.

#define kref_to_u132_udev (   d)    container_of(d, struct u132_udev, kref)

Definition at line 248 of file u132-hcd.c.

#define MAX_U132_ADDRS   128

Definition at line 94 of file u132-hcd.c.

#define MAX_U132_ENDPS   100

Definition at line 96 of file u132-hcd.c.

#define MAX_U132_PORTS   7

Definition at line 93 of file u132-hcd.c.

#define MAX_U132_RINGS   4

Definition at line 97 of file u132-hcd.c.

#define MAX_U132_UDEVS   4

Definition at line 95 of file u132-hcd.c.

#define OHCI_CONTROL_INIT   OHCI_CTRL_CBSR

Definition at line 67 of file u132-hcd.c.

#define OHCI_INTR_INIT
Value:
OHCI_INTR_WDH)

Definition at line 68 of file u132-hcd.c.

#define PORT_C_MASK
Value:
USB_PORT_STAT_C_SUSPEND | USB_PORT_STAT_C_OVERCURRENT | \
USB_PORT_STAT_C_RESET) << 16)

Definition at line 251 of file u132-hcd.c.

#define PORT_RESET_HW_MSEC   10

Definition at line 2645 of file u132-hcd.c.

#define PORT_RESET_MSEC   10

Definition at line 2646 of file u132-hcd.c.

#define tick_before (   t1,
  t2 
)    ((s16)(((s16)(t1))-((s16)(t2))) < 0)

Definition at line 2648 of file u132-hcd.c.

#define u132_bus_resume   NULL

Definition at line 2966 of file u132-hcd.c.

#define u132_bus_suspend   NULL

Definition at line 2965 of file u132-hcd.c.

#define u132_read_pcimem (   u132,
  member,
  data 
)
Value:

Definition at line 218 of file u132-hcd.c.

#define u132_resume   NULL

Definition at line 3206 of file u132-hcd.c.

#define u132_suspend   NULL

Definition at line 3205 of file u132-hcd.c.

#define u132_write_pcimem (   u132,
  member,
  data 
)
Value:

Definition at line 221 of file u132-hcd.c.

Function Documentation

INT_MODULE_PARM ( testing  ,
 
)
MODULE_ALIAS ( "platform:u132_hcd"  )
MODULE_AUTHOR ( "Tony Olech - Elan Digital Systems Limited"  )
MODULE_DESCRIPTION ( "U132 USB Host Controller Driver"  )
module_exit ( u132_hcd_exit  )
module_init ( u132_hcd_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( distrust_firmware  ,
bool  ,
 
)
MODULE_PARM_DESC ( distrust_firmware  ,
"true to distrust firmware power/overcurren""t setup  
)