Commit graph

54724 commits

Author SHA1 Message Date
Jake Burkholder ce7d82114d Whitespace. Make the indentation for MPASS and MPASS2 consistent and
slightly more sane.  Make the arguments to the nop MPASS2 match those
of the functional one.  Change 4 spaces to a tab.  Don't indeent a
label so its easier to see.
2000-12-08 09:51:13 +00:00
Mike Smith aa3f504fb9 Resolve conflicts from the 20001201 merge. 2000-12-08 09:22:18 +00:00
Mike Smith a68cef92af This commit was generated by cvs2svn to compensate for changes in r69746,
which included commits to RCS files with non-trunk default branches.
2000-12-08 09:20:40 +00:00
Mike Smith f6402773ea Update to the 20001201 ACPI CA snapshot. 2000-12-08 09:20:40 +00:00
Jake Burkholder fc2befbb10 Add macros MPASS3 and MPASS4, which take the file and line number
as parameters.  Use them in the mutex inlines so that the file and
line numbers are those of the caller instead of always in this file.
2000-12-08 09:17:16 +00:00
Mike Smith 0ae554237c - Convert a lot of homebrew debugging output to use the ACPI CA debugging
infrastructure.  It's not perfect, but it's a lot better than what
   we've been using so far.  The following rules apply to this:
    o BSD component names should be capitalised
    o Layer names should be taken from the non-CA set for now.  We
      may elect to add some new BSD-specific layers later.

 - Make it possible to turn off selective debugging flags or layers
   by listing them in debug.acpi.layer or debug.acpi.level prefixed
   with !.

 - Fully implement support for avoiding nodes in the ACPI namespace.
   Nodes may be listed in the debug.acpi.avoid environment variable;
   these nodes and all their children will be ignored (although still
   scanned over) by ACPI functions which scan the namespace.  Multiple
   nodes can be specified, separated by whitespace.

 - Implement support for selectively disabling ACPI subsystem components
   via the debug.acpi.disable environment variable.  The following
   components can be disabled:
    o bus	creation/scanning of the ACPI 'bus'
    o children	attachment of children to the ACPI 'bus'
    o button	the acpi_button control-method button driver
    o ec	the acpi_ec embedded-controller driver
    o isa	acpi replacement of PnP BIOS for ISA device discovery
    o lid	the control-method lid switch driver
    o pci	pci root-bus discovery
    o processor CPU power/speed management
    o thermal	system temperature detection and control
    o timer	ACPI timecounter
   Multiple components may be disabled by specifying their name(s)
   separated by whitespace.

 - Add support for ioctl registration.  ACPI subsystem components may
   register ioctl handlers with the /dev/acpi generic ioctl handler,
   allowing us to avoid the need for a multitude of /dev/acpi* control
   devices, etc.
2000-12-08 09:16:20 +00:00
Jake Burkholder 96d57f35b2 Change the calling conventions of the MTX_ENTER macro to match
that of MTX_EXIT.  Don't assume that the reg parameter to MTX_ENTER
holds curproc, load it explicitly.  Put semi-colons at the end of
the macros to be more consistent and so its harder to forget them
when these change.
2000-12-08 08:49:36 +00:00
Poul-Henning Kamp 06b6617e0b Kill some bogus "register" keywords.
Go Ansi on the functions.
2000-12-08 06:57:39 +00:00
John Baldwin 5e028585be Well, the previous commit wasn't entirely correct either. For now, just
disable the optimized mutex micro-operations for the non-I386_CPU case
and fall back to the C stubs that call the atomic_foo() inlines.
2000-12-08 05:03:34 +00:00
Paul Saab 3894088f17 When TFTP tries to open a file, it is expecting struct open_file
member f_devdata to be a pointer to a socket number.  When currdev
is "pxe", that assumption is correct.  When currdev is "disk*", that
assumption is incorrect.

Submitted by:	Jim Browne <jbrowne@jbrowne.com>
2000-12-08 05:02:12 +00:00
Marcel Moolenaar d5b14b2a37 Add "empty" makefile. Cross-building fails without it. 2000-12-08 04:08:09 +00:00
Marcel Moolenaar d50575082a Add Linuxulator manpage. Derived from i386 version. 2000-12-08 02:52:26 +00:00
Marcel Moolenaar f9e5924cbe The osfulator can be compiled-in now:
o  add kernel option to the synopsis.
o  remove "only as module" from bugs.

Reviewed by: sheldonh
2000-12-08 02:49:01 +00:00
John Baldwin 0f43ee1793 Add comments to the proc structure to describe how each member will be
locked.  This list is subject to change, but hopefully many changes will
not have to be made.
2000-12-08 00:58:54 +00:00
Archie Cobbs fa5e41c85d Add missing #include. 2000-12-08 00:49:37 +00:00
Matthew Dillon a41ce5d30b Only call bwillwrite() for vnodes. Do not penalize devices or pipes. 2000-12-07 23:45:57 +00:00
Bill Paul 15f43fcb0b When I converted this driver, I neglected to deal with packet alignment.
We must force payload alignment to a longword boundary to make the
alpha happy. This should stop the driver from trapping on the alpha
when the interface is ifconfig'ed (actually, when the first frame is
received).
2000-12-07 23:30:51 +00:00
Poul-Henning Kamp 5e1aea9fd7 Hide intrstate in the #ifdef where it belongs. 2000-12-07 22:38:22 +00:00
Poul-Henning Kamp 7891600907 Don't use a private malloc(9) type for something this M_DEVBUFish.
Noticed long time ago by:	bde
2000-12-07 22:33:12 +00:00
Poul-Henning Kamp 69d683d52a Add needed include of <sys/devicestat.h> 2000-12-07 22:31:13 +00:00
Poul-Henning Kamp 45b031c5e4 Move extern tsc_present outside function to quelch a warning. 2000-12-07 22:30:11 +00:00
Poul-Henning Kamp aac61d609c Add __ucmpdi2 prototype to quelch a warning. 2000-12-07 22:28:20 +00:00
Poul-Henning Kamp a3671bc8c8 Add back some now needed #include <sys/systm.h>
Fix various warnings while here anyway.
2000-12-07 22:19:06 +00:00
Alexander Langer 8ffced21e8 Build the sym driver as a kernel module. 2000-12-07 21:46:04 +00:00
Wilko Bulte 9d2264913b Document 'untested' status of ExtIO module on AS2100. Even when we
don't know if these things were ever produced.
2000-12-07 21:35:50 +00:00
Wilko Bulte 37a049c1b1 Document support for AlphaServer 2100A.
Thanks to: gallatin & Compaq for open-sourcing bits of Tru64 UNIX
Tested by: wilko
2000-12-07 21:13:39 +00:00
Ben Smithurst 8afbbd41f4 Explicitly document the fact that securelevel > 0 means that kernel modules
may not be (un)loaded.

PR:		23350
Submitted by:	Gordon Tetlow <gordont@bluemtn.net>
2000-12-07 21:09:22 +00:00
Alexander Langer 8c529b3777 Remove unneeded include of <pci.h>
Approved by:	groudier
2000-12-07 20:58:16 +00:00
Jordan K. Hubbard a630ff9a60 Fix bug where minimal dist selection didn't check off the right
menu item.

Noticed by:	Dan "Sheepdip" Langille <dan@freebsddiary.org>
2000-12-07 20:04:35 +00:00
David E. O'Brien a3cea3dde5 Retire this ancient version of rdist. 2000-12-07 19:24:55 +00:00
David E. O'Brien ee0610eb99 put localdir first 2000-12-07 16:35:21 +00:00
Ruslan Ermilov 114c43dcf8 Whitespace-only to sync with -stable. 2000-12-07 15:09:48 +00:00
Ruslan Ermilov 2961f2ed60 MFS: Silence compilation warnings. 2000-12-07 14:59:11 +00:00
Mitsuru IWASAKI b52617dc0e Create a pmtimer device instance for GENERIC and NEWCARD kernels by default.
Submitted by:	Masayuki FUKUI <fukui@sonic.nm.fujitsu.co.jp>
2000-12-07 14:27:02 +00:00
Mike Smith a20970a608 Add a PCI vendor/device database, used by pciconf (and available for use
by other tools as well).

Note that omissions and corrections for this file should be resolved
via http://www.yourvote.com/pci, as this is the master source for this
database, rather than by editing this file directly.
2000-12-07 10:56:29 +00:00
Mike Smith a54bc9d028 Update to improve handling of verbose PCI vendor/device information.
- Read the database from /usr/share/misc (or wherever else we're pointed)
   rather than compiling it in.
 - Decode the class/subclass fields if requested.
 - Print things in a slightly longer but more readable format.
2000-12-07 10:52:59 +00:00
Roger Hardiman 2c097d3332 Add Isochronus transfer mode support required by
USB WebCams, using a patch from Peter Housel.

With this change ugen, and with Peter's 'vid' program
in ports/graphics/vid, we can capture single images from USB Cameras
using the OmniVision OV511 chipset (including some models of the
Creative WebCam 3)

NetBSD merged in Peter's patch to their ugen.c file
several months ago, so this brings us back in line.

Submitted by:	Peter Housel <housel@acm.org>
		http://members.home.com/housel/
Approved by:	Nick Hibma
2000-12-07 10:28:25 +00:00
Roger Hardiman 5f41c13187 Non functional change.
Change a few indentations to tabs.
Change the functions to use ANSI sytle parameters.

This lowers the diffs between our copy of ugen.c and NetBSD's copy

Approved by:	Nick Hibma
2000-12-07 10:13:18 +00:00
Warner Losh 98b2dbaaa2 Add support for compiling ray driver. 2000-12-07 03:16:21 +00:00
John Baldwin a423d0122b Fix broken register restraints that needlessly clobbered registers %ecx
and %edx resulting in gcc not having enough registers left to work with.
2000-12-07 02:23:16 +00:00
Archie Cobbs 3a50ed55e2 Convert from spl -> mutex. 2000-12-07 02:09:39 +00:00
Andrew Gallatin 313231657d Partially re-write T2 chipset support based on Tru64 platform support
files which Compaq open-sourced (with a BSD license).

This commit adds support for proper PCI interrupt mapping and much
better support for swizzling between "standard" isa IRQs and the stdio
irqs used by the t2.  This also adds enabling/disabling/eoi support
for AlphaServer 2100A machines.  The 2100A (or lynx) interrupt
hardware is is very different (and much nicer) than the 2100.
Previously, only AS2100 and AS2000 machines worked.

This commits also lays the groundwork for supporting ExtIO modules.
These modules are essentially a second hose.  This work is left
unfinished pending testing on real hardware.  Wilko tells me that
ExtIO modules are quite rare, and may not actually exist in the wild.

Obtained from: Tru64
Tested by: wilko
2000-12-07 01:06:19 +00:00
Alfred Perlstein b5861b3450 Really fix phys_pager:
Backout the previous delta (rev 1.4), it didn't make any difference.

If the requested handle is NULL then don't add it to the list of
objects, to be found by handle.

The problem is that when asking for a NULL handle you are implying
you want a new object.  Because objects with NULL handles were
being added to the list, any further requests for phys backed
objects with NULL handles would return a reference to the initial
NULL handle object after finding it on the list.

Basically one couldn't have more than one phys backed object without
a handle in the entire system without this fix.  If you did more
than one shared memory allocation using the phys pager it would
give you your initial allocation again.
2000-12-06 21:52:23 +00:00
Matthew Dillon 9440653d07 Add necessary bwillwrite() in writev() entry point.
Deal with excessive dirty buffers when msync() syncs non-contiguous
dirty buffers by checking for the case in UFS *before* checking for
clusterability.
2000-12-06 20:55:09 +00:00
Ruslan Ermilov 78621becb9 Do not duplicate our efforts checking FreeBSD version. For a new version,
simply define the empty string before the .Fx macro definition, like this:

.ds Fx*4.3
2000-12-06 18:31:21 +00:00
Ruslan Ermilov 4c5804ea54 Install the stock (as supplied by groff(1) distribution) tmac.an
and tmac.andoc files.  The man(1), catman(1) and bsd.man.mk have
been modified to call groff(1) with -mandoc argument.
2000-12-06 17:02:33 +00:00
Ruslan Ermilov 081b301be3 Backout rev 1.2 (emulate :o' and /o' letters using 'o'),
since they are already emulated in tmac.tty-char.
2000-12-06 12:45:10 +00:00
Ruslan Ermilov d6d2925b93 Build and install groff(1) texinfo(1) documentation. 2000-12-06 12:17:01 +00:00
Ruslan Ermilov f6d2f1c200 Groff 1.16.1 implements .psbb request internally in troff(1)
rather than as a macro using the .sy request, so we may drop
the unsafe (-U) mode.
2000-12-06 11:56:34 +00:00
Ruslan Ermilov f2b6be9022 Upgrade to groff 1.16.1. 2000-12-06 11:38:34 +00:00