Dag-Erling Smørgrav
823261a3e1
While USB keyboards attach as ukbd[0-9]+, the device node created by
...
kbd_attach() is called kbd[0-9]+, with a different unit number. This
makes it impossible to write a devd rule which will automatically
switch to a USB keyboard when one is attached, because there is no way
to guess the correct device node to pass to kbdcontrol.
Therefore, change kbd_attach() to create a device node using the
keyboard device's real name (atkbd0, ukbd0...), and create the
kbd[0-9]+ node as an alias for backward compatibility.
2004-01-27 15:40:30 +00:00
Bill Paul
5d2b8edda2
This should have been checked in as part of the last update to if_ndis.c:
...
add yet another member to the ndis_softc as part of the workaround for
the net80211 dain bramage.
2004-01-27 09:08:12 +00:00
Bill Paul
215e951637
Add a kludge to avoid having ndis_init() called needlessly by dhclient
...
on an SIOCSIFADDR (by way of brain damage in net80211).
Also, avoid trying to set NDIS_80211_AUTHMODE_AUTO since the Microsoft
documentation I have recommends not using it, and the Centrino driver
seems to dislike being told to use it.
2004-01-27 07:57:42 +00:00
Nate Lawson
e0ccb58ad9
Add TUNABLE_STR to make "hw.acpi.os_name" more correct. However, the call
...
to getenv_string() still doesn't work.
2004-01-27 06:07:09 +00:00
Bill Paul
0a4ab0aeef
Use the M_BZERO flag with malloc() in a couple of places.
2004-01-27 03:14:59 +00:00
John Baldwin
bbc2815c8d
Move the code to initialize ACPI-CA into a separate acpi_Startup() function
...
that other modules can call to initialize ACPI-CA before the new-bus probe
and change acpi_identify() to call it.
Reviewed by: njl
2004-01-26 19:29:04 +00:00
Hartmut Brandt
3b3948e881
Get rid of the last two uses of NG_NODELEN + 1 in the base system by
...
replacing them with NG_NODESIZ.
2004-01-26 16:41:21 +00:00
Mathew Kanner
e7245381b9
Fix a panic in dsp_clone when trying to access a sound
...
device that doesn't exists. I'm using my discretion and
committing without mentor approval since Seigo is away.
Noticed by: Maxime Henrion <mux@freebsd.org>
2004-01-25 22:46:22 +00:00
Bill Paul
cf736ea0c7
Correct KASSERT() in ndis_destroy(): ndis_mtx is a pointer now.
...
Also add KASSERT() for ndis_intrmtx().
2004-01-25 00:13:07 +00:00
Maxim Sobolev
e13f9ac88b
Regen after rev. 1.161 of usbdevs.
2004-01-24 21:24:36 +00:00
Maxim Sobolev
0bc4abec87
Add support for Crystalfontz CFA-631 USB LCD (uftdi(4) driver).
...
For some very unclear reason this device contains a FTDI 8U232AM USB->COM
adapter, but reports different device id than original 8U232AM. At the same
time, it reports vendor id of FTDI.
Sponsored by: Porta Software Ltd
MFC after: 2 weeks
2004-01-24 21:23:12 +00:00
MIHIRA Sanpei Yoshiro
7d825ee7ff
Sync to 1.160 of usbdevs
2004-01-24 07:15:23 +00:00
MIHIRA Sanpei Yoshiro
21c5b9f9e5
Add Support
...
- 2nd type of GL641USB USB-IDE bridge [1]
- Plextor Plexwriter 40/12/40U [2]
PR: kern/61671 [1]
kern/61803 [2]
Submitted by: Ralf Wenk <RZ-FreeBSD0401@fh-karlsruhe.de> [1]
Feisal Mohammed <feisal@uwi.tt> [2]
MFC after: 1 week
2004-01-24 07:14:07 +00:00
Bill Paul
6f56639b42
Add missing newlines to some device_printf()s.
...
Don't do anything in ndis_get_assoc() if the link isn't up (avoids
spurrious "couldn't get bssid" messages on the console).
2004-01-24 02:48:22 +00:00
Matt Jacob
e23df011da
If we have ISP_ROLE_INITIATOR set, make sure that we clear ICBOPT_INI_DISABLE
...
from the fwoptions. Likewise, we *set* ICBOPT_INI_DISABLE if we don't have
initiator role.
2004-01-23 23:23:31 +00:00
Matt Jacob
520b6299ac
add MAKE_WWN_FROM_NODE_NAME macro
2004-01-23 23:22:35 +00:00
Matt Jacob
a556b68e3a
Add firmware major, minor and micro revsions to the ISP_FC_GETHINFO ioctl
...
structure.
2004-01-23 23:22:11 +00:00
Hidetoshi Shimokawa
1398a889e6
* fwohci_pci.c
...
Improve error message for attach failure.
* sbp_targ.c
- Add speed in struct sbp_targ_login.
- Remove unnecessary htonl().
2004-01-23 17:37:09 +00:00
Mathew Kanner
3c6b655dff
Sync with DFBSD v.1.16. Add new codecs IDs, fix some spelling.
...
Approved by: des (interim mentor)
2004-01-23 16:38:54 +00:00
Søren Schmidt
17cafb29a0
Fix breakage in PIO multisector support.
2004-01-23 10:38:56 +00:00
John Baldwin
acf7d97237
Fix the PCI attach routine to properly setup the IRQ and port resource
...
rid's and to deallocate resources if a failure occurs during attach. This
patch also fixes the driver to return failure if bus_alloc_resource() for
the IRQ fails rather than panic'ing on the next line by passing a NULL
resource to bus_setup_intr(). The other attachments already do all this.
Submitted by: Jun Su <csujun@263.net>
2004-01-22 16:07:03 +00:00
Hidetoshi Shimokawa
4c790222f6
Add missing free() in exception handlers.
...
Reported by: Stanford Metacompilation research group
2004-01-22 14:41:17 +00:00
Bill Paul
a6ef105236
Add suspend and resume methods. I'm not certain this work correctly
...
since I can't easily test them on my laptop right now, but they
should do the right thing.
2004-01-22 03:00:59 +00:00
Bill Paul
d74c903a6f
Add support for TCP/IP checksum offload.
...
No, really.
2004-01-22 02:36:34 +00:00
Bill Paul
94215c94fe
Fix multicast and promiscuous mode handling for Yukon devices.
...
Submitted by: Jung-uk Kim <jkim@niksun.com>
2004-01-21 22:32:15 +00:00
Hajimu UMEMOTO
7a2e32cbe3
Sync to pccarddevs 1.81.
2004-01-21 16:03:40 +00:00
Hajimu UMEMOTO
a950ec6208
There is PANASONIC KXLC005 which has another product id.
2004-01-21 16:02:20 +00:00
Olivier Houchard
cf45d5da77
Setting pccb->ccb_h.status to CAM_REQ_CMP one time is enough.
2004-01-21 10:49:42 +00:00
Peter Grehan
a2dce78a84
__powerpc__ conditional code for the syscons OpenFirmware/PPC framebuffer.
...
Took the opportunity to reduce
__i386__ || __ia64__ || __amd64__ || __sparc64__ || __powerpc__
to
!__alpha__
reviewed by: gallatin
2004-01-21 05:08:51 +00:00
John Baldwin
1aa9b61068
Use getenv_int() rather than reimplementing it.
2004-01-20 21:38:48 +00:00
Søren Schmidt
8a1bddb753
Update the support for the VIA 8237 southbridge.
2004-01-20 16:51:02 +00:00
Bill Paul
67e272e2b8
Correct instances of mtx_lock()/mtx_unlock() that should have been
...
mtx_pool_lock()/mtx_pool_unlock().
2004-01-20 08:19:42 +00:00
Mathew Kanner
222d2384ef
Reduce latency when using the SNDCTL_DSP_RESET ioctl by calling
...
chn_resetbuf().
Submited by: Pyun YongHyeon <yongari@kt-is.co.kr>
Approved by: tanimura (mentor)
2004-01-20 05:30:09 +00:00
Mathew Kanner
5ee30e277a
Fix a panic when kldloading a sound driver. Do this by replacing the
...
link-list of dev_t's with named variables. Remove used code.
Approved by: tanimura (mentor)
2004-01-20 03:58:57 +00:00
Søren Schmidt
cedc7194d5
Fix breakage on timeout/retries. The bug cause a sema to be leaked so
...
that the calling process would newer wakeup.
2004-01-19 15:20:00 +00:00
MIHIRA Sanpei Yoshiro
146dec80e1
Sync to 1.159 of usbdevs
2004-01-19 12:53:23 +00:00
MIHIRA Sanpei Yoshiro
cf73864749
Add support IO-data DVD Multi-plus unit iU-CD2
...
PR: kern/61578
Submitted by: Masaharu FUJITA <m@fjts.org>
MFC after: 1 week
2004-01-19 12:51:40 +00:00
Bill Paul
f98f50fcfd
Properly program the multicast filter in ndis_setmulti(),
...
and fix promisc mode in ndis_ioctl().
2004-01-19 07:03:46 +00:00
Bill Paul
ed880bb60f
Convert from using taskqueue_swi to using private kernel threads. The
...
problem with using taskqueue_swi is that some of the things we defer
into threads might block for up to several seconds. This is an unfriendly
thing to do to taskqueue_swi, since it is assumed the taskqueue threads
will execute fairly quickly once a task is submitted. Reorganized the
locking in if_ndis.c in the process.
Cleaned up ndis_write_cfg() and ndis_decode_parm() a little.
2004-01-18 22:57:11 +00:00
Ruslan Ermilov
7287c40c0d
Fixed a memory leak.
...
Reported by: Stanford Metacompilation research group
Reviewed by: scottl
2004-01-18 17:34:11 +00:00
Ruslan Ermilov
bbc712e6ba
Fixed a memory leak.
2004-01-18 17:21:15 +00:00
Ruslan Ermilov
4c7ca6e54c
Fixed a memory leak.
...
Reported by: Stanford Metacompilation research group
2004-01-18 16:55:01 +00:00
Søren Schmidt
61016883ad
Fix botch in last commit.
2004-01-18 15:58:30 +00:00
Ruslan Ermilov
ebbdb48fe6
Apparently there's a good reason why M_WAITOK malloc() is done before
...
xpt_create_path().
2004-01-18 13:09:38 +00:00
Ruslan Ermilov
85e17c603d
Fixed a memory leak.
...
Reported by: Stanford Metacompilation research group
2004-01-18 12:49:36 +00:00
MIHIRA Sanpei Yoshiro
edac5229ae
Empty vendor string overrides knowndevs
...
ubd_devinfo_vp() is getting an empty string from its usbd_get_string()
call on the vendor, instead of NULL. This means usb_knowndevs in not
consulted.
Add lines between grabbing those char *s and the USBVERBOSE ifdef to
set vendor to NULL if it is the empty string (similarly for product).
This causes vendor to be filled-out, although the product name read
overrules usb_knowndevs (this appears to be a conscience decision made
by the NetBSD folks):
PR: kern/56097
Submitted by: Hal Burch <hburch@lumeta.com>
MFC after: 1 week
2004-01-18 12:46:19 +00:00
Ruslan Ermilov
703981ae28
Fixed a memory leak.
...
Submitted by: Stanford Metacompilation research group
2004-01-18 12:32:06 +00:00
Ruslan Ermilov
b659f64e82
Fixed a memory leak.
...
Submitted by: Stanford Metacompilation research group
2004-01-18 12:26:33 +00:00
Søren Schmidt
7c633af872
Add missing free's.
2004-01-18 10:50:40 +00:00
Yaroslav Tykhiy
6bb87e74a6
Avoid overwriting capability bits marked earlier
...
when setting HW checksum offload bits.
Enable available capabilities properly.
Reviewed by: sam
2004-01-18 10:15:48 +00:00