Commit Graph

74807 Commits

Author SHA1 Message Date
briggs
a3b97e0765 twe doesn't get a block device. 2005-02-14 18:17:41 +00:00
chs
9cc4bd69b2 fix typoe in previous. 2005-02-14 02:22:48 +00:00
chs
589a29e548 fix an off-by-on in pmap_check_wiring(): we increment the PTP refcount
before calling this, so it's ok to see the max value here.
2005-02-14 02:15:43 +00:00
fredb
e4ad980fcd "output.source" on the Ensoniq 1371 really should be "input.source". Making
it so lets the audio(4) interface -- play.port and play.gain -- attach
properly.  Analysis and patch provided by Joachim Kuebart in PR kern/29178.
2005-02-13 23:58:38 +00:00
fredb
380c7a5d1e For the "record.port", choose "record.source" over "inputs.source" if the
former exists.  Partial fix for PR kern/29178.
2005-02-13 23:53:20 +00:00
fredb
fec463c4fe Comment as to why we run through the devinfo list twice, in audioattach(). 2005-02-13 23:50:22 +00:00
oster
e800226bf6 Convert a few "void *"'s to "struct buf *"'s. No functional changes. 2005-02-13 20:27:48 +00:00
heas
aa8184693f Add register definitions for hardware checksums, comments, and formats for
various register bitmask_snprintfs.
2005-02-13 19:12:06 +00:00
kent
68559dd1d9 fix a typo in audiogetinfo().
No behaviour changes though the code was wrong.
2005-02-13 17:05:15 +00:00
jdolecek
4737695e07 don't call re_rxeof a second time when we've already done the work
pull common code out from if and else clauses

from FreeBSD if_re.c rev. 1.33
2005-02-13 16:04:18 +00:00
jdolecek
ac81d6249a g/c debug printf 2005-02-13 15:43:33 +00:00
jdolecek
daadf23af5 KNF 2005-02-13 15:33:20 +00:00
soren
f4fa62bcd9 SG_GET_VERSION_NUM returns an int. Also make the version number patchable. 2005-02-13 12:53:54 +00:00
jdolecek
28302c221e use MIN()/MAX() rather than min()/max(), to avoid possible truncation
of 64bit values to 'int'
2005-02-13 11:57:47 +00:00
jdolecek
877dee10ba read always single cluster of data, to avoid confusing the buffer
cache; this appears to fix the random file content corruption which
happens when more than one cluster is read at the same time, i.e. for
files > 3*cluster_size

Fixes PR kern/23835

change obtained from FreeBSD ntfs_subr.c rev. 1.31
2005-02-13 11:55:40 +00:00
christos
16b557a02b Simplify the awk to print the copyright, by using printf instead of print. 2005-02-13 09:13:04 +00:00
jdolecek
739cd954dd constify 2005-02-13 09:10:54 +00:00
christos
d59582c127 Don't zero out the linux request; we still need values from it.
Limit the sense len to the linux input buffer.
2005-02-13 09:05:31 +00:00
christos
47be3434ec We were zeroing out the wrong struct. 2005-02-13 09:01:25 +00:00
dyoung
6e9d895c23 Bug fix: use the MAC that the firmware tells us, resorting to the
CIS MAC only on error.

(NetBSD these days tries to read the MAC address from the PCMCIA
CIS.  Prism cards made by Senao set the MAC in every PCMCIA CIS to
00:02:6f:00:02:15.  In a network of Senao cards, this causes MAC
duplication.)
2005-02-13 07:33:06 +00:00
chs
4d33e8a954 move recursion-detection code inside interrupt-protected region. PR 24254. 2005-02-13 02:03:54 +00:00
heas
2d4ced7c82 For controllers (eg: hme & gem) that can only perform linear hardware checksums
(from an offset to the end of the packet), the pseudo-header checksum must be
calculated by software.  So, provide it in the TCP/UDP header when
M_CSUM_NO_PSEUDOHDR is set in the interface's if_csum_flags_tx.

The start offset, the end of the IP header, is also provided in the high 16
bits of pkthdr.csum_data.  Such that the driver need not examine the packet
at all.

XXX At the request of Jonathan Stone, note that sharing of if_csum_flags_tx &
    pkthdr.csum_flags for checksum quirks should be re-evaluated.
2005-02-12 23:25:29 +00:00
christos
be3704c73f pass the flag to fdclone. 2005-02-12 23:14:03 +00:00
fvdl
7b10f1cabc Don't panic when lwp_suspend finds an LWP on another CPU, just return
EINVAL for now.
2005-02-12 21:39:00 +00:00
chs
365df27e4b in sparc_interrupt(), wait to enable interrupts until just before calling
the handler and disable them again right after the handler returns.
we don't want another hardware interrupt coming in while we're mucking
with the list pointers.  also, clear the intrhand's ih_pending pointer
before calling the handler rather than after, so that if another interrupt
comes in while the handler is running, we can put the intrhand back on
the list so it will be called again.

in send_softint(), disable interrupts via %pstate instead of %pil, so that
hardware interrupts at higher levels are blocked while we manipulate the
intrpending list.  also, if the intrhand already has ih_pending set,
don't bother poking the SET_SOFTINT register again, since being on the list
implies that there is already a softint pending in the hardware.

these appear to fix PR 21750 (the "sleep forever" problem).

while I'm here, remove more vestiges of the !INTRLIST softint stuff
(code and comments).  and in sparc64_ipi_flush_all(), interrupts are
already disabled so we don't need to fiddle with %pstate.
2005-02-12 21:32:56 +00:00
jdolecek
f40d6d8ba8 add npx* at pnpbios? (commented out) 2005-02-12 13:07:27 +00:00
manu
5c217c1a67 Add support for IPsec Network Address Translator traversal (NAT-T), as
described by RFC 3947 and 3948.
2005-02-12 12:31:07 +00:00
rearnsha
ef3f4c0f7e DMA on the i31244 is now enabled by default. 2005-02-12 10:23:21 +00:00
rearnsha
d0a75ee514 Change PCIIDE_I31244_ENABLEDMA to PCIIDE_I31244_DISABLEDMA as
suggested by briggs.  Put the flag in opt_pciide.h.
2005-02-12 10:20:50 +00:00
rearnsha
16574672f1 Document the types and addresses of the IIC devices
(Disabled, beacuse they seem to be non-functional at present).
2005-02-12 09:59:29 +00:00
rearnsha
fdac3760e5 ... but make it's filesystem type FFS (not NFS :-). 2005-02-12 09:54:36 +00:00
rearnsha
3633c570d2 Build a kernel variant with root on wd0. 2005-02-12 09:53:27 +00:00
rearnsha
d8a87d92cb Bump the symtab space 2005-02-12 09:51:05 +00:00
rearnsha
6085be19d6 Redboot defaults to a console speed of 115200 baud on this board. 2005-02-12 09:49:40 +00:00
rearnsha
699b0c2c38 This board has a 33.0 crystal, so the counter speed comes out at 198MHz 2005-02-12 09:45:49 +00:00
rearnsha
31711b756b Permit the counter frequency to be overridden by a board configuration 2005-02-12 09:44:15 +00:00
nakayama
2d2c3aa5fa Make 32-bit kernels with DIAGNOSTIC compile again. 2005-02-12 09:38:28 +00:00
jmc
02a4880993 vm_map_max needs a struct pointer, so add a missing deref here 2005-02-12 09:38:25 +00:00
yamt
05617b0ee7 hp300 part of the following change,
which was missed due to a sticky tag in my local tree.
pointed by Izumi Tsutsui.

> remove uvm_map_protect from cpu_startup of several ports.
> - they shouldn't be needed with the current fault handler.
> - they causes assertion failure with the recent vm_map implementation.
>
> discussed on tech-kern@.  reviewed by Chuck Silvers.
> PR/29179 from Julio M. Merino Vidal.
2005-02-12 08:17:38 +00:00
oster
be864067da The 'next' argument to rf_CreateDiskQueueData is always NULL. Since
there is no particular reason to pass an extra NULL argument, turf it,
and initialize p->next to NULL within the function.
2005-02-12 03:44:41 +00:00
oster
0b15470982 Add a 'waitflag' argument to rf_CreateDiskQueueData() and use it to
determine if we are willing to wait for memory to come from the
diskqueuedata (dqd) and bufpool pools.  Cleanup the mess related to
code calling rf_CreateDiskQueueData() with different expectations
(and/or blatent disregard) of what might happen if there were
insufficient pool resources.
2005-02-12 03:27:33 +00:00
briggs
ef57c7b216 Add twe. 2005-02-12 03:24:39 +00:00
heas
52b0cd6b47 ntohs->htons for ip6 plen (payload length).
It is not technically necessary to set plen here, since ip6_output() starts
off by calculating it, but leaving it keeps it consistent with other code.
2005-02-12 01:24:07 +00:00
matt
4612c7a119 When building kernel for OEA, allow unaligned accesses since OEA
processors will deal with them properly.
2005-02-12 00:03:21 +00:00
rearnsha
dfcdd57e20 Add support for the Artisea device operating in DPA mode.
Approved by briggs.
2005-02-11 21:12:32 +00:00
rearnsha
920296fb7f Add support for Artisea chips operating in DPA mode, which has a
16-bit view of the ATA command registers for extended commands.

Approved by briggs.
2005-02-11 21:11:15 +00:00
jdc
7fa1245cbb Add some PCMCIA devices that were missing.
Add/fix comments.
2005-02-11 18:26:59 +00:00
yamt
18acc63fc4 remove uvm_map_protect from cpu_startup of several ports.
- they shouldn't be needed with the current fault handler.
- they causes assertion failure with the recent vm_map implementation.

discussed on tech-kern@.  reviewed by Chuck Silvers.
PR/29179 from Julio M. Merino Vidal.
2005-02-11 15:03:55 +00:00
ws
b2bdc38871 Prevent integer overflow.
Fixes PR29332.
2005-02-11 11:01:10 +00:00
dsl
05e2f6ebdb Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
2005-02-11 08:25:53 +00:00