Commit Graph

77961 Commits

Author SHA1 Message Date
tls eb5ea4a10b Add support for the hardware random number generator on the Hifn 7811
and 795x.  This was present in the driver before, but disabled due to
problems with the actual randomness of generated numbers on the
ubiquitious 7900-series parts.  The code here is far, far more
conservative than anyone else's driver for this RNG is -- but I
believe that conservatism is called for, because the 79xx RNG
design is missing a number of pieces from Hifn's "reference" 6500
RNG, and thus the numbers it generates must be treated with some
care.

Support for the 7811 RNG (which is a full-fledged 6500 type
generator) is pretty much the same here as in other variants of
this driver, except that it uses Hifn's "worst case" estimate of
actual entropy per output bit, so it will accumulate bits much
more slowly.  The 7811 support is untested.
2005-10-15 08:58:15 +00:00
tls 15cb9441e1 From OpenBSD hifn7751.c revision 1.149: enable the command-wait interrupt
even if there's only one request in the queue.  Sometimes we seem to miss
multiple interrupts, and command-wait saves us.
2005-10-15 04:31:20 +00:00
tsutsui 61d9372a28 All of FIREPOWER_ES, FIREPOWER_MX and FIREPOWER_LX require
the same platinit function, so don't check them separately.
2005-10-15 02:17:48 +00:00
xtraeme b0a4f3e4be Added support for Winbond 83627THF, from OpenBSD. 2005-10-15 00:41:48 +00:00
xtraeme 46b58a0a77 Enable atu(4). Requested by Martijn van Buul via PR pkg/30243. 2005-10-14 23:26:10 +00:00
heas bfceed8072 Add major for twe(4), so that management applications have a /dev entry to use. 2005-10-14 22:02:42 +00:00
riz 2feefaad21 Move a little more under #if NGPIO > 0 2005-10-14 19:21:07 +00:00
christos f31d6316f6 No need for __UNCONST in previous commit; factor out the function call. 2005-10-14 17:18:59 +00:00
elad 8fa0fa95d8 Copy the path to a kernel buffer before using it from ndp, as it may be a
pointer to userspace.
2005-10-14 12:47:04 +00:00
gdt d3aeb92bcb When bringing an interface up, and thus perhaps having just powered it
on (e.g. cardbus), write the wep keys to the card.  Fixes problem of
receiving gibberish if one has set wep keys before bringing the
interface up, and also after ifconfig ath0 down; ifconfig ath0 up.

(Tested with current from 20050926 with local mods, and discussed with
sam@ and dyoung@.  This is not 100% right, but significantly better
than before.  Really we should have an interator in net80211 to repush
all key state, include per-node keys.)
2005-10-14 00:26:45 +00:00
jmc a64b99061e Rename gpio to ppcgpio to resolve naming conflicts w. gpio framework 2005-10-13 21:38:11 +00:00
christos 0d55f64fcb - lock the tty when playing with the kqueue list.
- don't return 1, when we expect to return errno [EPERM is kind of stupid
  in this case :-)]
2005-10-13 16:18:43 +00:00
abs 90eafdf511 Make receiver lock-up workaround conditional on setting link1, as we have
too many false positives - should address PR/30505
2005-10-12 19:26:10 +00:00
tron b0a88753d6 Make build of ISO9660 boot loader work if no object directories are used. 2005-10-12 15:27:39 +00:00
simonb 30ab8089df Update the mod and access times directly from ptyfs_read() and
ptyfs_write() rather than setting a flag and updating these times
through ptyfs_itimes() at some indeterminate time in the future.
However, just use the "time" variable to set the times instead of
using a potentially expensive call to nanotime().  A HZ resolution
on these timestamps is more than enough.

(Possibly incomplete) fix for PR kern/31430.
OK'd be christos@.
2005-10-12 15:23:33 +00:00
elad d4a8a9ec63 Debug nits from Brett Lymn:
- The fingerprint should be printed before we increment the pointer.
  - Add missing index increment.
2005-10-12 14:26:47 +00:00
christos 9435516e6b More Dothan entries from OpenBSD. 2005-10-12 04:20:59 +00:00
elad 5068eab154 - Don't pass NULL to free().
Fixes local crash reported by Matthew Sporleder.

- %ld -> PRIu64 for inodes.
2005-10-11 23:59:40 +00:00
jdolecek 16ceb2f222 put back joystick enabling code, lost in Audigy support merge 2005-10-11 19:36:48 +00:00
drochner dbbdf74175 -kill gba_name in attach arg
-use constants from locators.h
2005-10-11 16:01:03 +00:00
drochner e8d3f46495 kill gba_name in attach arg, specify interface attribute 2005-10-11 15:59:16 +00:00
drochner 69f432c06d -put gpio stuff inside #if NGPIO > 0
-kill gba_name in attach arg, specify interface attribute
2005-10-11 15:58:37 +00:00
cube 0e6cb1fa09 Add __KERNEL_RCSID. 2005-10-11 09:56:51 +00:00
christos 22239aa432 handle MMX faults as floating exceptions. Tested by Hauke Fath; matlab
passes all its regression suite without panicking the kernel.
2005-10-10 21:08:01 +00:00
christos d2f0c36e85 Add defines for the control and status bits of the 80387. 2005-10-10 21:07:17 +00:00
christos eb3977b72c Don't get confused if T_USER is set; instead print the correct trap. 2005-10-10 18:13:39 +00:00
elad 95d7879011 Style changes, lots of input from blymn@. 2005-10-10 17:36:29 +00:00
dsl 76ed960bec Add sk ethernet as found on ASUS A8V.
Increase ramdisk to 5MB, costs virtually nothing.
2005-10-10 17:24:38 +00:00
chs 9307d68e6a stop converting async msync() to sync.
this hasn't been needed for years (if it ever was).
2005-10-10 15:53:28 +00:00
dsl 3e17d26fb5 include "INSTALL" then modify it - so we get the same device 2005-10-10 15:40:37 +00:00
pooka 6c4ca17312 foreach NOTEACHED make the comment say NOTREACHED 2005-10-10 09:58:54 +00:00
tsutsui 73d1e286b2 Define MIPS3_PG_SIZE_MASK_TO_SIZE() macro in the MI mips header. 2005-10-10 02:14:43 +00:00
hubertf 2d4a7ba907 Find second qe interface, taken from the INSTALL file.
Reported by someone on IRCnet #NetBSD.
2005-10-10 01:06:24 +00:00
sekiya 2dac3b071c Match ELECOM UC-SGT0. 2005-10-09 02:16:35 +00:00
bouyer 65679198a8 Also remove pkt_next now that packets are not recorded in a per-page list. 2005-10-08 20:23:59 +00:00
bouyer 0e12d49f1c If a domain has more than one interface, a page can hold packets for different
xennetback instances. To support this, more fields from xni_page to xni_pkt.
This would also have the effect to move more code into the
while (!SLIST_EMPTY(&pkt_page->xni_pkt_head)) loop in xennetback_tx_free().
By passing xni_pkt instead of xni_page to xennetback_tx_free we can
avoid the loop, and the xni_pkt_head list completely. There is even a sligh
performance increase if the domU deals with xni_txring->event properly.

Based on comments from YAMAMOTO Takashi.
2005-10-08 20:22:05 +00:00
yamt 2db36492c6 sa_switch: remove cpu hand-off in "Case 2".
it causes severe unfairness in some cases.
eg. when a process has many lwps doing poll.

no objections on tech-kern@.
2005-10-08 06:37:12 +00:00
yamt c610dbbdc2 sysctl_kern_proc_args: don't assume that the process is
resident while we are sleeping.
2005-10-08 06:35:56 +00:00
skrll 69c3b1813e Use the new scan command for monitor mode as well. 2005-10-08 06:19:46 +00:00
isaki a658e0cd29 regen. 2005-10-08 06:15:30 +00:00
chs 6c50e54c82 avoid the need for a bogus initializer. 2005-10-08 03:21:17 +00:00
chs 20b89dd47f default to simple_lock_debugger=1 with LOCKDEBUG. 2005-10-08 03:18:25 +00:00
uwe a8930f8104 Sync with GENERIC (1.180). 2005-10-08 01:49:40 +00:00
macallan 33f4e6b2f0 Fixes the following bug:
Framebuffer drivers use their own minor device number to find their device entry
in fbdriver methods ( like cgsix uses cgsix_cd[minor] ) but fb passed the fb
device's unit number which works only as long as all registered fb devices use
the same underlying driver. With different fb drivers, like a cgsix and an ffb, both will be (native) unit number 0 so with the old code /dev/fb1 would be
unusable.
2005-10-08 00:46:44 +00:00
macallan c2b05b7fce Check for 'i2c-bus' child and if found look for i2c devices there instead of
directly under the ki2c node.
Needed for newer ( 2005? ) OpenFirmware.
2005-10-07 23:53:11 +00:00
christos d63acabb28 vadvise was not declared anywhere. 2005-10-07 19:33:19 +00:00
elad a61a2074a3 Remove Veriexec bits from genfs, don't #if 0 them. 2005-10-07 18:19:14 +00:00
elad 2de72bfe34 Various fixes from blymn@ and myself.
Also, put genfs changes under #if 0, and don't do per-page fingerprints
until this is properly discussed, as requested by yamt@.
2005-10-07 18:07:46 +00:00
tsutsui e9882e57f5 Sync with GENERIC:
- add options P1003_1B_SEMAPHORE
- add #file-system TMPFS
- add #options UFS_DIRHASH
- add #options ALTQ*
- enable pseudo-device fss
- add #pseudo-device pf*
- options<space><tab>
2005-10-07 18:04:51 +00:00
tsutsui fcfdd9abaa options<space><tab> 2005-10-07 18:01:39 +00:00