Dear Petkan,
Petko Manolov wrote:
> At first glance looks OK. I'll test it later this evening.
> You can get latest version from my web page
> http://www.spct.net/petkan/
Thank you.
I get latest version pegasus.c(pegasus03.tar.gz) and reading now.
> This one you're using now lack support for some devices.
OK. I understand.
By the way, I concerned about C-function "check_device_ids()" in
pegasus.c
----- pegasus.c -----
...
static struct usb_eth_dev usb_dev_id[] = {
{"Billionton USB-100", 0x08dd, 0x0986, NULL},
{"Corega FEter USB-TX", 0x7aa, 0x0004, NULL},
{"MELCO/BUFFALO LUA-TX", 0x0411, 0x0001, NULL},
{"D-Link DSB-650TX", 0x2001, 0x4001, NULL},
{"D-Link DSB-650TX", 0x2001, 0x4002, NULL},
{"D-Link DSB-650TX(PNA)", 0x2001, 0x4003, NULL},
{"Linksys USB100TX", 0x066b, 0x2203, NULL},
{"Linksys USB100TX", 0x066b, 0x2204, NULL},
{"SMC 202 USB Ethernet", 0x0707, 0x0200, NULL},
{"ADMtek AN986 \"Pegasus\" USB Ethernet (eval board)", 0x07a6, 0x0986, NULL},
{"Accton USB 10/100 Ethernet Adapter", 0x083a, 0x1046, NULL},
{NULL, 0, 0, NULL}
};
...
static int check_device_ids( __u16 vendor, __u16 product )
{
int i=0;
while ( usb_dev_id[i].name ) {
if ( (usb_dev_id[i].vendor == vendor) &&
(usb_dev_id[i].device == product) )
return i;
i++;
}
return 0;
}
...
----------
If using "Billionton USB-100" , C-function "check_device_ids()" is
returned 0, but return 0 is no pegasus-based devices ?.
I think if no pegasus-based devices, "check_device_ids()" is return -1.
or dummy-data in usb_dev_id[0].
Thank you.
--
Toshihisa Tanaka <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]