Commit graph

79238 commits

Author SHA1 Message Date
John Baldwin 42dbeaee02 Various changes to make it easier to subclass the PCI bus device.
- Make the pci devclass a global variable.
- Add child devices in pci_attach() instead of pci_probe().  Change
  pci_probe() to just check for a valid bus number from the associated
  bridge and return -1000 if successful.  This allows subclasses of the
  PCI bus driver to override the generic driver.
- Move the code to load the vendor data into its own public function.
  Really though, doing this at attach is just plain wrong.  This should
  really be done in the module load routine instead.  As a side effect,
  the 'busno' variable in pci_attach() is now no longer static (minor
  bug that was harmless so far.)
- Change pci_add_children() to take an extra argument that is the size of
  the device info structure passed to pci_read_device() and make it public
  so subclasses of the PCI bus can call it in their attach routines.
- Move the bits to attach a probed PCI child to a PCI bus into a global
  pci_add_child() function.  This will allow subclasses that can detect
  a PCI device not found in the normal PCI probe to add those devices in
  their own attach routine.  (I have seen this in the ACPI tree on my
  laptop for example.)  As a side effect, change the static function
  pci_add_resources() to get the busno, slot, and func from the passed
  in dinfo structure instead of requiring them as function arguments.

Tested on:	i386, alpha, ia64, sparc64
2002-08-26 15:23:52 +00:00
John Baldwin 473f1ca90d In acpi_pcib_route_interrupt(), the code claims to check to see if a PCI
LNK device (interrupt source provider sort of) is present before using it,
but the code actually tested the status (_STA) of the PCI bridge device
doing the routing, not the actual LNK device.  Fix it to check the status
of the LNK device.
2002-08-26 15:12:47 +00:00
Jeremy Lea dd1d26511d Don't dump core on packages with an invalid or empty PLIST.
Reviewed by:	markm
2002-08-26 13:25:48 +00:00
Ian Dowse fd0b613a7b Unbreak the -c option by not using connect(2) for mount_nfs's
communication with the remote NFS server if this flag is specified.

PR:		bin/42003
Submitted by:	Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
2002-08-26 13:08:23 +00:00
Mike Barcroft 755a869863 The previous commit log was incorrect. _BSD_CLK_TCK_ and
_BSD_CLOCKS_PER_SEC_ are not as related to stathz as I thought.  So
the previous revision will only serve to unify alpha with i386 and
other architectures.  This actually does introduce some binary
incompatibilities for dynamically linked programs which make use of
clock(3) and times(3).
2002-08-26 06:33:09 +00:00
Giorgos Keramidas 99479039bb Grammar fix.
PR:		docs/42021
Submitted by:	Jeff Ito <jeffi@rcn.com>
MFC after:	3 days
2002-08-26 06:16:51 +00:00
Julian Elischer b39f32841b move the assert to cover more cases 2002-08-26 05:02:56 +00:00
Tom Rhodes 55c639b2d9 Fix 'SYNOPSIS' and 'usage' 2002-08-26 04:56:23 +00:00
Tom Rhodes a48ea64073 Print a more realistic usage message 'special_device' 'inode_number'. This
matches the synopsis given in the manual page.

MFC after:	3 days
2002-08-26 03:56:23 +00:00
David E. O'Brien b9d958f5d4 Grrr.... mumble.... a linger gzip'ism still existed.
Submitted by:	Craig Rodrigues <rodrigc@attbi.com>
2002-08-26 03:44:44 +00:00
Mike Barcroft 646d21a5a3 Since arm and powerpc aren't far enough to set stathz, take a
preemptive strike and change _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_
to 128.

Approved by:	benno
2002-08-26 03:44:11 +00:00
Mike Barcroft 091fe703a4 Fix a long-standing bug on alpha:
Change _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ to match stathz.  This
  should result in bug for bug compatibility in staticly linked
  programs and dynamicly linked programs should see an immediate
  correction.
2002-08-26 02:39:03 +00:00
Greg Lehey 045d6370fc Clarify that the date 26 August 1920 was the date women got the vote
in USA, not the world first.

Add dates for women's votes in New Zealand.

Add dates for women's votes and rights to political office in South
Australia.
2002-08-26 00:23:56 +00:00
Giorgos Keramidas ba4be60fa0 Document -p option of diff.
PR:		docs/41887
Submitted by:	tobez
2002-08-26 00:13:06 +00:00
Jake Burkholder 81f223ca02 Fixed most indentation bugs. 2002-08-25 22:36:52 +00:00
Jake Burkholder ca0387ef9f Fixed placement of operators. Wrapped long lines. 2002-08-25 20:48:45 +00:00
David E. O'Brien a8a1e43d8f Backout rev 1.4. The code certainly does not spell the sysctl with 'ed':
$ grep disable /sys/boot/i386/libi386/i386_module.c
    if ((getenv("acpi_load") && !getenv("hint.acpi.0.disable"))) {
2002-08-25 20:02:30 +00:00
Mike Barcroft dd7770019a Move intrmask_t to the kernel-only section of <sys/types.h>. Add some
comments submitted by bde.
2002-08-25 19:26:31 +00:00
Matthew Dillon 301b6a7936 Rearrange a sentence that got stuck in the wrong paragraph.
X-MFC after:	(all commits here will be MFCd)
2002-08-25 18:54:04 +00:00
Matthew Dillon c3bf8c4544 Clear up confusion in a sentence describing [/var]/tmp. 2002-08-25 18:46:43 +00:00
Mitsuru IWASAKI 9c4d34df76 Add suspend/resume method to syscons. This switch the mode
(text <-> graphics) by changing current vty during ACPI
sleep/wakeup (maybe APM also).
2002-08-25 18:35:44 +00:00
Matthew Dillon 78d1394010 Add a section on the net.inet.ip.portrange.* sysctls.
Suggested by: Mike Harding <mvh@ix.netcom.com>
MFC after:	3 days
2002-08-25 18:34:48 +00:00
Julian Elischer c341dbce8b Fix a couple of typos in comments.
Submitted by:	Jake Burkholder <jake@locore.ca>
2002-08-25 17:49:28 +00:00
Mike Barcroft 33213740d8 Append a d to disable to make the ACPI hint example valid.
Submitted by:	Craig Rodrigues <rodrigc@attbi.com>
2002-08-25 16:48:16 +00:00
Philippe Charnier f0067240a1 Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:30:43 +00:00
Philippe Charnier 93b0017f88 Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
Philippe Charnier 7fed38d0a0 Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:10:45 +00:00
Philippe Charnier 0d9f1a69d8 Replace various spellings with FALLTHROUGH which is lint()able 2002-08-25 13:01:47 +00:00
Jens Schweikhardt 798fb62432 Reformat the mvterm entry to fit mostly in an 80 column terminal.
Suggested by:	bde
MFC after:	3 days
2002-08-25 12:12:46 +00:00
Bruce Evans 17ce36a93b Oops, the previous commit messages should have said that the previous
commit also removed the hint about using -Werror.  -Werror is now added
in sys/conf/kern.pre.mk, which is a better place except it doesn't cover
modules.
2002-08-25 08:08:56 +00:00
Bruce Evans 64fc62d407 Turned format checking back on. It was left turned off for too long after
the gcc lossage that caused it to be turned off was fixed.

Tested with:	i386/{GENERIC,LINT,...}, alpha/GENERIC
2002-08-25 08:05:02 +00:00
Chris Costello 4e1e73eb94 Remove a repeated word.
Submitted by:	horikawa
2002-08-25 07:13:05 +00:00
Warner Losh ca551bcd21 Remove extra args to printf
use Capabilities rather than Capacities.

Submitted by: kkenn
2002-08-25 06:15:50 +00:00
Mitsuru IWASAKI ff01efb50d Add new sysctl MIB (hw.acpi.sleep_delay) to specify the delay (in
seconds) before ACPI sleep.  Some machines might need this to sleep
by Hot-key.
2002-08-25 06:13:53 +00:00
Crist J. Clark fcfce9770f Don't give up on a remote log host when we get a EHOSTUNREACH or
EHOSTDOWN. These are often transient errors (when the remote host
reboots, temporary network problems, etc.), and we'd rather err on the
side of caution and keep trying send messages that never arrive than
just give up.

Note that this is not an implementation of the "back-off" methods
given in the PR. Those just seem too complicated. Why not just keep
trying each time? Trying and failing doesn't really consume
significantly more resources than if we were successful for each
message.

PR:		bin/31029
MFC after:	1 week
2002-08-25 06:05:25 +00:00
Crist J. Clark 0b3a80af0d Check if a host argument is a IPv6 presentation format address before
going to gethostbyname2(3).

PR:		bin/31632
MFC after:	3 days
2002-08-25 05:44:13 +00:00
Alan Cox 6508a194aa o Retire pmap_pageable(). It's an advisory routine that none
of our platforms implements.
2002-08-25 04:20:05 +00:00
Crist J. Clark 10f23b4ad0 Only create a temporary file if we are actually going to do something
in the script. Eliminates a bug where we create a temp file, but don't
delete it since the rm(1) is only done if the check is enabled.

PR:		bin/40960
Submitted by:	frf <frf@xocolatl.com>
MFC after:	3 days
2002-08-25 04:09:17 +00:00
Crist J. Clark 784d7650f7 Lock the sysctl(8) knobs that turn ip{,6}fw(8) firewalling and
firewall logging on and off when at elevated securelevel(8). It would
be nice to be able to only lock these at securelevel >= 3, like rules
are, but there is no such functionality at present. I don't see reason
to be adding features to securelevel(8) with MAC being merged into 5.0.

PR:		kern/39396
Reviewed by:	luigi
MFC after:	1 week
2002-08-25 03:50:29 +00:00
Julian Elischer 9712591e35 Reformat some comments to fit in 80 columns and
rewrite some comments that have 'aged' poorly.
2002-08-25 02:56:15 +00:00
Peter Wemm 6bc11ae00c Make this compile without needing NO_WERROR. 2002-08-25 02:51:13 +00:00
Juli Mallett acdb9a105e Add a -C ala GNU make(1) for Makefiles which are too lazy to use $(MAKE) and
this particular GNU flag.  It changes into the given directory for the
operation in question.  This just goes into said directory at the time of
parsing the argument for getopt(3).

Submitted by:	Rachel Hestilow <rachel@jerkcity.com>
2002-08-25 02:45:04 +00:00
Bruce Evans 34bdf0dcbf Fixed printf format errors and style bugs in rev.1.92. This is the version
that should have been committed in rev.1.93.
2002-08-25 02:39:07 +00:00
Bruce Evans 152ffafe85 Oops, the previous commit wasn't the version that I meant to commit (it
does some extra things which are probably harmless).  Back it out.
2002-08-25 02:34:18 +00:00
Orion Hodson 933ce6fa4b Add suspend and resume support.
Contributed by:	Takanori Watanabe <takawata@FreeBSD.org>
PR:		kern/41809
2002-08-25 02:00:49 +00:00
Matthew Dillon 89bed25f9f Add a sentence on the TCP retransmission timer changes
and the TCP bandwidth delay product window limiting features.

note: the -current version of the retransmit timer defaults
to 200ms while the -stable version defaults to 1 second for now.
MFC after:	3 days
2002-08-25 01:59:07 +00:00
Matthew Dillon 667137d174 Add A section on the retransmit timer sysctls.
MFC after:	3 days
2002-08-25 01:51:57 +00:00
Bruce Evans 760e2cb04a Fixed editing errors in rev.1.4 which manifested as printf format errors
at compile time and probably as panics at runtime.
2002-08-25 01:32:22 +00:00
Bruce Evans 109a8e7c0c Fixed printf format errors and style bugs in previous commit. 2002-08-25 01:08:27 +00:00
David E. O'Brien 7412ba062f Reorg just a tad to better express our bzip intentions. 2002-08-25 01:01:08 +00:00