Poul-Henning Kamp
7896170112
Implement a crude but functional usbd_ratecheck() to limit the number
...
of "usb0: %d scheduling overruns" messages I have to contend with.
2004-03-04 20:49:03 +00:00
Søren Schmidt
c5df0d743e
Only setup sii_reset on sii311[24].
2004-03-04 16:39:59 +00:00
Thomas Quinot
71fe368a83
Use auto-sense data provided by the lowlevel ATA code.
2004-03-04 15:37:39 +00:00
Bruce M Simpson
5f5a4d72d6
Nursemaid: Fix tinderbox builds by removing the shadowing of the global
...
preprocessor macro DEBUG. DEBUG() -> CTAU_DEBUG().
2004-03-04 14:16:12 +00:00
MIHIRA Sanpei Yoshiro
d7bd2883ec
Sync to 1.165 of usbdevs
2004-03-04 07:22:30 +00:00
MIHIRA Sanpei Yoshiro
a439ea6c55
Add support SimpleTech UCF-100 USB CompactFlash reader(OnSpec Electronic, Inc.)
...
PR: kern/63619
Submitted by: Greg Rivers <gcr@sa.fedex.com>
MFC after: 1 week
2004-03-04 07:20:48 +00:00
Nate Lawson
4ed391b8d7
Fix an off-by-one error and rework our EC space handler. Writing to address
...
0xFF would fail previously as AE_BAD_PARAMETER. It's unknown if this caused
any actual problems.
2004-03-04 05:58:50 +00:00
Nate Lawson
c181b89bc1
Don't disable Cx support and throttling on machines with a P_BLK_LEN != 6
...
even though the spec mandates this. Some have a value of 5 to indicate
throttling + C2 and some have 7 to indicate an extra C3 state. Support
throttling if the value is >= 4, C2 for >= 5, and C3 for >= 6.
2004-03-04 05:17:52 +00:00
Nate Lawson
4e376d58dc
Add a "quirks" value to disable quirks handling for a given boot.
...
Also, disable quirks if booting with a custom DSDT. Add a quirk
to disable loading ACPI so known bad systems can be completely
blacklisted.
2004-03-04 04:42:59 +00:00
Nate Lawson
c310653ea1
Change to acpi_{Get,Set}Integer to provide both methods. Convert all
...
callers to the new API.
Submitted by: Mark Santcroos <marks@ripe.net>
2004-03-03 18:34:42 +00:00
David E. O'Brien
3dae0ce68f
Peter prefers it this way, bde might also[*]. I just want to have a chance
...
of working on amd64 for vmware use.
[*] bde will probably not like either version...
2004-03-03 08:33:34 +00:00
David E. O'Brien
d92dc3946d
Prefer uintptr_t to intptr_t.
2004-03-03 08:27:33 +00:00
David E. O'Brien
dd921920ee
Use a long as the opaque type so that it matches the size of a pointer
...
on both 32-bit and 64-bit platforms.
2004-03-03 08:24:31 +00:00
David E. O'Brien
13545b10a4
Adjust lnc(4) for 64-bit platforms should it get newbus'ified.
2004-03-03 06:54:26 +00:00
David E. O'Brien
a9653b1cc3
Adjust ed(4) for 64-bit platforms should it get newbus'ified.
2004-03-03 06:48:42 +00:00
David E. O'Brien
77b72a2216
Use a long as the opaque type so that it matches the size of a pointer
...
on both 32-bit and 64-bit platforms.
2004-03-03 06:20:36 +00:00
David E. O'Brien
37580b343a
Add memory barrier routines for AMD64.
2004-03-03 06:19:03 +00:00
David E. O'Brien
5ec0232d34
Cast thru intptr_t on the way to void* for success on 64-bit platforms.
2004-03-03 06:18:29 +00:00
Nate Lawson
3184cf5a6b
Add support for quirks for acpi tables. Key off OEM vendor and revision.
...
Sort acpi debug values. Change "disable" to "disabled" to match rest of
the kernel. Remove debugging from acpi_toshiba since it was only used for
probe/attach.
2004-03-03 03:02:17 +00:00
Poul-Henning Kamp
9ed40643ea
Make swapbacked md(4) devices respect the -x and -y emulation arguments.
2004-03-02 20:13:23 +00:00
Peter Wemm
ed1b77af8c
Add new Matrix Orbital LCD panel id's so that they are recognized and
...
attached via uftdi->ucom.
2004-03-02 19:03:26 +00:00
Peter Wemm
ec88698685
Regen
2004-03-02 19:01:56 +00:00
Peter Wemm
2c711f0694
Add some device id's for Matrix Orbital's newer LCD panels. These use
...
another ftdi usb->serial bridge with different ID's.
2004-03-02 19:01:30 +00:00
Roman Kurakin
232c8325ba
1. Fix compilation and panic while system boot problem after makedev was
...
changed to unde2dev.
Approved by: imp (mentor)
2004-03-02 16:44:07 +00:00
Roman Kurakin
752aeaf074
1. Renames NCT constant to NCTAU. This will help while MFC to 4 branch.
...
2. Fix compilation and panic while system boot problem after makedev
was changed to unde2dev.
Approved by: imp (mentor)
2004-03-02 16:39:40 +00:00
Søren Schmidt
f0aafe7d84
If being verbose in the autosense code, print the original error.
2004-03-02 16:16:54 +00:00
Søren Schmidt
37baea5bd5
Report the original command on failures that causes auto sense.
...
Keep the ATA_R_QUIET flag if set during autosense.
2004-03-02 14:05:12 +00:00
Søren Schmidt
c4c0e4fc3b
Fix getting progress data for some device in yet another way.
...
Take advantage of the new autosense logic.
2004-03-02 14:03:43 +00:00
Julian Elischer
8fc8ef2efe
When we get a packet error, move on, don't go into an infinite loop
...
looking at it.
fixes at least one cause of "hanging" due to this driver.
2004-03-02 05:43:42 +00:00
Julian Elischer
f2b1c1580a
Whitespace changes to match rest of file..
2004-03-02 01:46:34 +00:00
Scott Long
a770030306
Change another pointer name that was missed in the previous commit.
...
Spotted by: njl
2004-03-01 21:45:49 +00:00
Scott Long
d488190531
Check and free the actual pointer the was used in a malloc instead of
...
checking and freeing a different pointer that may or may not have been
assigned the same value. This should fix panics under load that were
recently reported.
2004-03-01 21:27:14 +00:00
Søren Schmidt
e7c9858a8f
Remember to mtx_destroy mutexes.
2004-03-01 13:17:07 +00:00
Nate Lawson
c58375c3a5
Add the ACPI standard video extensions driver. I've done some style cleanup
...
but a bit more reamins to be done. For now, it is usable.
Submitted by: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
2004-03-01 08:12:56 +00:00
Bernd Walter
7de8778318
add driver for BWCT console management serials
2004-03-01 02:34:49 +00:00
Colin Percival
e07113d65c
Use DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors for
...
swap-backed memory disks. This reduces filesystem allocation overhead
and makes swap-backed memory disks compatible with broken code (dd,
for example) which expects to see 512 byte sectors. The size of a
swap-backed memory disk must still be a multiple of the page size.
When performing page-aligned operations, this change has zero
performance impact.
Reviewed by: phk
Approved by: rwatson (mentor)
2004-02-29 15:58:54 +00:00
Poul-Henning Kamp
db42ff97da
Remove unused FDNUMTOUNIT() macro
2004-02-29 10:21:40 +00:00
Søren Schmidt
9a19089d86
Rearrange sense_key and sense_data to get alignment right.
...
Submitted by: Marcel
2004-02-29 09:35:29 +00:00
Scott Long
474e30f0b1
All three of these drivers abused cv_waitq_empty in the same way by spinning
...
on it in hopes of making sure that the waitq was empty before going on.
This wasn't needed and probably never would have worked as intended. Now
that cv_waitq_empty() and friends are gone, the code in these drivers that
spins on it can go away too. This should unbreak LINT.
Discussed with: kan
2004-02-29 09:26:01 +00:00
Nate Lawson
2881b39793
Call _INI on Thermal Zones as well as devices.
2004-02-28 22:43:18 +00:00
Poul-Henning Kamp
3e2c971172
Add a generic watchdog facility which through a single device entry
...
in /dev controls all available watchdog implementations.
2004-02-28 20:06:59 +00:00
Don Lewis
a3193a9ca3
Create a new mutex type for virtual channels. This allows us to get
...
rid of the MTX_DUPOK flag on channel mutexes, which allows witness to
do a better job of lock order checking. Nuke snd_chnmtxcreate() since
it is no longer needed.
Tested by: matk
2004-02-28 19:47:02 +00:00
Don Lewis
466f31e55b
Lock channels only as necessary in dsp_ioctl(), and only lock one
...
channel at a time unless it is actually necessary to lock both.
This avoids problems with lock order reversal and malloc() calls
with a mutex held when lower level code unlocks a channel, calls malloc(),
and relocks the channel. This also avoids the cost of some unnecessary
locking and unlocking.
Tested by: matk
2004-02-28 19:42:48 +00:00
Scott Long
b234a120c8
Switch from using mutexes to using semaphores to protect against early
...
completion of synchronous commands. Also switch to a per-array bioq as it
appears to improve performance.
Submitted by: mbr, imp.ch (bioq change)
2004-02-28 19:14:41 +00:00
Søren Schmidt
dc7485d940
Issue a request sense command automagically when ATAPI commands fail
...
with a valid sense key.
2004-02-28 17:47:27 +00:00
MIHIRA Sanpei Yoshiro
7f869e12d8
Sync to 1.163 of usbdevs
2004-02-28 00:15:08 +00:00
MIHIRA Sanpei Yoshiro
cdd40f3bd6
add support DM9601(DAVICOM USB to Ethernet MAC Controller with Integrated 10/100 PHY)
...
- Corega FEther USB-TXC
PR: kern/62932
Submitted by: HASHI Hiroaki <hashiz@tomba.cskk-sv.co.jp>
Obtained from: NetBSD
2004-02-28 00:12:47 +00:00
Poul-Henning Kamp
503799ea5c
Make mode setting with fdcontrol(8) stick.
...
Recognize when configured for "auto".
2004-02-25 13:44:58 +00:00
Johan Karlsson
ca9c567178
Fix style bug in last commit,
...
add a tab after WARNS?=.
While I'm here fix other style bugs.
Submitted by: bde (libbdf/Makefile)
2004-02-25 13:12:51 +00:00
Søren Schmidt
1c342d89ce
Add support for the sii3512 SATA chip.
2004-02-25 09:55:49 +00:00