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
Scott Long
75fba44b93
Revert the last commit. I don't know what I was thinking, but this change
...
definitely doesn't help any thing.
2004-02-25 05:41:44 +00:00
Johan Karlsson
129d092a20
style.Makefile(5):
...
Use WARNS?= instead of WARNS=.
While I'm here,
use INTERNALPROG, instead if overriding install
remove emty lines
2004-02-24 20:51:20 +00:00
Bruce Evans
63a97efcbb
Don't set d_flags twice. The second setting clobbered D_NOGIANT.
2004-02-24 04:35:44 +00:00
Roman Kurakin
cee1270c1a
Add support for Cronyx-Tau. For now I added only Tau-ISA files, system files
...
would be changed in next patches, after extra verifications.
Approved by: imp (mentor)
2004-02-23 20:19:00 +00:00
John Baldwin
1f220d57d6
Fix a problem with the USB keyboard driver not properly handling key
...
rollover resulting in duplicate keypress events.
PR: 57273
PR: 63171
Submitted by: plasma <plasma at freebsd.sinica.edu.tw>
Submitted by: Brian Candler <B.Candler at pobox.com>
MFC after: 1 week
2004-02-23 15:36:40 +00:00
Poul-Henning Kamp
6fe9c1609f
Fix vinums cdevsw{} to initialize d_version.
...
The nonstandard formatting made my mega-patch scripts miss it.
Retire the static major number while we're here anyway.
Reported by: Niels Chr. Bank-Pedersen <ncbp@bank-pedersen.dk>
2004-02-23 08:55:13 +00:00
Robert Watson
033d9ae179
Limit the amount of memory userspace processes can cause the kernel to
...
allocate via DRI on r128 devices.
Obtained from: Thomas Biege <thomas@suse.de>
Reviewed by: scottl
2004-02-23 03:18:18 +00:00
Maxime Henrion
e77e9e1ba8
Unbreak after the change to use vm_paddr_t. Since vm_paddr_t is
...
an integer type and the a cast to (void *) was added in the
definition of NULL for the kernel, we need to use 0 here instead.
Partly submitted by: cperciva
2004-02-22 16:27:28 +00:00
Colin Percival
9a6caa1afc
Check that amrd_sc is non-NULL before dereferencing it, not after.
...
Reported by: "Ted Unangst" <tedu@coverity.com>
Approved by: rwatson (mentor)
2004-02-22 10:00:05 +00:00
Colin Percival
cd8aaf2121
Check that twed_sc is non-NULL before dereferencing it, not after.
...
Reported by: "Ted Unangst" <tedu@coverity.com>
Approved by: rwatson (mentor)
2004-02-22 09:58:34 +00:00
Colin Percival
1f0c8eae54
Don't free k_cfg until we're finished using it -- reverse the order of
...
two free commands.
Reported by: "Ted Unangst" <tedu@coverity.com>
Approved by: rwatson (mentor), scottl
2004-02-22 09:55:48 +00:00
Colin Percival
caa32ef5c2
Don't free meo until we're finished using it.
...
Reported by: "Ted Unangst" <tedu@coverity.com>
Approved by: rwatson (mentor), scottl
2004-02-22 09:52:46 +00:00