Commit Graph

58825 Commits

Author SHA1 Message Date
deischen
a32712acca Added a missing set of braces to a conditional that encompasses more than
one statement.
2001-04-10 04:22:24 +00:00
deischen
64a87c91c4 To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions.

Suggested by:	bde
2001-04-10 04:19:21 +00:00
deischen
e9d09589c6 To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions.  This macro is
improperly named, though, since a weak definition is not the same
thing as a weak reference.

Suggested by:	bde
2001-04-10 04:11:50 +00:00
deischen
ce3a88f857 Include <unistd.h> so that read(2) and write(2) don't cause warnings. 2001-04-10 03:55:19 +00:00
deischen
ad5d48b6c1 Fix a comment within a comment warning due to a missing "*/". 2001-04-10 03:47:40 +00:00
dd
109174d340 Make the list in the DIAGNOSTICS section "-tag" instead of "-diag":
the former makes it more obvious as to there the error message starts
and the explanation begins.

PR:		26431
2001-04-10 01:03:29 +00:00
bp
47b078c36b Avoid endless recursion on panic.
Reviewed by:	jhb
2001-04-10 00:56:19 +00:00
jhb
9f36680a3e Maintain a reference count on the witness struct. When the reference
count drops to 0 in witness_destroy, set the w_name and w_file pointers
to point to the string "(dead)" and the w_line field to 0.  This way,
if a mutex of a given name is used only in a module, then as long as
all mutexes in the module are destroyed when the module is unloaded,
witness will not maintain stale references to the mutex's name in the
module's data section causing a panic later on when the w_name or w_file
field's are examined.
2001-04-09 22:34:05 +00:00
mjacob
9ce0ef856f Several things:
1. Pick up MII/PHY support for Livengood copper part (10/100/1000) from
Parag Patel. It was a fairly complete but not quite platform independent
job.

2. Finish silly offset differences that LIVENGOOD vs. WISEMAN registers
have (so the !)$*!)$*!$ fiber LIVENGOOD now works too).

3. Ansify the source.

So- we now suppor tthe PRO1000F and PRO1000T adapters.
2001-04-09 21:54:15 +00:00
mjacob
1720ae40d0 Add in MII support for LICENGOOD copper part (10/100/1000). Add in some
more flags for verbose as well as debug printing.
2001-04-09 21:48:50 +00:00
mjacob
98eef8a062 Pick up changes from Parag Patel and Kachun Lee, and self:
1. The offsets for some registers change in LIVENGOOD. Gratuitously.

2. Define LIVENGOOD and LIVENGOOD_CU part numbers. Add some more
specific LIVENGOOD defaults.

3. Add definitions for PHY support for the copper LIVENGOOD part
(10/100/1000).
2001-04-09 21:47:11 +00:00
jhb
2e693a0768 - One can now specify the decimal pid of a process to trace as a parameter.
Since pid's are not in the kernel address space, this doesn't conflict
  with the funcionality of specifying an arbitrary frame pointer to the
  trace command.
- If the first function of a backtrace maps to fork_trampoline, then this
  is a newly fork'd process that has not been executed yet, so just print
  out the first frame and then return for that case.
- Lower the default count from 65535 to 1024.  ddb doesn't trace into
  userland, and if the stack gets hosed and starts looping it's less
  annoying.
2001-04-09 21:43:45 +00:00
mjacob
5ec77929ed We now depend on miibus_if.h. 2001-04-09 21:34:52 +00:00
cg
5eaff47dd4 comment out a boot-time debug message 2001-04-09 21:33:47 +00:00
mjacob
547d322ffb Add Marvell PHY support for 10/100/1000 LIVENGOOD_CU Intel NIC.
Parag Patel did all of the grunt work, so he gets the credit.
Register definitions and actions inferred from a Linux driver,
so Intel also gets some 'credit'.
2001-04-09 21:29:44 +00:00
obrien
1b199d6083 Add a comment out console line for AlphaServer 8200 and 8400 ("TurboLaser") 2001-04-09 19:35:53 +00:00
n_hibma
c3d1a5e592 Rege. 2001-04-09 18:45:32 +00:00
n_hibma
abe56b7f6f Again an ID that has been reused. Update description. 2001-04-09 18:45:02 +00:00
n_hibma
9d7f547267 Add the Abocom URE 450 ethernet adapter.
Submitted by:   dima@bog.msu.su
2001-04-09 18:44:11 +00:00
n_hibma
39dcb7f710 Regen. 2001-04-09 18:26:18 +00:00
n_hibma
e36370945d Update the description for the EPSON PID 0x010a. It seems to be reused in
the 8700 series.
2001-04-09 18:22:20 +00:00
n_hibma
91ae36ddf0 Regen. 2001-04-09 18:19:41 +00:00
n_hibma
32ee57fbbb Add the Omni 56K Plus modem
Submitted by:	kazarov@izmiran.rssi.ru
2001-04-09 18:19:20 +00:00
sobomax
f771fe1a20 Allow user to omit font size specification when loading a font. In addition
the following fixes had been made:

- check the size of the font being loaded and compare it with possible sizes
  to minimise possibility of loading something that is not a fontfile at all
  and turning console screen into garbage;

- prevent buffer overflow (and coredump as a result ) when loading valid
  uuencoded file with size that exceeds allocated buffer;

- correct and improve several error messages.

Approved by:	-audit, -hackers (silently)
2001-04-09 17:24:29 +00:00
sobomax
47ef52ef40 Whitespace only: convert several tabs into spaces to make style consistent. 2001-04-09 16:55:32 +00:00
jkh
a115d84eba Clarify that we're talking about KBytes per second vs kBits per second.
Reminded by:	bde
2001-04-09 16:49:50 +00:00
sobomax
46ad32392f Whitespace only: Convert several tabs into spaces, to make style consistent. 2001-04-09 16:36:48 +00:00
gallatin
a5c2453ac6 Document clear_error command on sable/lynx.
Thanks to Timothy D. First <firsttim@msu.edu> for figuring this one out
2001-04-09 14:21:24 +00:00
ru
c4d6d7dd95 Merge in latest CSRG revisions:
- .Fn and .Fc now print a final semicolon (`;') after a
  function declaration in the SYNOPSIS
- .%I implemented
- .At outputs ``AT&T UNIX'' if called without arguments
- minor cleanup

Obtained from:	CSRG archives
2001-04-09 13:02:20 +00:00
brian
07aa0f70cb `|'' should be more binding than `!'' so that this isn't broken:
if ! echo bla | wc -c ; then
		echo broken
	fi

Obtained from: NetBSD
2001-04-09 12:46:19 +00:00
cg
440a67b8e4 enable the rate conversion feeder.
the main benefit this gives for now is that via686 audio devices on
motherboards with ac97 codecs that do not support vra will be able to use
sample rates other than 48khz.
2001-04-09 12:04:44 +00:00
greid
58bee941aa Change the behaviour of mixer slightly such that not explicitly specifying
a mixer device will set/get the master volume levels

PR:		25156
Submitted by:	Tony Finch <dot@dotat.at>
Reviewed by:	cg, nik
2001-04-09 11:10:34 +00:00
n_hibma
93034daaca Remove a stale file. 2001-04-09 10:28:33 +00:00
bp
e0cbf901d0 Add function prototypes and base module for kernel side iconv library.
Add simple "xlat" converter which performs 8to8 table based conversion.
Unicode converter will be added in the near future.

Reviewed by:			silence on arch@
Files placement reviewed by:	bde
Obtained from:			smbfs
2001-04-09 09:39:29 +00:00
imp
25ce06dbae Two minor fixes:
o Change the number of init tries from 5 to a #define.
	o Allow up to 5s rather than 2s for commands to complete.  This
	  is still much less than 51 minutes, but makes my intel card init
	  with more reliability than before.
2001-04-09 06:33:36 +00:00
mjacob
b2d973bc01 Correctly initialize free_ccbq so that if we fail to attach (as is
possible for some systems where the device is there, but the BIOS
hasn't allocated memory resources for it), we don't panic.

Submitted by:	 Gerard Roudier
2001-04-09 05:41:41 +00:00
obrien
9627729ccd Add FreeBSD IDs to some files and make the others consistent in style. 2001-04-08 23:09:21 +00:00
obrien
a4934e382d Fix typo in error message. 2001-04-08 23:02:12 +00:00
greid
dce2a2df72 Reinitialise the DSP and mixer after a resume from suspend
PR:		22372
Submitted by:	Hiroyuki Aizu <aizu@jaist.ac.jp>
Reviewed by:	cg
2001-04-08 23:02:06 +00:00
obrien
24b4fda892 Style fix. 2001-04-08 21:50:41 +00:00
joe
4329712ba7 Don't complain about deprecated environment variables, like MUSIC_CD,
being present in the environment if the user has CDROM defined, or
has specified a device on the command line.

This avoids users of ports like 'workman' that use these variables
getting gratuitous warnings from cdcontrol.

Suggested by:	John Sellens <jsellens@generalconcepts.com>
2001-04-08 21:35:17 +00:00
jkh
ace0603dac According with RFC 2330 ("Framework for IP Performance Metrics", from
Paxson et al, Status: Informational, May 1998), we should use "bits per
second" and "k" as 1000 not 1024 for throughput measures.

Submitted by:   Eduardo Souza Machado da Silva <esms@acm.org>
2001-04-08 20:42:52 +00:00
joerg
d7ef836dda Move the decision whether we want to request authentication from our
peer out from sppp_lcp_open() to sppp_lcp_up().  For one, this makes
things look more symmetrical to sppp_lcp_close(), and somehow it also
just occurred to me that an Up event following the open caused the
value of the authentication option to be clobbered.
2001-04-08 20:29:09 +00:00
cg
de4fd56676 add a software sample rate conversion feeder. this uses linear
interpolation for reasonable quality whilst not using too much cpu time.
2001-04-08 20:26:22 +00:00
cg
f51ad0092e minor tweaks in speed and format setting routines.
don't stop exploring the feeders if a feeder fails to initialise.
2001-04-08 20:20:52 +00:00
cg
cca900c66b fix feeder initialisation methods to return correct result codes. 2001-04-08 20:17:03 +00:00
cg
1a9fb9f161 if the feeder chain returned no data, do not try to acquire the data. 2001-04-08 20:14:14 +00:00
markm
52aeafaf21 From the author:
Fix a bug when the return values from the overridden sub were lost
during the first invocation.
2001-04-08 20:11:51 +00:00
iedowse
dd21c89847 The maximum RPC message size was set at 8k for UDP. This is lower
than the default buffer size in the old RPC code (8800 bytes), and
it could not be overriden by the application. This caused problems
with CFS (/usr/port/security/cfs).

Change this default back to UDPMSGSIZE (8800 bytes), but more
importantly, allow applications to use larger message sizes for
all protocols if desired. Choose an arbitrary maximum message size
of 256k instead of using the default as the maximum (which is
silly).

Reported by:	ache
Reviewed by:	alfred, Martin Blapp <mb@imp.ch>
2001-04-08 19:21:50 +00:00
dd
61e6ae75ac Mention that locks are inherited across an exec.
PR:		24802
Submitted by:	Kenneth Ingham <ingham@i-pi.com>
2001-04-08 19:11:25 +00:00