Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
pegasus.h File Reference

Go to the source code of this file.

Data Structures

struct  pegasus
 
struct  usb_eth_dev
 

Macros

#define PEGASUS_II   0x80000000
 
#define HAS_HOME_PNA   0x40000000
 
#define PEGASUS_MTU   1536
 
#define RX_SKBS   4
 
#define EPROM_WRITE   0x01
 
#define EPROM_READ   0x02
 
#define EPROM_DONE   0x04
 
#define EPROM_WR_ENABLE   0x10
 
#define EPROM_LOAD   0x20
 
#define PHY_DONE   0x80
 
#define PHY_READ   0x40
 
#define PHY_WRITE   0x20
 
#define DEFAULT_GPIO_RESET   0x24
 
#define DEFAULT_GPIO_SET   0x26
 
#define PEGASUS_PRESENT   0x00000001
 
#define PEGASUS_TX_BUSY   0x00000004
 
#define PEGASUS_RX_BUSY   0x00000008
 
#define CTRL_URB_RUNNING   0x00000010
 
#define CTRL_URB_SLEEP   0x00000020
 
#define PEGASUS_UNPLUG   0x00000040
 
#define PEGASUS_RX_URB_FAIL   0x00000080
 
#define ETH_REGS_CHANGE   0x40000000
 
#define ETH_REGS_CHANGED   0x80000000
 
#define RX_MULTICAST   2
 
#define RX_PROMISCUOUS   4
 
#define REG_TIMEOUT   (HZ)
 
#define PEGASUS_TX_TIMEOUT   (HZ*10)
 
#define TX_UNDERRUN   0x80
 
#define EXCESSIVE_COL   0x40
 
#define LATE_COL   0x20
 
#define NO_CARRIER   0x10
 
#define LOSS_CARRIER   0x08
 
#define JABBER_TIMEOUT   0x04
 
#define LINK_STATUS   0x01
 
#define PEGASUS_REQT_READ   0xc0
 
#define PEGASUS_REQT_WRITE   0x40
 
#define PEGASUS_REQ_GET_REGS   0xf0
 
#define PEGASUS_REQ_SET_REGS   0xf1
 
#define PEGASUS_REQ_SET_REG   PEGASUS_REQ_SET_REGS
 
#define VENDOR_3COM   0x0506
 
#define VENDOR_ABOCOM   0x07b8
 
#define VENDOR_ACCTON   0x083a
 
#define VENDOR_ADMTEK   0x07a6
 
#define VENDOR_AEILAB   0x3334
 
#define VENDOR_ALLIEDTEL   0x07c9
 
#define VENDOR_ATEN   0x0557
 
#define VENDOR_BELKIN   0x050d
 
#define VENDOR_BILLIONTON   0x08dd
 
#define VENDOR_COMPAQ   0x049f
 
#define VENDOR_COREGA   0x07aa
 
#define VENDOR_DLINK   0x2001
 
#define VENDOR_ELCON   0x0db7
 
#define VENDOR_ELECOM   0x056e
 
#define VENDOR_ELSA   0x05cc
 
#define VENDOR_GIGABYTE   0x1044
 
#define VENDOR_HAWKING   0x0e66
 
#define VENDOR_HP   0x03f0
 
#define VENDOR_IODATA   0x04bb
 
#define VENDOR_KINGSTON   0x0951
 
#define VENDOR_LANEED   0x056e
 
#define VENDOR_LINKSYS   0x066b
 
#define VENDOR_LINKSYS2   0x077b
 
#define VENDOR_MELCO   0x0411
 
#define VENDOR_MICROSOFT   0x045e
 
#define VENDOR_MOBILITY   0x1342
 
#define VENDOR_NETGEAR   0x0846
 
#define VENDOR_OCT   0x0b39
 
#define VENDOR_SMARTBRIDGES   0x08d1
 
#define VENDOR_SMC   0x0707
 
#define VENDOR_SOHOWARE   0x15e8
 
#define VENDOR_SIEMENS   0x067c
 

Typedefs

typedef struct pegasus pegasus_t
 

Enumerations

enum  pegasus_registers {
  EthCtrl0 = 0, EthCtrl1 = 1, EthCtrl2 = 2, EthID = 0x10,
  Reg1d = 0x1d, EpromOffset = 0x20, EpromData = 0x21, EpromCtrl = 0x23,
  PhyAddr = 0x25, PhyData = 0x26, PhyCtrl = 0x28, UsbStst = 0x2a,
  EthTxStat0 = 0x2b, EthTxStat1 = 0x2c, EthRxStat = 0x2d, WakeupControl = 0x78,
  Reg7b = 0x7b, Gpio0 = 0x7e, Gpio1 = 0x7f, Reg81 = 0x81
}
 

Macro Definition Documentation

#define CTRL_URB_RUNNING   0x00000010

Definition at line 33 of file pegasus.h.

#define CTRL_URB_SLEEP   0x00000020

Definition at line 34 of file pegasus.h.

#define DEFAULT_GPIO_RESET   0x24

Definition at line 27 of file pegasus.h.

#define DEFAULT_GPIO_SET   0x26

Definition at line 28 of file pegasus.h.

#define EPROM_DONE   0x04

Definition at line 20 of file pegasus.h.

#define EPROM_LOAD   0x20

Definition at line 22 of file pegasus.h.

#define EPROM_READ   0x02

Definition at line 19 of file pegasus.h.

#define EPROM_WR_ENABLE   0x10

Definition at line 21 of file pegasus.h.

#define EPROM_WRITE   0x01

Definition at line 18 of file pegasus.h.

#define ETH_REGS_CHANGE   0x40000000

Definition at line 37 of file pegasus.h.

#define ETH_REGS_CHANGED   0x80000000

Definition at line 38 of file pegasus.h.

#define EXCESSIVE_COL   0x40

Definition at line 47 of file pegasus.h.

#define HAS_HOME_PNA   0x40000000

Definition at line 13 of file pegasus.h.

#define JABBER_TIMEOUT   0x04

Definition at line 51 of file pegasus.h.

#define LATE_COL   0x20

Definition at line 48 of file pegasus.h.

#define LINK_STATUS   0x01

Definition at line 53 of file pegasus.h.

#define LOSS_CARRIER   0x08

Definition at line 50 of file pegasus.h.

#define NO_CARRIER   0x10

Definition at line 49 of file pegasus.h.

#define PEGASUS_II   0x80000000

Definition at line 12 of file pegasus.h.

#define PEGASUS_MTU   1536

Definition at line 15 of file pegasus.h.

#define PEGASUS_PRESENT   0x00000001

Definition at line 30 of file pegasus.h.

#define PEGASUS_REQ_GET_REGS   0xf0

Definition at line 57 of file pegasus.h.

#define PEGASUS_REQ_SET_REG   PEGASUS_REQ_SET_REGS

Definition at line 59 of file pegasus.h.

#define PEGASUS_REQ_SET_REGS   0xf1

Definition at line 58 of file pegasus.h.

#define PEGASUS_REQT_READ   0xc0

Definition at line 55 of file pegasus.h.

#define PEGASUS_REQT_WRITE   0x40

Definition at line 56 of file pegasus.h.

#define PEGASUS_RX_BUSY   0x00000008

Definition at line 32 of file pegasus.h.

#define PEGASUS_RX_URB_FAIL   0x00000080

Definition at line 36 of file pegasus.h.

#define PEGASUS_TX_BUSY   0x00000004

Definition at line 31 of file pegasus.h.

#define PEGASUS_TX_TIMEOUT   (HZ*10)

Definition at line 44 of file pegasus.h.

#define PEGASUS_UNPLUG   0x00000040

Definition at line 35 of file pegasus.h.

#define PHY_DONE   0x80

Definition at line 24 of file pegasus.h.

#define PHY_READ   0x40

Definition at line 25 of file pegasus.h.

#define PHY_WRITE   0x20

Definition at line 26 of file pegasus.h.

#define REG_TIMEOUT   (HZ)

Definition at line 43 of file pegasus.h.

#define RX_MULTICAST   2

Definition at line 40 of file pegasus.h.

#define RX_PROMISCUOUS   4

Definition at line 41 of file pegasus.h.

#define RX_SKBS   4

Definition at line 16 of file pegasus.h.

#define TX_UNDERRUN   0x80

Definition at line 46 of file pegasus.h.

#define VENDOR_3COM   0x0506

Definition at line 121 of file pegasus.h.

#define VENDOR_ABOCOM   0x07b8

Definition at line 122 of file pegasus.h.

#define VENDOR_ACCTON   0x083a

Definition at line 123 of file pegasus.h.

#define VENDOR_ADMTEK   0x07a6

Definition at line 124 of file pegasus.h.

#define VENDOR_AEILAB   0x3334

Definition at line 125 of file pegasus.h.

#define VENDOR_ALLIEDTEL   0x07c9

Definition at line 126 of file pegasus.h.

#define VENDOR_ATEN   0x0557

Definition at line 127 of file pegasus.h.

#define VENDOR_BELKIN   0x050d

Definition at line 128 of file pegasus.h.

#define VENDOR_BILLIONTON   0x08dd

Definition at line 129 of file pegasus.h.

#define VENDOR_COMPAQ   0x049f

Definition at line 130 of file pegasus.h.

#define VENDOR_COREGA   0x07aa

Definition at line 131 of file pegasus.h.

#define VENDOR_DLINK   0x2001

Definition at line 132 of file pegasus.h.

#define VENDOR_ELCON   0x0db7

Definition at line 133 of file pegasus.h.

#define VENDOR_ELECOM   0x056e

Definition at line 134 of file pegasus.h.

#define VENDOR_ELSA   0x05cc

Definition at line 135 of file pegasus.h.

#define VENDOR_GIGABYTE   0x1044

Definition at line 136 of file pegasus.h.

#define VENDOR_HAWKING   0x0e66

Definition at line 137 of file pegasus.h.

#define VENDOR_HP   0x03f0

Definition at line 138 of file pegasus.h.

#define VENDOR_IODATA   0x04bb

Definition at line 139 of file pegasus.h.

#define VENDOR_KINGSTON   0x0951

Definition at line 140 of file pegasus.h.

#define VENDOR_LANEED   0x056e

Definition at line 141 of file pegasus.h.

#define VENDOR_LINKSYS   0x066b

Definition at line 142 of file pegasus.h.

#define VENDOR_LINKSYS2   0x077b

Definition at line 143 of file pegasus.h.

#define VENDOR_MELCO   0x0411

Definition at line 144 of file pegasus.h.

#define VENDOR_MICROSOFT   0x045e

Definition at line 145 of file pegasus.h.

#define VENDOR_MOBILITY   0x1342

Definition at line 146 of file pegasus.h.

#define VENDOR_NETGEAR   0x0846

Definition at line 147 of file pegasus.h.

#define VENDOR_OCT   0x0b39

Definition at line 148 of file pegasus.h.

#define VENDOR_SIEMENS   0x067c

Definition at line 152 of file pegasus.h.

#define VENDOR_SMARTBRIDGES   0x08d1

Definition at line 149 of file pegasus.h.

#define VENDOR_SMC   0x0707

Definition at line 150 of file pegasus.h.

#define VENDOR_SOHOWARE   0x15e8

Definition at line 151 of file pegasus.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
EthCtrl0 
EthCtrl1 
EthCtrl2 
EthID 
Reg1d 
EpromOffset 
EpromData 
EpromCtrl 
PhyAddr 
PhyData 
PhyCtrl 
UsbStst 
EthTxStat0 
EthTxStat1 
EthRxStat 
WakeupControl 
Reg7b 
Gpio0 
Gpio1 
Reg81 

Definition at line 61 of file pegasus.h.