]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoCatch up with the ISO-C++ standard.
David E. O'Brien [Mon, 9 Sep 2002 02:58:42 +0000 (02:58 +0000)]
Catch up with the ISO-C++ standard.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>

22 years agoUse "options " rather than "options<tab>".
Jun Kuriyama [Mon, 9 Sep 2002 02:40:59 +0000 (02:40 +0000)]
Use "options " rather than "options<tab>".

22 years agoFix typo (s@src/crypto/openssh-portable@src/crypto/openssh@).
Jun Kuriyama [Mon, 9 Sep 2002 02:00:28 +0000 (02:00 +0000)]
Fix typo (s@src/crypto/openssh-portable@src/crypto/openssh@).

22 years agoBack out last commit where I moved pcn(4) off of the modules floppy back
David E. O'Brien [Sun, 8 Sep 2002 23:59:38 +0000 (23:59 +0000)]
Back out last commit where I moved pcn(4) off of the modules floppy back
into the install kernel.  Unfortunately pcn(4) also needs mii(4) so that
would also have to added to install kernel, which will bloat it up so that it
doesn't fit on the floppy any more.  Turns out we grew a lnc(4) module since
I last looked.  So handle it as a kld loadable module during install rather
than have it statically compiled into the kernel.

22 years agoChange the order that we look for free memory windows from 0 -> MAX-1
Warner Losh [Sun, 8 Sep 2002 22:18:06 +0000 (22:18 +0000)]
Change the order that we look for free memory windows from 0 -> MAX-1
to MAX-1 -> 0.  This should allow for less potential for conflict
between pccardd/pccardc and drivers.  As far as I can tell no drivers
try to use window 4, so this should be a no-op for them.

22 years agoUpdate the hardware list for the bge driver.
John Polstra [Sun, 8 Sep 2002 19:32:08 +0000 (19:32 +0000)]
Update the hardware list for the bge driver.

22 years agoMention support for the on-board NICs on IBM x235 servers.
John Polstra [Sun, 8 Sep 2002 19:20:23 +0000 (19:20 +0000)]
Mention support for the on-board NICs on IBM x235 servers.

Be more precise when referring to the chip family (BCM570x) vs.
specific models (e.g., BCM5700).

MFC after: 1 month

22 years agoAdd support for the BCM5703x chips. I do not have one of these
John Polstra [Sun, 8 Sep 2002 19:12:02 +0000 (19:12 +0000)]
Add support for the BCM5703x chips.  I do not have one of these
cards to test; however the submitter reports that this patch works
with the on-board interface on the IBM x235 server.

Submitted by: Jung-uk Kim <jkim@niksun.com>
MFC after: 1 month

22 years agoFix style(9) bugs.
Poul-Henning Kamp [Sun, 8 Sep 2002 15:16:49 +0000 (15:16 +0000)]
Fix style(9) bugs.

Brucified by: bde

22 years agoFix a logic bug in the struct dev_t allocation code.
Poul-Henning Kamp [Sun, 8 Sep 2002 15:15:12 +0000 (15:15 +0000)]
Fix a logic bug in the struct dev_t allocation code.

Spotted by: Neelkanth Natu <neelnatu@yahoo.com>

22 years agoDeal with a new exteded MBR paritition type
Poul-Henning Kamp [Sun, 8 Sep 2002 15:13:33 +0000 (15:13 +0000)]
Deal with a new exteded MBR paritition type

Submitted by: Michal Mertl <mime@traveller.cz>

22 years agoNow that we have a cached mount credential in struct mount, use it istead
Poul-Henning Kamp [Sun, 8 Sep 2002 15:11:18 +0000 (15:11 +0000)]
Now that we have a cached mount credential in struct mount, use it istead
of a private cached copy.

22 years agoGet this file closer to style(9).
Poul-Henning Kamp [Sun, 8 Sep 2002 15:10:04 +0000 (15:10 +0000)]
Get this file closer to style(9).

22 years agoAdd wcstol() and wcstoul(), based on strtol() and strtoul().
Tim J. Robbins [Sun, 8 Sep 2002 13:27:26 +0000 (13:27 +0000)]
Add wcstol() and wcstoul(), based on strtol() and strtoul().

22 years agoAnother two-letters breakage
Andrey A. Chernov [Sun, 8 Sep 2002 12:47:22 +0000 (12:47 +0000)]
Another two-letters breakage

22 years agoReplace a stray reference to strtok() with one to wcstok().
Tim J. Robbins [Sun, 8 Sep 2002 11:09:24 +0000 (11:09 +0000)]
Replace a stray reference to strtok() with one to wcstok().

22 years agoTypo: s/o packet/on packet/
Marc Fonvieille [Sun, 8 Sep 2002 09:01:08 +0000 (09:01 +0000)]
Typo: s/o packet/on packet/

PR: docs/42543
Submitted by: Michael Lyngbøl <lyngbol@bifrost.lyngbol.dk>

22 years ago1) Remove all two-letters names and derivates, comes with Xfree* entries spam,
Andrey A. Chernov [Sun, 8 Sep 2002 05:41:42 +0000 (05:41 +0000)]
1) Remove all two-letters names and derivates, comes with Xfree* entries spam,
we don't use two-letters names already many years.
2) Make xterm-color just plain alias to xterm instead of unnecessary
reduplication of color capabilities already exist in xterm entry.

22 years agoSplit cam_argmask and move "commands" into cam_cmdmask. This addresses
Matthew N. Dodd [Sun, 8 Sep 2002 05:39:36 +0000 (05:39 +0000)]
Split cam_argmask and move "commands" into cam_cmdmask.  This addresses
the issue of not having any free bits left for additional commands.

Approved by:  ken
MFC after:  4 weeks

22 years agoMake this driver work a whole lot better.
Jake Burkholder [Sun, 8 Sep 2002 04:45:16 +0000 (04:45 +0000)]
Make this driver work a whole lot better.
- Get the initial mode from the prom settings and don't clobber the mode
  on open.
- Copy output into an internal ring buffer instead of accessing the tty
  outq directly in the interrupt handler.  This fixes a problem where
  garbage would show up in the output stream.
- Reset the console port completely and reprogram all the parameters
  before enabling it.  This fixes seemingly random hangs on startup
  when using a fast interrupt handler.
- Add minimal locking in place of spls.
- Remove dead code and minor cleanups.

22 years agoFix a syntax error which causes an annoying warning.
Garrett Wollman [Sun, 8 Sep 2002 04:43:28 +0000 (04:43 +0000)]
Fix a syntax error which causes an annoying warning.

22 years agoopt_kstack_pages.h is not needed anymore. It would have been a Bad Thing
Peter Wemm [Sun, 8 Sep 2002 02:59:38 +0000 (02:59 +0000)]
opt_kstack_pages.h is not needed anymore.  It would have been a Bad Thing
if it had been different to the running kernel.

22 years agoNote that 'device gzip' *requires* COMPAT_AOUT. Maybe this "device"
Peter Wemm [Sun, 8 Sep 2002 02:33:42 +0000 (02:33 +0000)]
Note that 'device gzip' *requires* COMPAT_AOUT.  Maybe this "device"
should be renamed to COMPAT_GZIPAOUT or something like that.

22 years agoDo not blow up when we walk off the end of the brands list.
Peter Wemm [Sun, 8 Sep 2002 02:17:44 +0000 (02:17 +0000)]
Do not blow up when we walk off the end of the brands list.

Found by: kris, jake

22 years agoTidy up some loose ends that bde pointed out. caddr_t bad, ok?
Peter Wemm [Sat, 7 Sep 2002 22:31:44 +0000 (22:31 +0000)]
Tidy up some loose ends that bde pointed out.  caddr_t bad, ok?
Move fill_kinfo_proc to before we copy the results instead of after
the copy and too late.

There is still more to do here.

22 years agoRemove bogus fill_kinfo_proc() before ptrace_set_pc(). There was no need
Peter Wemm [Sat, 7 Sep 2002 22:18:19 +0000 (22:18 +0000)]
Remove bogus fill_kinfo_proc() before ptrace_set_pc().  There was no need
for this.

Submitted by: bde

22 years agoThe true value of how the kernel was configured for KSTACK_PAGES was not
Peter Wemm [Sat, 7 Sep 2002 22:15:47 +0000 (22:15 +0000)]
The true value of how the kernel was configured for KSTACK_PAGES was not
available at module compile time.  Do not #include the bogus
opt_kstack_pages.h at this point and instead refer to the variables that
are also exported via sysctl.

22 years agoMake UAREA_PAGES and KSTACK_PAGES visible to userland via sysctl, like
Peter Wemm [Sat, 7 Sep 2002 22:11:45 +0000 (22:11 +0000)]
Make UAREA_PAGES and KSTACK_PAGES visible to userland via sysctl, like
PS_STRINGS and USRSTACK is.  This is necessary in order to decode a.out
core dumps.  kern_proc.c was already referring to both of these values
but was missing the #include "opt_kstack_pages.h".  Make the sysctl
variables visible so that certain kld modules can see how their parent
kernel was configured.

22 years agoMove the KSTACK_PAGES option from MD to MI. Although not all platforms
Peter Wemm [Sat, 7 Sep 2002 22:07:11 +0000 (22:07 +0000)]
Move the KSTACK_PAGES option from MD to MI.  Although not all platforms
support this, we do have MI code that references it and is otherwise
unaware of an override.  The alternative is to put knowledge in these
MI files about which platforms have the opt_kstack_pages.h option file.
It is more likely that other platforms will gain the ability to tune the
kstack size.

22 years agoFill out two fields (si_pid, si_uid) in the siginfo structure handed back
Juli Mallett [Sat, 7 Sep 2002 19:12:53 +0000 (19:12 +0000)]
Fill out two fields (si_pid, si_uid) in the siginfo structure handed back
to userland in the signal handler that were not being iflled out before, but
should and can be.

This part of sendsig could be slightly refactored to use an MI interface, or
ideally, *sendsig*() would have an API change to accept a siginfo_t, which
would be filled out by an MI function in the level above sendsig, and said MI
function would make a small call into MD code to fill out the MD parts (some
of which may be bogus, such as the si_addr stuff in some places).  This would
eventually make it possible for parts of the kernel sending signals to set up
a siginfo with meaningful information.

Reviewed by: mux
MFC after: 2 weeks

22 years agoNew release notes: COMPAT_AOUT, AMD Elan SC520 support.
Bruce A. Mah [Sat, 7 Sep 2002 19:04:35 +0000 (19:04 +0000)]
New release notes:  COMPAT_AOUT, AMD Elan SC520 support.

22 years agoAdd some more AMD processors to the supported hardware list.
Bruce A. Mah [Sat, 7 Sep 2002 18:59:15 +0000 (18:59 +0000)]
Add some more AMD processors to the supported hardware list.

PR: 40712

22 years agoDiff reduction in comments for filling the siginfo structure - refer to
Juli Mallett [Sat, 7 Sep 2002 18:56:18 +0000 (18:56 +0000)]
Diff reduction in comments for filling the siginfo structure - refer to
filling in the POSIX parts, when doing the same thing in every port of
FreeBSD.

22 years agoMatch the more modern ports and comment the filling of POSIX parts of siginfo
Juli Mallett [Sat, 7 Sep 2002 18:55:15 +0000 (18:55 +0000)]
Match the more modern ports and comment the filling of POSIX parts of siginfo
with 'Fill in POSIX parts'.  (Diff reduction.)

22 years agoUnbreak the modules build:
Thomas Moestl [Sat, 7 Sep 2002 18:02:18 +0000 (18:02 +0000)]
Unbreak the modules build:
- add dependencies on opt_cpu.h and opt_kstack_pages.h to the linux module
  Makefile in the i386 case. The latter is needed by an i386-only file, the
  former by the i386 implementation of linux_sysvec.c (opt_cpu.h is used for
  architecture-dependent options, so I added it only for i386, although this
  file is also generated for the alpha).
- add a dependency on opt_kstack_pages.h to the pecoff module Makefile.

22 years agoThe size argument to snprintf does not have to be backed off by one
Matt Jacob [Sat, 7 Sep 2002 16:12:52 +0000 (16:12 +0000)]
The size argument to snprintf does not have to be backed off by one
to account for a NULL byte.

Submitted by: Jacques A. Vidrine <nectar@celabo.org>

22 years agoInclude <machine/pcb.h> instead of depending on namespace pollution in
Bruce Evans [Sat, 7 Sep 2002 14:32:22 +0000 (14:32 +0000)]
Include <machine/pcb.h> instead of depending on namespace pollution in
<sys/user.h>.

22 years agofix braino..
Julian Elischer [Sat, 7 Sep 2002 12:58:44 +0000 (12:58 +0000)]
fix braino..
was clearing part of wrong thread structure..

22 years agoAllow edquota(8) to be used for setting up quotas non-interactively (add a
Maxim Sobolev [Sat, 7 Sep 2002 12:26:07 +0000 (12:26 +0000)]
Allow edquota(8) to be used for setting up quotas non-interactively (add a
new -e option for that).

Feature requested by: Alex V. Belinsky <fozzy@kievweb.net.ua>
MFC after: 1 month

22 years agoRemove #include <netinet/ip.h>.
Maxim Sobolev [Sat, 7 Sep 2002 12:22:17 +0000 (12:22 +0000)]
Remove #include <netinet/ip.h>.

Submitted by: bde

22 years agoAlso add #include <netinet/in_systm.h> before <neinet/ip.h> to fix the
Maxim Sobolev [Sat, 7 Sep 2002 12:20:47 +0000 (12:20 +0000)]
Also add #include <netinet/in_systm.h> before <neinet/ip.h> to fix the
world.

Submitted by: Brooks Davis <brooks@one-eyed-alien.net>

22 years agoAdd __BEGIN_DECLS/__END_DECLS so that c++ code can use makecontext() etc.
Doug Rabson [Sat, 7 Sep 2002 10:20:26 +0000 (10:20 +0000)]
Add __BEGIN_DECLS/__END_DECLS so that c++ code can use makecontext() etc.

22 years agoAdd an implementation of wcstok(), based on strtok_r().
Tim J. Robbins [Sat, 7 Sep 2002 08:16:57 +0000 (08:16 +0000)]
Add an implementation of wcstok(), based on strtok_r().

22 years agoTwo arrays were born from the same seeds, both grew into complementary sets
Juli Mallett [Sat, 7 Sep 2002 08:14:19 +0000 (08:14 +0000)]
Two arrays were born from the same seeds, both grew into complementary sets
of pointers to strings.  These two arrays were fixed to the same size, but one
had an implicit zeroed trailer element, which was unused because the size was
used up by the ones before said zeroed trailer element.  So the unused limb was
chopped off the over-sized-but-not-over-sized array, and everyone lived happily
ever after.

22 years agoFix a missing line in a cut/paste error.
Peter Wemm [Sat, 7 Sep 2002 07:13:08 +0000 (07:13 +0000)]
Fix a missing line in a cut/paste error.

22 years agoAutomatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)
Peter Wemm [Sat, 7 Sep 2002 07:02:12 +0000 (07:02 +0000)]
Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)
if compiling with I686_CPU as a target.  CPU_DISABLE_SSE will prevent
this from happening and will guarantee the code is not compiled in.

I am still not happy with this, but gcc is now generating code that uses
these instructions if you set CPUTYPE to p3/p4 or athlon-4/mp/xp or higher.

22 years agoAdd #include <netinet/ip.h> in attempt to fix the world.
Maxim Sobolev [Sat, 7 Sep 2002 06:16:22 +0000 (06:16 +0000)]
Add #include <netinet/ip.h> in attempt to fix the world.

22 years agoNote that siginit() does not cause every signal to be ignored only the
Chad David [Sat, 7 Sep 2002 06:07:55 +0000 (06:07 +0000)]
Note that siginit() does not cause every signal to be ignored only the
ones with a default property of SA_IGNORE, and that it acquires and
releases the processes lock.

22 years agoSupposedly linux has added a 6th syscall arg register (%ebp). I am not
Peter Wemm [Sat, 7 Sep 2002 04:59:49 +0000 (04:59 +0000)]
Supposedly linux has added a 6th syscall arg register (%ebp).  I am not
100% sure if this is enough, but it will not harm anything.

22 years agoSync prototypes with <wchar.h> with respect to the restrict qualifier.
Tim J. Robbins [Sat, 7 Sep 2002 04:07:00 +0000 (04:07 +0000)]
Sync prototypes with <wchar.h> with respect to the restrict qualifier.

22 years agoAdd restrict qualifiers where C99 permits them. All of these already had
Tim J. Robbins [Sat, 7 Sep 2002 04:03:28 +0000 (04:03 +0000)]
Add restrict qualifiers where C99 permits them. All of these already had
restrict qualifiers on their prototypes in <wchar.h>.

22 years agoAdd restrict qualifiers to wcsstr()'s arguments.
Tim J. Robbins [Sat, 7 Sep 2002 03:38:13 +0000 (03:38 +0000)]
Add restrict qualifiers to wcsstr()'s arguments.

22 years agoCall strtok_r() via a libc private name from within strtok().
Tim J. Robbins [Sat, 7 Sep 2002 02:53:19 +0000 (02:53 +0000)]
Call strtok_r() via a libc private name from within strtok().

22 years agoAdd options COMPAT_AOUT to detect future bitrot.
Peter Wemm [Sat, 7 Sep 2002 01:49:52 +0000 (01:49 +0000)]
Add options COMPAT_AOUT to detect future bitrot.

22 years agofix misplaced schedlock
Julian Elischer [Sat, 7 Sep 2002 01:48:53 +0000 (01:48 +0000)]
fix misplaced schedlock

Submitted by: davidxu@freebsd.org

22 years agoAdd COMPAT_AOUT option so that config will not yell when you try and
Peter Wemm [Sat, 7 Sep 2002 01:43:58 +0000 (01:43 +0000)]
Add COMPAT_AOUT option so that config will not yell when you try and
compile it statically.

22 years agoAdd the aout module subdir for the i386.
Peter Wemm [Sat, 7 Sep 2002 01:31:38 +0000 (01:31 +0000)]
Add the aout module subdir for the i386.

22 years agoAdd an a.out exec module.
Peter Wemm [Sat, 7 Sep 2002 01:31:21 +0000 (01:31 +0000)]
Add an a.out exec module.

22 years agoMake imgact_aout.c optional. It is i386 specific.
Peter Wemm [Sat, 7 Sep 2002 01:30:36 +0000 (01:30 +0000)]
Make imgact_aout.c optional.  It is i386 specific.

22 years agoGive this a self contained a.out coredump routine.
Peter Wemm [Sat, 7 Sep 2002 01:29:21 +0000 (01:29 +0000)]
Give this a self contained a.out coredump routine.
XXX freebsd-aout coredumps for a linux-aout binary is a bit pointless.

22 years agoZap the implementations of the i386-aout specific cpu_coredump function.
Peter Wemm [Sat, 7 Sep 2002 01:26:34 +0000 (01:26 +0000)]
Zap the implementations of the i386-aout specific cpu_coredump function.
Most of the non-i386 platforms had rather broken implementations anyway.

22 years agoAdd support for ev67 and ev45 CPUTYPEs (new in gcc3)
Kris Kennaway [Sat, 7 Sep 2002 01:26:11 +0000 (01:26 +0000)]
Add support for ev67 and ev45 CPUTYPEs (new in gcc3)

22 years agoCollect the a.out coredump code into the calling functions.
Peter Wemm [Sat, 7 Sep 2002 01:23:51 +0000 (01:23 +0000)]
Collect the a.out coredump code into the calling functions.
XXX why does pecoff dump in a.out format?

22 years agoList the new athlon CPUs supported by the CPUTYPE make variable.
Maxime Henrion [Sat, 7 Sep 2002 01:19:15 +0000 (01:19 +0000)]
List the new athlon CPUs supported by the CPUTYPE make variable.

Submitted by: kris

22 years agoUpdate to use all the new CPU optimizations of GCC3.
Maxime Henrion [Sat, 7 Sep 2002 01:15:29 +0000 (01:15 +0000)]
Update to use all the new CPU optimizations of GCC3.

Reviewed by: kris

22 years agoAdd a subclass of the PCI-PCI bridge driver that uses the PCIBIOS to
John Baldwin [Fri, 6 Sep 2002 22:19:39 +0000 (22:19 +0000)]
Add a subclass of the PCI-PCI bridge driver that uses the PCIBIOS to
route interrupts if the child bus is described in the PCIBIOS interrupt
routing table.  For child busses that are in the routing table, they do
not necessarily use a 'swizzle' on their pins on the parent bus to route
interrupts for child devices.  If the child bus is an embedded device then
the pins on the child devices can be (and usually are) directly connected
either to a PIC or to a Interrupt Router.  This fixes PCIBIOS interrupt
routing across PCI-PCI bridges for embedded devices.

22 years agoAdd a function pci_probe_route_table() that returns true if our PCI BIOS
John Baldwin [Fri, 6 Sep 2002 22:15:44 +0000 (22:15 +0000)]
Add a function pci_probe_route_table() that returns true if our PCI BIOS
supports interrupt routing and if the specified PCI bus is present in the
routing table.

22 years agoExport pcib_attach() as a "protected" for use in subclasses of the PCI-PCI
John Baldwin [Fri, 6 Sep 2002 22:14:00 +0000 (22:14 +0000)]
Export pcib_attach() as a "protected" for use in subclasses of the PCI-PCI
bridge driver.

22 years agoInclude <netinet/ip.h> to unbreak kdump. I don't know why does kdump
Maxim Sobolev [Fri, 6 Sep 2002 21:58:57 +0000 (21:58 +0000)]
Include <netinet/ip.h> to unbreak kdump. I don't know why does kdump
includes if_gre.h at all, but it does, without including ip.h before
that.

Poked by: peter
Pointy hat to: kdump(1)

22 years agoDon't include "bpf.h" when compiling on FreeBSD. We always compile in
Brooks Davis [Fri, 6 Sep 2002 20:07:50 +0000 (20:07 +0000)]
Don't include "bpf.h" when compiling on FreeBSD.  We always compile in
bpf support these days.

22 years agoBandaid for mount_nfs segfaulting with the more obscure mount options
Peter Wemm [Fri, 6 Sep 2002 19:59:29 +0000 (19:59 +0000)]
Bandaid for mount_nfs segfaulting with the more obscure mount options
in /etc/fstab.  This isn't a real fix though and I'm still not sure
why it started failing.  mount(8) breaks up the nfs args into seperate
repeated '-o option=value' arguments.  But, the altflags variable that
we use to track things is incrementally built up each time we see the
next option and shows us the cumulative set of flags, not just the
flag that we are currently looking at.  As a result, the strstr hack
for looking up flags in a giant -o opt=val,opt=val, etc string was failing
and causing a segfault.  I do not know what changed recently that caused
this to suddenly break, but the code has been rather bogus for some time.

22 years agoFix a bug where calling MD5File(3) with a zero-length file generated an
Bruce A. Mah [Fri, 6 Sep 2002 19:51:58 +0000 (19:51 +0000)]
Fix a bug where calling MD5File(3) with a zero-length file generated an
error, due to an uninitialized variable.

Reviewed by: phk, archie

22 years agoDump the $PIR table if booting verbose.
John Baldwin [Fri, 6 Sep 2002 19:25:25 +0000 (19:25 +0000)]
Dump the $PIR table if booting verbose.

22 years agoInclude some verbage about not calling exit() from functions registered
Garrett Wollman [Fri, 6 Sep 2002 19:23:28 +0000 (19:23 +0000)]
Include some verbage about not calling exit() from functions registered
by atexit().

22 years agoRemove STRNCAT (==>strncat) usage. Apparently I never read the man
Matt Jacob [Fri, 6 Sep 2002 18:32:16 +0000 (18:32 +0000)]
Remove STRNCAT (==>strncat) usage. Apparently I never read the man
page correctly and it wasn't doing what I thought it was.

Noticed by: Brooks Davis <brooks@one-eyed-alien.net>

22 years agoTsk. Now that we're not using our own locks, we have to remember
Matt Jacob [Fri, 6 Sep 2002 18:20:59 +0000 (18:20 +0000)]
Tsk. Now that we're not using our own locks, we have to remember
to grab Giant in isp_kthread so that msleep is *happy* that there's
no lock being passed to it (as tsleep turns out to be...)

22 years agoAdd 'camcontrol load' as a complement to 'camcontrol eject'.
Matthew N. Dodd [Fri, 6 Sep 2002 18:16:26 +0000 (18:16 +0000)]
Add 'camcontrol load' as a complement to 'camcontrol eject'.

Approved by:  ken
MFC after:  4 weeks

22 years agoReduce namespace pollution by staticizing everything, which doesn't need to
Maxim Sobolev [Fri, 6 Sep 2002 18:16:03 +0000 (18:16 +0000)]
Reduce namespace pollution by staticizing everything, which doesn't need to
be visible from outside of the module.

22 years agoAdd an entry for corega WL PCCL-11.
Mitsuru IWASAKI [Fri, 6 Sep 2002 17:45:36 +0000 (17:45 +0000)]
Add an entry for corega WL PCCL-11.

PR: conf/42481
Submitted by: NINOMIYA Hideyuki <nin@jp.FreeBSD.org>
Approved by: imp
MFC after: 1 week

22 years agoMake it clear that the ":C" variable modifier expects an extended
Archie Cobbs [Fri, 6 Sep 2002 17:33:11 +0000 (17:33 +0000)]
Make it clear that the ":C" variable modifier expects an extended
regular expression instead of an obsolete regular expression.
Also, cross-reference re_format(7) instead of regex(3).

MFC after: 3 days

22 years agoConnect if_gre module to the build.
Maxim Sobolev [Fri, 6 Sep 2002 17:18:53 +0000 (17:18 +0000)]
Connect if_gre module to the build.

22 years agoAdd if_gre module glue.
Maxim Sobolev [Fri, 6 Sep 2002 17:17:33 +0000 (17:17 +0000)]
Add if_gre module glue.

22 years agoConnect gre(4) to the build.
Maxim Sobolev [Fri, 6 Sep 2002 17:17:22 +0000 (17:17 +0000)]
Connect gre(4) to the build.

22 years agoAdd a new gre(4) driver, which could be used to create GRE (RFC1701)
Maxim Sobolev [Fri, 6 Sep 2002 17:12:50 +0000 (17:12 +0000)]
Add a new gre(4) driver, which could be used to create GRE (RFC1701)
and MOBILE (RFC2004) IP tunnels.

Obrained from:  NetBSD

22 years ago- Add a pci_cfgintr_valid() function to see if a given IRQ is a valid
John Baldwin [Fri, 6 Sep 2002 17:08:07 +0000 (17:08 +0000)]
- Add a pci_cfgintr_valid() function to see if a given IRQ is a valid
  IRQ for an entry in a PCIBIOS interrupt routing ($PIR) table.
- Change pci_cfgintr() to except the current IRQ of a device as a fourth
  argument and to use that IRQ for the device if it is valid.
- If an intpin entry in a $PIR entry has a link of 0, it means that that
  intpin isn't connected to anything that can trigger an interrupt.  Thus,
  test the link against 0 to find invalid entries in the table instead of
  implicitly relying on the irqs field to be zero.  In the machines I have
  looked at, intpin entries with a link of 0 often have the bits for all
  possible interrupts for PCI devices set.

22 years agoAdd more ethernet types and move AppleTalk types into proper location.
Maxim Sobolev [Fri, 6 Sep 2002 17:02:29 +0000 (17:02 +0000)]
Add more ethernet types and move AppleTalk types into proper location.

Obtained from:  NetBSD (syssrc/sys/net/ethertypes.h, rev.1.13)

22 years agoIf we are using APIC_IO tell ACPI so it can route interrupts properly.
John Baldwin [Fri, 6 Sep 2002 17:02:01 +0000 (17:02 +0000)]
If we are using APIC_IO tell ACPI so it can route interrupts properly.
This still doesn't work quite right because of other APIC_IO hacks in
the i386 PCI code.

22 years agoAttach ACPI children a bit later in attach(), specifically after performing
John Baldwin [Fri, 6 Sep 2002 17:01:06 +0000 (17:01 +0000)]
Attach ACPI children a bit later in attach(), specifically after performing
any machine dependent initialization.  This allows the MD code to set the
interrupt routing model so that PCI interrupts are routed correctly when
using an APIC or SAPIC for example.

22 years agoMake these less broken.
Maxim Sobolev [Fri, 6 Sep 2002 16:58:13 +0000 (16:58 +0000)]
Make these less broken.

22 years agoAdd support for Corega FEther CB-TXD (CardBus 100M/10M).
Mitsuru IWASAKI [Fri, 6 Sep 2002 16:38:06 +0000 (16:38 +0000)]
Add support for Corega FEther CB-TXD (CardBus 100M/10M).

22 years agoConvert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation on
Gordon Tetlow [Fri, 6 Sep 2002 16:18:05 +0000 (16:18 +0000)]
Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation on
OS-dependent case switches.

22 years agoAdd a support for a ${OSTYPE} which is set once in /etc/rc.subr. Also convert
Gordon Tetlow [Fri, 6 Sep 2002 16:15:29 +0000 (16:15 +0000)]
Add a support for a ${OSTYPE} which is set once in /etc/rc.subr. Also convert
all instances of `${CMD_OSTYPE}` to just using ${OSTYPE}. This saves us a
shell invocation on anything that is OS-dependent. I seriously doubt that we
will be spontaneously changing OS types during bootup.

22 years agoAdd support for printing out the contents of a PCI BIOS $PIR interrupt
John Baldwin [Fri, 6 Sep 2002 16:10:12 +0000 (16:10 +0000)]
Add support for printing out the contents of a PCI BIOS $PIR interrupt
routing table on the console.  Eventually it will be printed during
verbose boots.

22 years agoPrefer the physical bus number of the PCI bus as the unit of the pciX
John Baldwin [Fri, 6 Sep 2002 16:09:07 +0000 (16:09 +0000)]
Prefer the physical bus number of the PCI bus as the unit of the pciX
device created.

22 years agoAdd a helper routine acpi_SetIntrModel() to call the _PIC method to set
John Baldwin [Fri, 6 Sep 2002 16:08:08 +0000 (16:08 +0000)]
Add a helper routine acpi_SetIntrModel() to call the _PIC method to set
the interrupt model in use so that ACPI can properly route interrupts for
machines using APIC's or SAPIC's.

22 years agoMinor spelling tweak: assume "his" is actually "This".
Robert Watson [Fri, 6 Sep 2002 13:22:44 +0000 (13:22 +0000)]
Minor spelling tweak: assume "his" is actually "This".

22 years agoRemoved vestiges of the -a and -d options.
Bruce Evans [Fri, 6 Sep 2002 13:16:24 +0000 (13:16 +0000)]
Removed vestiges of the -a and -d options.

Fixed other bugs in the usage message so that it matches the man page.

22 years agoStyle: One space between "restrict" qualifier and "*".
Tim J. Robbins [Fri, 6 Sep 2002 11:24:06 +0000 (11:24 +0000)]
Style: One space between "restrict" qualifier and "*".

22 years agoExpand a contraction in the text of style(9) for consistency.
Robert Drehmel [Fri, 6 Sep 2002 10:53:57 +0000 (10:53 +0000)]
Expand a contraction in the text of style(9) for consistency.
Do not touch contractions in comments of code examples because
their usage seems to be justified by space contraints.

22 years agoRemove magicspace from reference data.
Poul-Henning Kamp [Fri, 6 Sep 2002 08:51:55 +0000 (08:51 +0000)]
Remove magicspace from reference data.

Sponsored by: DARPA & NAI Labs.