12 #define PEGASUS_II 0x80000000
13 #define HAS_HOME_PNA 0x40000000
15 #define PEGASUS_MTU 1536
18 #define EPROM_WRITE 0x01
19 #define EPROM_READ 0x02
20 #define EPROM_DONE 0x04
21 #define EPROM_WR_ENABLE 0x10
22 #define EPROM_LOAD 0x20
26 #define PHY_WRITE 0x20
27 #define DEFAULT_GPIO_RESET 0x24
28 #define DEFAULT_GPIO_SET 0x26
30 #define PEGASUS_PRESENT 0x00000001
31 #define PEGASUS_TX_BUSY 0x00000004
32 #define PEGASUS_RX_BUSY 0x00000008
33 #define CTRL_URB_RUNNING 0x00000010
34 #define CTRL_URB_SLEEP 0x00000020
35 #define PEGASUS_UNPLUG 0x00000040
36 #define PEGASUS_RX_URB_FAIL 0x00000080
37 #define ETH_REGS_CHANGE 0x40000000
38 #define ETH_REGS_CHANGED 0x80000000
40 #define RX_MULTICAST 2
41 #define RX_PROMISCUOUS 4
43 #define REG_TIMEOUT (HZ)
44 #define PEGASUS_TX_TIMEOUT (HZ*10)
46 #define TX_UNDERRUN 0x80
47 #define EXCESSIVE_COL 0x40
49 #define NO_CARRIER 0x10
50 #define LOSS_CARRIER 0x08
51 #define JABBER_TIMEOUT 0x04
53 #define LINK_STATUS 0x01
55 #define PEGASUS_REQT_READ 0xc0
56 #define PEGASUS_REQT_WRITE 0x40
57 #define PEGASUS_REQ_GET_REGS 0xf0
58 #define PEGASUS_REQ_SET_REGS 0xf1
59 #define PEGASUS_REQ_SET_REG PEGASUS_REQ_SET_REGS
86 struct usb_device *
usb;
121 #define VENDOR_3COM 0x0506
122 #define VENDOR_ABOCOM 0x07b8
123 #define VENDOR_ACCTON 0x083a
124 #define VENDOR_ADMTEK 0x07a6
125 #define VENDOR_AEILAB 0x3334
126 #define VENDOR_ALLIEDTEL 0x07c9
127 #define VENDOR_ATEN 0x0557
128 #define VENDOR_BELKIN 0x050d
129 #define VENDOR_BILLIONTON 0x08dd
130 #define VENDOR_COMPAQ 0x049f
131 #define VENDOR_COREGA 0x07aa
132 #define VENDOR_DLINK 0x2001
133 #define VENDOR_ELCON 0x0db7
134 #define VENDOR_ELECOM 0x056e
135 #define VENDOR_ELSA 0x05cc
136 #define VENDOR_GIGABYTE 0x1044
137 #define VENDOR_HAWKING 0x0e66
138 #define VENDOR_HP 0x03f0
139 #define VENDOR_IODATA 0x04bb
140 #define VENDOR_KINGSTON 0x0951
141 #define VENDOR_LANEED 0x056e
142 #define VENDOR_LINKSYS 0x066b
143 #define VENDOR_LINKSYS2 0x077b
144 #define VENDOR_MELCO 0x0411
145 #define VENDOR_MICROSOFT 0x045e
146 #define VENDOR_MOBILITY 0x1342
147 #define VENDOR_NETGEAR 0x0846
148 #define VENDOR_OCT 0x0b39
149 #define VENDOR_SMARTBRIDGES 0x08d1
150 #define VENDOR_SMC 0x0707
151 #define VENDOR_SOHOWARE 0x15e8
152 #define VENDOR_SIEMENS 0x067c
163 PEGASUS_DEV("
USB HPNA/Ethernet", VENDOR_ABOCOM, 0x4104,
165 PEGASUS_DEV("
USB HPNA/Ethernet", VENDOR_ABOCOM, 0x4004,
167 PEGASUS_DEV("
USB HPNA/Ethernet", VENDOR_ABOCOM, 0x4007,
169 PEGASUS_DEV("
USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0x4102,
171 PEGASUS_DEV("
USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0x4002,
173 PEGASUS_DEV("
USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0x400b,
175 PEGASUS_DEV("
USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0x400c,
177 PEGASUS_DEV("
USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0xabc1,
179 PEGASUS_DEV("
USB 10/100 Fast Ethernet", VENDOR_ABOCOM, 0x200c,
183 PEGASUS_DEV("SpeedStream
USB 10/100 Ethernet", VENDOR_ACCTON, 0x5046,
185 PEGASUS_DEV("Philips
USB 10/100 Ethernet", VENDOR_ACCTON, 0xb004,
187 PEGASUS_DEV("ADMtek ADM8511 \"Pegasus
II\"
USB Ethernet",
190 PEGASUS_DEV("ADMtek ADM8513 \"Pegasus
II\"
USB Ethernet",
191 VENDOR_ADMTEK, 0x8513,
193 PEGASUS_DEV("ADMtek ADM8515 \"Pegasus
II\"
USB-2.0 Ethernet",
194 VENDOR_ADMTEK, 0x8515,
196 PEGASUS_DEV("ADMtek AN986 \"Pegasus\"
USB Ethernet (evaluation
board)",
197 VENDOR_ADMTEK, 0x0986,
199 PEGASUS_DEV("AN986A
USB MAC", VENDOR_ADMTEK, 1986,
209 PEGASUS_DEV_CLASS("Belkin F5D5050
USB Ethernet",
VENDOR_BELKIN, 0x0121, 0x00,
211 PEGASUS_DEV("Belkin F5U122 10/100
USB Ethernet", VENDOR_BELKIN, 0x0122,
215 PEGASUS_DEV("Billionton USBLP-100", VENDOR_BILLIONTON, 0x0987,
217 PEGASUS_DEV("iPAQ Networking 10/100 USB",
VENDOR_COMPAQ, 0x8511,
219 PEGASUS_DEV("Billionton USBEL-100", VENDOR_BILLIONTON, 0x0988,
221 PEGASUS_DEV("Billionton
USBE-100", VENDOR_BILLIONTON, 0x8511,
225 PEGASUS_DEV("Corega FEther USB-
TXS", VENDOR_COREGA, 0x000d,
229 PEGASUS_DEV("
D-
Link DSB-650TX", VENDOR_DLINK, 0x4002,
231 PEGASUS_DEV("
D-
Link DSB-650TX", VENDOR_DLINK, 0x4102,
233 PEGASUS_DEV("
D-
Link DSB-650TX", VENDOR_DLINK, 0x400b,
235 PEGASUS_DEV("
D-
Link DSB-650TX", VENDOR_DLINK, 0x200c,
237 PEGASUS_DEV("
D-
Link DSB-650TX(PNA)", VENDOR_DLINK, 0x4003,
239 PEGASUS_DEV("
D-
Link DSB-650", VENDOR_DLINK, 0xabc1,
241 PEGASUS_DEV("GOLDPFEIL USB Adapter",
VENDOR_ELCON, 0x0002,
247 PEGASUS_DEV("Elsa Micolink USB2Ethernet",
VENDOR_ELSA, 0x3000,
249 PEGASUS_DEV("GIGABYTE GN-BR402W Wireless Router",
VENDOR_GIGABYTE, 0x8002,
251 PEGASUS_DEV("Hawking UF100 10/100 Ethernet",
VENDOR_HAWKING, 0x400c,
253 PEGASUS_DEV("HP hn210c Ethernet USB",
VENDOR_HP, 0x811c,
257 PEGASUS_DEV("
IO DATA USB ET/TX-
S", VENDOR_IODATA, 0x0913,
259 PEGASUS_DEV("
IO DATA USB ETX-US2", VENDOR_IODATA, 0x093a,
265 PEGASUS_DEV("LANEED USB Ethernet
LD-USBL/TX", VENDOR_LANEED, 0x4005,
267 PEGASUS_DEV("LANEED USB Ethernet
LD-USB/TX", VENDOR_LANEED, 0x400b,
269 PEGASUS_DEV("LANEED USB Ethernet
LD-USB/T", VENDOR_LANEED, 0xabc1,
271 PEGASUS_DEV("LANEED USB Ethernet
LD-USB/TX", VENDOR_LANEED, 0x200c,
275 PEGASUS_DEV("Linksys USB100TX", VENDOR_LINKSYS, 0x2203,
277 PEGASUS_DEV("Linksys USB100TX", VENDOR_LINKSYS, 0x2204,
279 PEGASUS_DEV("Linksys USB10T Ethernet Adapter", VENDOR_LINKSYS, 0x2206,
283 PEGASUS_DEV("Linksys USB USB100TX", VENDOR_LINKSYS, 0x400b,
285 PEGASUS_DEV("Linksys USB10TX", VENDOR_LINKSYS, 0x200c,
287 PEGASUS_DEV("MELCO/BUFFALO LUA-TX",
VENDOR_MELCO, 0x0001,
289 PEGASUS_DEV("MELCO/BUFFALO LUA-TX", VENDOR_MELCO, 0x0005,
291 PEGASUS_DEV("MELCO/BUFFALO LUA2-TX", VENDOR_MELCO, 0x0009,
299 PEGASUS_DEV("OCT USB TO Ethernet", VENDOR_OCT, 0x0901,
305 PEGASUS_DEV("
SMC 2206 USB Ethernet", VENDOR_SMC, 0x0201,
309 PEGASUS_DEV("SOHOware NUB110 Ethernet", VENDOR_SOHOWARE, 0x9110,
311 PEGASUS_DEV("SpeedStream USB 10/100 Ethernet",
VENDOR_SIEMENS, 0x1001,