Commit Graph

96558 Commits

Author SHA1 Message Date
pgoyette
ab6abfafd3 Add verification of proper chip before blindly matching for consistency
with other drivers (notably adt7463).

NOTE: The verify routine in _both_ drivers might better be placed in-line
in the _match() routine.  But these drivers will soon be superseded by the
dbcool driver any way.

OK gmcgarry@
2008-09-17 15:39:05 +00:00
hannken
8de1a273e1 Replace the fss unmount hook with a vfs_hook.
fssvar.h:       struct device * -> device_t.
fss.c:          establish unmount hook on first attach, remove on last detach.
vfs_syscalls.c: remove the call of fss_umount_hook().
vfs_trans.c:    destroy cow handlers on unmount as fstrans_unmount() will be
                called before vfs_hooks.
2008-09-17 14:49:25 +00:00
pooka
66523e99f5 remove M_PIPE (hi rmind!) 2008-09-17 14:00:41 +00:00
cegger
8ca0c5aa89 Add amdtemp(4) to Xen Dom0 kernels. 2008-09-17 12:39:50 +00:00
christos
e361ed1721 Include PSL_D in the flags to be able to be set by the user. Since setmcontext
is used to restore context from a signal handler, this will allow restoring
PSL_D to what it was before the user code entered the signal handler allowing
programs to work.
2008-09-17 12:28:52 +00:00
jmcneill
548abe3d13 Note where the magic register information came from in this driver. No
functional change.
2008-09-17 03:57:19 +00:00
martin
6b8ff81d70 Remove hardcoded vendor/product ID based lookup for HX type chips and
decide based on the device descriptor instead. Simplifies things a
lot and fixes PR 39457.
2008-09-16 20:00:17 +00:00
bouyer
6004aef42d Implement the arch-dependent p2m frame lists list. This adds support for
'xm dump-core' for NetBSD domUs.
From Jean-Yves Migeon (jean-yves dot migeon at espci dot fr)
2008-09-16 19:55:31 +00:00
bouyer
dca35a7e77 Fix typos and pasto, from Jean-Yves Migeon (jean-yves dot migeon at espci
dot fr). Luckily this pasto is fatal only in case of a 64bit domU on a
32bit dom0, which we don't support yet as dom0.
2008-09-16 19:53:05 +00:00
tron
6264f47cc6 Support multiple volumes connected to Intel MatrixRAID controllers.
Code contributed by Juan RP in PR kern/39552.
2008-09-16 11:45:30 +00:00
pgoyette
d17c220979 Add another touchpad device - this one found in my Acer2413WLCi laptop.
Tested by me.
OK garbled@
2008-09-16 11:24:55 +00:00
jdc
102e2c2e6b Read the correct error status register on SBus cards.
Don't set infinite burst on SBus cards.
Changes based on information in the `Sbus GEM Specification':
  http://mediacast.sun.com/users/Barton808/media/gem_sbus-1.pdf

SBus-based GEM cards (i.e. Sun X1140A) now work!
Tested with a X1140A card in a U1 and in a U2.
Thanks for martin@ for testing.
2008-09-15 19:50:28 +00:00
jdc
4bd69c5b5b Minor corrections to the SBus definitions, from the `Sbus GEM Specification':
http://mediacast.sun.com/users/Barton808/media/gem_sbus-1.pdf
2008-09-15 19:43:24 +00:00
rmind
ffb8ec88e1 Replace intptr_t with uintptr_t in few more places.
OK by <matt>.
2008-09-15 18:12:56 +00:00
tron
75ba997609 Only report volume names if they are non empty.
Patch provided by Juan RP in PR kern/39514.
2008-09-15 11:53:52 +00:00
tron
25f901a460 Add support for status reports via bio(4) to ataraid(4).
The code was contributed by Juan RP in PR kern/39514.
2008-09-15 11:44:50 +00:00
rmind
38d7b7ba2e Replace intptr_t in few places to uintptr_t. 2008-09-15 10:43:29 +00:00
tsutsui
e534d5e65b Enable more PCI devices. 2008-09-15 04:42:58 +00:00
tsutsui
837dff7f8c Enable options TMPFS. 2008-09-15 04:08:55 +00:00
jakllsch
1630e9c193 A few cleanups for siisata(4)
No functional changes intended (except maybe un-reseting the chip a bit later
in attach).

 - pass fewer arguments to local functions where arguments can be derived from
   an existing argument
 - some coding style fixes
 - more abstraction for PRB activation and deactivation
 - bus_dma(9) properification in error cases
 - undefine SIISATA_DEBUG, and cleanup variables used only for DEBUG_PRINT()s
2008-09-14 21:53:49 +00:00
mhitch
f60765db47 Use the physical address from the bus_dmamap_load() map, not the one from
the bus_dmamem_alloc().  Fixes iop(4) on alpha, and possibly sparc64 as
described in the thread
http://mail-index.netbsd.org/port-sparc64/2008/06/04/msg000413.html.
2008-09-14 18:12:16 +00:00
hannken
fce2c1d412 Create fss(4) devices on first open and destroy on last close of an
unconfigured device.  That removes the compile-time constant number
of useable devices.
While here, add disk_busy()/disk_unbusy() instrumentation.

Reviewed by: Quentin Garnier <cube@netbsd.org>
2008-09-14 16:10:19 +00:00
jmcneill
ef1dc4a8df Add VIDEO_FORMAT_YUV420 support 2008-09-14 16:03:27 +00:00
tsutsui
9636fc5edc Remove ancient workaround hacks for gcc 2.7.2. 2008-09-14 15:03:17 +00:00
jmcneill
e3661f12b1 Allow VIDIOC_ENUM_FORMAT to return more than one result. 2008-09-14 14:31:33 +00:00
hannken
d5a365311b Remove FSS_STATISTICS. It was never documented and has no real value.
While here, modify fss_error() to no longer use variable arguments.

No functional changes.
2008-09-14 10:12:14 +00:00
freza
f4fa233a79 * iwn_rx_intr(): free rbuf is available if 'nb_free_entries > 0'.
This used to have '>=' resulting in kernel crash accessing NULL
    rbuf under non-trivial Rx load.
2008-09-14 10:09:39 +00:00
jmcneill
e1dadf87f1 Revert previous double-free hack, needs revisiting. 2008-09-14 03:33:44 +00:00
jmcneill
73f0afe78c Add RGB24 2008-09-14 00:26:35 +00:00
jmcneill
5f7d249f98 Add RGB24 support, and prevent a double-free on videoclose 2008-09-13 23:50:54 +00:00
mjf
0074b883b4 Fix pseye_start_transfer() to return the return value of kthread_create()
instead of always returning 0.
2008-09-13 18:51:10 +00:00
tsutsui
e928195279 - use memmove(9) for possible overlapped screen copies, per PR port-arc/36703
- replace bcopy(9) with memcpy(9) where no overlap
- fix a typo in comment
Tested by using sysinst with pccons(4) on gxemul.
2008-09-13 17:13:57 +00:00
tsutsui
abe73f3a6c Fix more botches on device_t/softc split,
which didn't cause errors on compile.
Tested on gxemul.
2008-09-13 16:15:38 +00:00
tsutsui
b93d54e06c Make this compile (restore some lines removed in rev 1.53). 2008-09-13 16:08:02 +00:00
tsutsui
7b16185486 Fix botches on device_t/softc split. 2008-09-13 16:02:17 +00:00
tsutsui
bba8dbb065 Put a missing newline. 2008-09-13 15:58:01 +00:00
njoly
555283069e Regen for Nvidia GeForce 6150 devices addition. 2008-09-13 15:40:51 +00:00
njoly
ae35124d9b Add Nvidia GeForce 6150 devices. 2008-09-13 15:39:01 +00:00
tsutsui
28c30d59ac - enable dhclient(8) in RAMDISK kernel
- bump mdroot size
2008-09-13 07:36:30 +00:00
skrll
0a3b051fc6 Fix (U)LLONG_(MAX|MIN) defines.
From Jonathan Kollasch. Thanks.
2008-09-13 07:33:26 +00:00
skrll
1a95ecfedf Swap max/min in comments to match symbols. 2008-09-13 07:30:59 +00:00
skrll
632763e1fc Multiple inclusion protection. 2008-09-13 07:30:22 +00:00
christos
0ff103ebea - remove dup code
- make sure that sigput always initializes ksi
- initialize si_code with SI_NOINFO instead of lying (SI_USER)
- if a process is being ktraced, make siginfo available
- always pass the available siginfo to ktrace, even if it has SI_NOINFO
2008-09-12 21:33:39 +00:00
christos
9fd9aaab22 PR/39525: Joachim Schueth, Frederik Sausmikat:
cgd inadvertently encrypts blkno eight times to generate IV
2008-09-12 16:51:55 +00:00
christos
66f8c2438f PR/39525: Joachim Schueth, Frederik Sausmikat:
cgd inadvertently encrypts blkno eight times to generate IV
Add "encblkno1" IV type to encrypt only once, rename old "encblkno" to
"encblkno8" for clarity, and make "encblkno" an alias for "encblkno8"
for backward compatibility.
2008-09-12 16:51:54 +00:00
hannken
dee5129905 - Replace simple_lock/ltsleep/wakeup with mutex/cv.
- Replace malloc/free with kmem_alloc/kmem_free.
- Use bdev_ioctl() instead of bdevsw_lookup()/(*d_ioctl)().
- Be more fair to readers by cleaning the cache one slot at a time.
2008-09-12 10:56:14 +00:00
pgoyette
08e5be9d34 Include new I2C_SCAN option in ALL. 2008-09-11 20:50:04 +00:00
pgoyette
6d5a4d28bb Provide an option I2C_SCAN to enable sanning i2c bus for responses. This
is disabled by default, preserving current behavior.

OK garbled@
2008-09-11 20:48:50 +00:00
joerg
cba79e0ec4 Add support for source address hashhing in ALTQs WFQ. This allows to
easily distribute bandwidth for huge number of clients for incoming
traffic.
2008-09-11 17:58:59 +00:00
pooka
e90eb67076 * fsync after !B_ASYNC write
* replace some b_flags magic with BUF_ISREAD/WRITE()
2008-09-11 13:42:35 +00:00