Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
p54usb.h File Reference
#include "p54pci.h"
#include "net2280.h"

Go to the source code of this file.

Data Structures

struct  net2280_tx_hdr
 
struct  lm87_tx_hdr
 
struct  x2_header
 
struct  p54u_rx_info
 
struct  p54u_priv
 

Macros

#define NET2280_BASE   0x10000000
 
#define NET2280_BASE2   0x20000000
 
#define P54U_BRG_POWER_UP   (1 << GPIO0_DATA)
 
#define P54U_BRG_POWER_DOWN   (1 << GPIO1_DATA)
 
#define NET2280_CLK_4Mhz   (15 << LOCAL_CLOCK_FREQUENCY)
 
#define NET2280_CLK_30Mhz   (2 << LOCAL_CLOCK_FREQUENCY)
 
#define NET2280_CLK_60Mhz   (1 << LOCAL_CLOCK_FREQUENCY)
 
#define NET2280_CLK_STOP   (0 << LOCAL_CLOCK_FREQUENCY)
 
#define NET2280_PCI_ENABLE   (1 << PCI_ENABLE)
 
#define NET2280_PCI_SOFT_RESET   (1 << PCI_SOFT_RESET)
 
#define NET2280_CLEAR_NAK_OUT_PACKETS_MODE   (1 << CLEAR_NAK_OUT_PACKETS_MODE)
 
#define NET2280_FIFO_FLUSH   (1 << FIFO_FLUSH)
 
#define NET2280_USB_INTERRUPT_ENABLE   (1 << USB_INTERRUPT_ENABLE)
 
#define NET2280_PCI_INTA_INTERRUPT   (1 << PCI_INTA_INTERRUPT)
 
#define NET2280_PCI_INTA_INTERRUPT_ENABLE   (1 << PCI_INTA_INTERRUPT_ENABLE)
 
#define NET2280_DEVINIT   0x00
 
#define NET2280_USBIRQENB1   0x24
 
#define NET2280_IRQSTAT1   0x2c
 
#define NET2280_FIFOCTL   0x38
 
#define NET2280_GPIOCTL   0x50
 
#define NET2280_RELNUM   0x88
 
#define NET2280_EPA_RSP   0x324
 
#define NET2280_EPA_STAT   0x32c
 
#define NET2280_EPB_STAT   0x34c
 
#define NET2280_EPC_RSP   0x364
 
#define NET2280_EPC_STAT   0x36c
 
#define NET2280_EPD_STAT   0x38c
 
#define NET2280_EPA_CFG   0x320
 
#define NET2280_EPB_CFG   0x340
 
#define NET2280_EPC_CFG   0x360
 
#define NET2280_EPD_CFG   0x380
 
#define NET2280_EPE_CFG   0x3A0
 
#define NET2280_EPF_CFG   0x3C0
 
#define P54U_DEV_BASE   0x40000000
 
#define ISL38XX_DMA_STATUS_DONE   0x00000001
 
#define ISL38XX_DMA_STATUS_READY   0x00000002
 
#define NET2280_EPA_FIFO_PCI_ADDR   0x20000000
 
#define ISL38XX_DMA_MASTER_CONTROL_TRIGGER   0x00000004
 
#define P54U_FW_BLOCK   2048
 
#define X2_SIGNATURE   "x2 "
 
#define X2_SIGNATURE_SIZE   4
 
#define P54U_PIPE_NUMBER   9
 

Enumerations

enum  net2280_op_type {
  NET2280_BRG_U32 = 0x001F, NET2280_BRG_CFG_U32 = 0x000F, NET2280_BRG_CFG_U16 = 0x0003, NET2280_DEV_U32 = 0x080F,
  NET2280_DEV_CFG_U32 = 0x088F, NET2280_DEV_CFG_U16 = 0x0883
}
 
enum  p54u_pipe_addr {
  P54U_PIPE_DATA = 0x01, P54U_PIPE_MGMT = 0x02, P54U_PIPE_3 = 0x03, P54U_PIPE_4 = 0x04,
  P54U_PIPE_BRG = 0x0d, P54U_PIPE_DEV = 0x0e, P54U_PIPE_INT = 0x0f
}
 
enum  p54u_hw_type { P54U_INVALID_HW, P54U_NET2280, P54U_3887, __NUM_P54U_HWTYPES }
 

Variables

struct net2280_tx_hdr __packed
 

Macro Definition Documentation

#define ISL38XX_DMA_MASTER_CONTROL_TRIGGER   0x00000004

Definition at line 85 of file p54usb.h.

#define ISL38XX_DMA_STATUS_DONE   0x00000001

Definition at line 82 of file p54usb.h.

#define ISL38XX_DMA_STATUS_READY   0x00000002

Definition at line 83 of file p54usb.h.

#define NET2280_BASE   0x10000000

Definition at line 22 of file p54usb.h.

#define NET2280_BASE2   0x20000000

Definition at line 23 of file p54usb.h.

#define NET2280_CLEAR_NAK_OUT_PACKETS_MODE   (1 << CLEAR_NAK_OUT_PACKETS_MODE)

Definition at line 38 of file p54usb.h.

#define NET2280_CLK_30Mhz   (2 << LOCAL_CLOCK_FREQUENCY)

Definition at line 31 of file p54usb.h.

#define NET2280_CLK_4Mhz   (15 << LOCAL_CLOCK_FREQUENCY)

Definition at line 30 of file p54usb.h.

#define NET2280_CLK_60Mhz   (1 << LOCAL_CLOCK_FREQUENCY)

Definition at line 32 of file p54usb.h.

#define NET2280_CLK_STOP   (0 << LOCAL_CLOCK_FREQUENCY)

Definition at line 33 of file p54usb.h.

#define NET2280_DEVINIT   0x00

Definition at line 47 of file p54usb.h.

#define NET2280_EPA_CFG   0x320

Definition at line 60 of file p54usb.h.

#define NET2280_EPA_FIFO_PCI_ADDR   0x20000000

Definition at line 84 of file p54usb.h.

#define NET2280_EPA_RSP   0x324

Definition at line 53 of file p54usb.h.

#define NET2280_EPA_STAT   0x32c

Definition at line 54 of file p54usb.h.

#define NET2280_EPB_CFG   0x340

Definition at line 61 of file p54usb.h.

#define NET2280_EPB_STAT   0x34c

Definition at line 55 of file p54usb.h.

#define NET2280_EPC_CFG   0x360

Definition at line 62 of file p54usb.h.

#define NET2280_EPC_RSP   0x364

Definition at line 56 of file p54usb.h.

#define NET2280_EPC_STAT   0x36c

Definition at line 57 of file p54usb.h.

#define NET2280_EPD_CFG   0x380

Definition at line 63 of file p54usb.h.

#define NET2280_EPD_STAT   0x38c

Definition at line 58 of file p54usb.h.

#define NET2280_EPE_CFG   0x3A0

Definition at line 64 of file p54usb.h.

#define NET2280_EPF_CFG   0x3C0

Definition at line 65 of file p54usb.h.

#define NET2280_FIFO_FLUSH   (1 << FIFO_FLUSH)

Definition at line 39 of file p54usb.h.

#define NET2280_FIFOCTL   0x38

Definition at line 50 of file p54usb.h.

#define NET2280_GPIOCTL   0x50

Definition at line 51 of file p54usb.h.

#define NET2280_IRQSTAT1   0x2c

Definition at line 49 of file p54usb.h.

#define NET2280_PCI_ENABLE   (1 << PCI_ENABLE)

Definition at line 34 of file p54usb.h.

#define NET2280_PCI_INTA_INTERRUPT   (1 << PCI_INTA_INTERRUPT)

Definition at line 43 of file p54usb.h.

#define NET2280_PCI_INTA_INTERRUPT_ENABLE   (1 << PCI_INTA_INTERRUPT_ENABLE)

Definition at line 44 of file p54usb.h.

#define NET2280_PCI_SOFT_RESET   (1 << PCI_SOFT_RESET)

Definition at line 35 of file p54usb.h.

#define NET2280_RELNUM   0x88

Definition at line 52 of file p54usb.h.

#define NET2280_USB_INTERRUPT_ENABLE   (1 << USB_INTERRUPT_ENABLE)

Definition at line 42 of file p54usb.h.

#define NET2280_USBIRQENB1   0x24

Definition at line 48 of file p54usb.h.

#define P54U_BRG_POWER_DOWN   (1 << GPIO1_DATA)

Definition at line 27 of file p54usb.h.

#define P54U_BRG_POWER_UP   (1 << GPIO0_DATA)

Definition at line 26 of file p54usb.h.

#define P54U_DEV_BASE   0x40000000

Definition at line 66 of file p54usb.h.

#define P54U_FW_BLOCK   2048

Definition at line 96 of file p54usb.h.

#define P54U_PIPE_NUMBER   9

Definition at line 109 of file p54usb.h.

#define X2_SIGNATURE   "x2 "

Definition at line 98 of file p54usb.h.

#define X2_SIGNATURE_SIZE   4

Definition at line 99 of file p54usb.h.

Enumeration Type Documentation

Enumerator:
NET2280_BRG_U32 
NET2280_BRG_CFG_U32 
NET2280_BRG_CFG_U16 
NET2280_DEV_U32 
NET2280_DEV_CFG_U32 
NET2280_DEV_CFG_U16 

Definition at line 87 of file p54usb.h.

Enumerator:
P54U_INVALID_HW 
P54U_NET2280 
P54U_3887 
__NUM_P54U_HWTYPES 

Definition at line 126 of file p54usb.h.

Enumerator:
P54U_PIPE_DATA 
P54U_PIPE_MGMT 
P54U_PIPE_3 
P54U_PIPE_4 
P54U_PIPE_BRG 
P54U_PIPE_DEV 
P54U_PIPE_INT 

Definition at line 111 of file p54usb.h.

Variable Documentation