Commit Graph

2806 Commits

Author SHA1 Message Date
tshiozak d0a32c7b25 add support for WinChipHead CH341/340 USB-Serial bridge. 2007-09-03 17:57:36 +00:00
tshiozak ad88e4382b sync with the last change of usbdevs. 2007-09-03 17:43:20 +00:00
tshiozak 64af3fdf23 add vendor WINCHIPHEAD and product CH341SER. 2007-09-03 17:41:41 +00:00
riz f6f3fbbfc3 Properly support both ports of the FTDI 2232C. This allows me to
use all 16 ports of my USB-16COM-RM adapter.  I also verified that
single-port units still work as expected.
2007-09-02 22:35:25 +00:00
dyoung dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
dyoung f59a11881a Constify: LLADDR() -> CLLADDR(). 2007-08-29 22:33:42 +00:00
xtraeme 7479c7d76e Use rw_destroy() in the detach function. Spotted by rmind@. 2007-08-27 17:49:54 +00:00
xtraeme 87186fcca6 Use rwlock(9) rather than lockmgr(9). 2007-08-27 15:57:13 +00:00
dyoung 71e77a61b4 Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).
2007-08-26 22:45:55 +00:00
sborrill d07cbdc44b Regen 2007-08-18 20:24:33 +00:00
sborrill e8925d472b Add support for SMART Technologies-badged Prolific USB-Serial converter 2007-08-18 20:23:04 +00:00
kiyohara 66161689a5 Already called *_free_[rt]x_list() in *_stop(). 2007-08-15 16:58:54 +00:00
kiyohara 2db72b9118 * splsoftusb, IPL_SOFTUSB, and IPL_HARDUSB defines in usbdi.h
-> the current names are confusing (didn't change other drivers)
* fix invalid memory access in usbd_transfer (kern/24636)
-> needed for this driver
* fix USB HC detach race condition (kern/32011)
-> main patch needed for this driver, sc_dying changes in other drivers
not necessary but seem right to me

Patch from Matthew Orgass.
  http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-15 04:00:33 +00:00
jmcneill 2a8951f91f Clear the run flag in the command register when powering down, from
FreeBSD. Makes my laptop, and hopefully others, successfully sleep. Waking
up is a different story...
2007-08-01 22:40:16 +00:00
dyoung c342db9666 Use printf("%zx", arg) instead of printf("%lx", (unsigned long)arg).
Use __arraycount().
2007-07-16 15:55:38 +00:00
nisimura 80496a1328 regen usbdevs.h and usbdevs_data.h 2007-07-16 07:08:49 +00:00
nisimura d99ce83fb8 Redo the previous change, suffered from an accidental removal of ShanTou. 2007-07-16 07:05:27 +00:00
nisimura ed16ca3c2c add PLANEX/PCI GW-US54GXS USB WLAN stick device ID. Not working well yet.
Linked with AP but no real xfer is observed so far.  Hope this helpful for
further debugging.
2007-07-16 06:56:23 +00:00
ad bba99c25aa Generic soft interrupts are mandatory. 2007-07-14 21:02:36 +00:00
xtraeme ff350d3235 regen 2007-07-12 21:24:35 +00:00
xtraeme e05b0ff702 SB-NIC Shantou ST268 for udav(4), patch from Julian Suschlik
via current-users@... thanks.
2007-07-12 21:24:02 +00:00
rmind 20bbb87e34 Implementation of per-CPU work-queues support for workqueue(9) interface.
WQ_PERCPU flag for workqueue and additional argument for workqueue_enqueue()
to assign a CPU might be used. Notes:
 - For now, the list is used for workqueue_queue, which is non-optimal,
   and will be changed with array, where index would be CPU ID.
 - The data structures should be changed to be cache-friendly.

Reviewed by: <yamt>, <tech-kern>
2007-07-12 20:39:56 +00:00
drochner e2da0057b3 Stopgap fix to avoid crash on detach if the attach failed due to eg
USB problems - just return in detach if the softc appears not to be
filled in completely.
(This is a common problem with usb and probably other drivers which
support detach; we need some API support to deal with this cleanly.)
2007-07-11 20:13:14 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
mlelstv e044ee54b9 Fix typo that prevents port reset after several retries. 2007-06-30 09:17:45 +00:00
itohy 25a6244f88 Regen from usbdevs rev 1.477. 2007-06-28 03:13:43 +00:00
itohy c52b34e473 Add vendors and products from FreeBSD/OpenBSD.
- for ubsa(4):
	Add vendor Huawei Technologies and its product Huawei Mobile
	GlobeTrotter 3G Quad Plus

 - for uipaq(4):
	ASUSTeK MyPal A730
2007-06-28 03:13:01 +00:00
itohy aa6964a386 Regen from usbdevs rev 1.476. 2007-06-24 10:56:32 +00:00
itohy ff96cdce81 Sort vendors and products by number.
Remove duplicates.
2007-06-24 10:43:23 +00:00
veego 4d897a6e25 Regen after the usbdevs updates in rev 1.474 and 1.475 2007-06-24 10:07:05 +00:00
veego 1419b5b5c5 - Add the MGE vendor and two entries.
- Change the APC entry, because it is not Back-UPS Pro 500 specific, it
  is used for more UPS's
Based on a patch from PR kern/31884
2007-06-24 10:02:45 +00:00
itohy a58d97bba2 usbdevs:
Add vendors and products from FreeBSD/OpenBSD.
 - for aue(4):
	ADMtek AN986A Ethernet
	Add vendor ELCON Systemtechnik and its product Goldpfeil P-LAN
	ELECOM LD-USB20
	Mobility EasiDock Ethernet
	SIIG2 USB TO Ethernet

 - for axe(4):
	Acer Communications & Multimedia EP-1427X-2 Ethernet
	ASIX AX88178 USB 2.0 10/100 Ethernet adapter
	ATen UC210T Ethernet
	Belkin F5D5055 Ethernet adapter
	Billionton USB2AR Ethernet
	D-Link DUB-E100 rev B1
	Good Way Technology GWUSB2E
	I-O DATA ETG-US2
	Ethernet port in the JVC MP-PRX1 port replicator.
	Add new vender ID for Linksys (LINKSYS4) and its product USB1000
	OQO model 01+ Ethernet

 - for cdce(4):
	Acer Labs M5632 USB 2.0 Data Link
	Add vendor Ambit Microsystems and its product NTL 250 cable modem
	COMPAQ iPAQ Linux
	Add vendor G.Mate Inc. and its product YP3X00 PDA
	Two Motorola devices (FreeBSD/OpenBSD don't have the details)
	NetChip Linux Ethernet/RNDIS gadgets

 - for kue(4):
	Silicom Psion Gold Port Ethernet

 - for ural(4):
	Belkin F5D7051 54g USB Network Adapter
	GIGABYTE GN-54G
	Siemens Info 54g USB Network Adapter

 - for url(4):
	AboCom RTL8151
	RealTek RTL8151 PNA
	ZyXEL Prestige

Remove duplicates.
Whitespace police.
2007-06-24 09:46:29 +00:00
itohy 7edfc5dbe5 PROLIFIC2 -> NETINDEX 2007-06-22 16:39:27 +00:00
itohy 7d053c92ba Regen from usbdevs rev 1.473. 2007-06-22 16:37:46 +00:00
itohy c343e9c214 Sort.
Remove duplicate.
2007-06-22 16:32:38 +00:00
itohy 2053de92a0 Vendor ID 0x11f6 is used by at least two products from NetIndex Inc.
("DD" (0x11f6/0x2001) and firmware loader of "nico." (0x11f6/0x3001)),
and 0x11f6 is probably the vendor ID of NetIndex.
2007-06-22 16:06:30 +00:00
kiyohara 15e10848b3 Fix rqp->len is a number of read registers. 2007-06-21 04:04:29 +00:00
dsainty ad838ebf9b Regen. 2007-06-18 12:24:48 +00:00
dsainty ac96097e58 Add AX88772 USB 2.0 10/100 Ethernet adapter 2007-06-18 12:24:04 +00:00
kiyohara 62ad7214e7 Change transfer size to 64byte. When the transfer size is 4096 bytes, it
is not likely to be able to transfer it.
2007-06-16 11:27:40 +00:00
kiyohara c3234fb8d7 We occasionally access the register from two or more processes. Please
use the simple-queue.
2007-06-16 11:18:45 +00:00
kiyohara cc7db3d88b splnet() is called earlier than bpf_mtap2(). 2007-06-16 11:09:31 +00:00
kiyohara b89e8f1348 Remove multiple bpfdetach(). 2007-06-16 11:02:19 +00:00
dsainty dc8d3a6ad6 Regen. 2007-06-16 09:43:35 +00:00
dsainty 68141d1a5e Add Silicon Integrated Systems 163U 802.11g Wireless LAN Adapter 2007-06-16 09:42:17 +00:00
dyoung 119721c126 Use %zu format for size_t. 2007-06-15 19:06:09 +00:00
uebayasi 81e54d23b2 I-O DATA USB-RSAQ5 needs UPLCOM_TYPE_HX hack. Pointed out by Kouichirou
Hiratsuka.
2007-06-14 01:22:52 +00:00
nathanw 2b39a52d95 Set portno in ucom_attach_args, to UCOM_UNK_PORTNO. The port number is
unused in this driver's callbacks, so this is an aesthetic rather than
functional change ("ucom0 at uslsa0" rather than "ucom0 at uslsa0
portno -848524548").
2007-06-13 17:14:25 +00:00
uebayasi 7ae95bbb8f Teach I-O DATA USB-RSAQ5. 2007-06-13 00:31:21 +00:00
uebayasi d140af6f40 Regen. 2007-06-13 00:30:54 +00:00