Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a4d235aa
Commit
a4d235aa
authored
Mar 12, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB pegasus driver
Elcon vendor/device support added.
parent
da9f7961
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
drivers/usb/Config.in
drivers/usb/Config.in
+1
-1
drivers/usb/pegasus.c
drivers/usb/pegasus.c
+9
-5
drivers/usb/pegasus.h
drivers/usb/pegasus.h
+6
-4
No files found.
drivers/usb/Config.in
View file @
a4d235aa
...
...
@@ -86,7 +86,7 @@ if [ "$CONFIG_USB" = "y" -o "$CONFIG_USB" = "m" ]; then
if [ "$CONFIG_NET" = "n" ]; then
comment ' Networking support is needed for USB Networking device support'
else
dep_tristate ' USB
ADMtek Pegasus-
based ethernet device support (EXPERIMENTAL)' CONFIG_USB_PEGASUS $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL
dep_tristate ' USB
Pegasus/Pegasus-II
based ethernet device support (EXPERIMENTAL)' CONFIG_USB_PEGASUS $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL
dep_tristate ' USB KLSI KL5USB101-based ethernet device support (EXPERIMENTAL)' CONFIG_USB_KAWETH $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL
dep_tristate ' USB CATC NetMate-based Ethernet device support (EXPERIMENTAL)' CONFIG_USB_CATC $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL
dep_tristate ' USB Communication Class Ethernet device support (EXPERIMENTAL)' CONFIG_USB_CDCETHER $CONFIG_USB $CONFIG_NET $CONFIG_EXPERIMENTAL
...
...
drivers/usb/pegasus.c
View file @
a4d235aa
...
...
@@ -464,12 +464,16 @@ static inline int reset_mac( pegasus_t *pegasus )
if
(
i
==
REG_TIMEOUT
)
return
1
;
if
(
usb_dev_id
[
pegasus
->
dev_index
].
vendor
==
VENDOR_LINKSYS
||
usb_dev_id
[
pegasus
->
dev_index
].
vendor
==
VENDOR_DLINK
)
{
if
(
usb_dev_id
[
pegasus
->
dev_index
].
vendor
==
VENDOR_LINKSYS
||
usb_dev_id
[
pegasus
->
dev_index
].
vendor
==
VENDOR_DLINK
)
{
__u16
auxmode
;
read_mii_word
(
pegasus
,
0
,
MII_TPISTATUS
,
&
auxmode
);
write_mii_word
(
pegasus
,
0
,
MII_TPISTATUS
,
auxmode
|
4
);
read_mii_word
(
pegasus
,
1
,
MII_TPISTATUS
,
&
auxmode
);
write_mii_word
(
pegasus
,
1
,
MII_TPISTATUS
,
auxmode
|
4
);
}
if
(
usb_dev_id
[
pegasus
->
dev_index
].
vendor
==
VENDOR_ELCON
)
{
__u16
auxmode
;
read_mii_word
(
pegasus
,
3
,
0x1b
,
&
auxmode
);
write_mii_word
(
pegasus
,
3
,
0x1b
,
auxmode
|
4
);
}
return
0
;
...
...
drivers/usb/pegasus.h
View file @
a4d235aa
...
...
@@ -66,7 +66,6 @@
#define PEGASUS_REQ_GET_REGS 0xf0
#define PEGASUS_REQ_SET_REGS 0xf1
#define PEGASUS_REQ_SET_REG PEGASUS_REQ_SET_REGS
#define ALIGN(x) x __attribute__((aligned(L1_CACHE_BYTES)))
enum
pegasus_registers
{
EthCtrl0
=
0
,
...
...
@@ -103,9 +102,9 @@ typedef struct pegasus {
struct
usb_ctrlrequest
dr
;
wait_queue_head_t
ctrl_wait
;
struct
semaphore
ctrl_sem
;
unsigned
char
ALIGN
(
rx_buff
[
PEGASUS_MAX_MTU
])
;
unsigned
char
ALIGN
(
tx_buff
[
PEGASUS_MAX_MTU
])
;
unsigned
char
ALIGN
(
intr_buff
[
8
])
;
unsigned
char
rx_buff
[
PEGASUS_MAX_MTU
]
;
unsigned
char
tx_buff
[
PEGASUS_MAX_MTU
]
;
unsigned
char
intr_buff
[
8
]
;
__u8
eth_regs
[
4
];
__u8
phy
;
__u8
gpio_res
;
...
...
@@ -129,6 +128,7 @@ struct usb_eth_dev {
#define VENDOR_COMPAQ 0x049f
#define VENDOR_COREGA 0x07aa
#define VENDOR_DLINK 0x2001
#define VENDOR_ELCON 0x0db7
#define VENDOR_ELSA 0x05cc
#define VENDOR_HAWKING 0x0e66
#define VENDOR_IODATA 0x04bb
...
...
@@ -208,6 +208,8 @@ PEGASUS_DEV( "D-Link DSB-650TX(PNA)", VENDOR_DLINK, 0x4003,
DEFAULT_GPIO_RESET
|
HAS_HOME_PNA
)
PEGASUS_DEV
(
"D-Link DSB-650"
,
VENDOR_DLINK
,
0xabc1
,
DEFAULT_GPIO_RESET
)
PEGASUS_DEV
(
"ELCON EPLC10Mi USB to Powerline Adapter"
,
VENDOR_ELCON
,
0x0002
,
DEFAULT_GPIO_RESET
|
PEGASUS_II
|
HAS_HOME_PNA
)
PEGASUS_DEV
(
"Elsa Micolink USB2Ethernet"
,
VENDOR_ELSA
,
0x3000
,
DEFAULT_GPIO_RESET
)
PEGASUS_DEV
(
"Hawking UF100 10/100 Ethernet"
,
VENDOR_HAWKING
,
0x400c
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment