6 years agomii: regen
Sepherosa Ziehau [Wed, 18 Jul 2012 23:42:29 +0000 (07:42 +0800)]
mii: regen

6 years agomii: Add more model ids for PHYs from Broadcom
Sepherosa Ziehau [Wed, 18 Jul 2012 23:40:22 +0000 (07:40 +0800)]
mii: Add more model ids for PHYs from Broadcom

- BCM5717C should be BCM5720C according to the datasheet
- Add BCM5718C
- Add BCM54680, BCM54880, BCM54640, BCM54685 and BCM54881

6 years agoconfig_intrhook.9: Use .Dv for SI_* identifier.
Sascha Wildner [Wed, 18 Jul 2012 13:29:43 +0000 (15:29 +0200)]
config_intrhook.9: Use .Dv for SI_* identifier.

6 years agokernel/lwkt_msgport: Improve comments a bit.
Nuno Antunes [Mon, 16 Jul 2012 13:11:04 +0000 (14:11 +0100)]
kernel/lwkt_msgport: Improve comments a bit.

Reviewed-by: Sacha Wildner <swildner@>
6 years agobge: More register value definition
Sepherosa Ziehau [Wed, 18 Jul 2012 08:52:08 +0000 (16:52 +0800)]
bge: More register value definition

6 years agopci: regen pcidevs
Sepherosa Ziehau [Tue, 17 Jul 2012 23:56:34 +0000 (07:56 +0800)]
pci: regen pcidevs

6 years agopci: Add device ids for Broadcom BCM57785 and BCM5718 families
Sepherosa Ziehau [Tue, 17 Jul 2012 23:55:53 +0000 (07:55 +0800)]
pci: Add device ids for Broadcom BCM57785 and BCM5718 families

6 years agobge: Add register and chip id values for BCM57785 and BCM5718 families
Sepherosa Ziehau [Tue, 17 Jul 2012 13:29:23 +0000 (21:29 +0800)]
bge: Add register and chip id values for BCM57785 and BCM5718 families

Obtained-from: FreeBSD

6 years agoVFS quota: replace MNT_ACCOUNTING by MNT_QUOTA
François Tigeot [Sat, 14 Jul 2012 20:52:43 +0000 (22:52 +0200)]

Getting back a bit of MNT_xxx flag space

6 years agobge: All chips using BGE_PCI_PRODID_ASICREV have CPMU
Sepherosa Ziehau [Tue, 17 Jul 2012 08:44:07 +0000 (16:44 +0800)]
bge: All chips using BGE_PCI_PRODID_ASICREV have CPMU

According-to: tg3

6 years agobge: Rework RWDMA configuration
Sepherosa Ziehau [Tue, 17 Jul 2012 07:07:15 +0000 (15:07 +0800)]
bge: Rework RWDMA configuration

According-to: tg3

6 years agobge: Don't bail, even if firmware hand shaking fails.
Sepherosa Ziehau [Tue, 17 Jul 2012 01:32:18 +0000 (09:32 +0800)]
bge: Don't bail, even if firmware hand shaking fails.

Firmware loading failure is actually nothing critcal.

According-to: tg3

6 years agobge: Increase firmware hand shake timeout
Sepherosa Ziehau [Tue, 17 Jul 2012 01:29:39 +0000 (09:29 +0800)]
bge: Increase firmware hand shake timeout

This allows BMC5761 to complete firmware hand shaking w/o timeout, when the
if_bge module is not loaded and the interface is brought up by using:
ifconfig bge0 inet ip4

6 years agosh: Fix sh from exiting with newer versions of libedit
Peter Avalos [Sun, 15 Jul 2012 08:10:09 +0000 (01:10 -0700)]
sh: Fix sh from exiting with newer versions of libedit

Obtained-from:  FreeBSD 238377

6 years agosh: mdoc nits.
Peter Avalos [Sun, 15 Jul 2012 07:56:18 +0000 (00:56 -0700)]
sh:  mdoc nits.

Obtained-from:: FreeBSD 233992 235400

6 years agosh: Work with make a little better:
Peter Avalos [Sun, 15 Jul 2012 07:50:18 +0000 (00:50 -0700)]
sh: Work with make a little better:

1.  Avoid a cd back into ${.CURDIR} to run mkbuiltins when we know make
    will first cd into ${.OBJDIR}. Keep the cwd to what make sets it to.
2.  Don't tell mkbuiltins where to write to (= ${.OBJDIR}), but where to
    get sources from (= ${.CURDIR}). This to compensate for point 1.

This fixes a problem with bmake's mk files that optimize ${.OBJDIR} to
expand to "." after changing cwd, not taking into account that the
target is pretty much undoing that and not getting the full path to the
object tree anymore.

Obtained-from:  FreeBSD 235927

6 years agosh: Remove unneeded header file.
Peter Avalos [Sun, 15 Jul 2012 07:42:30 +0000 (00:42 -0700)]
sh: Remove unneeded header file.

Obtained-from:  FreeBSD 235488

6 years agosh: Fix build with -DDEBUG=2.
Peter Avalos [Sun, 15 Jul 2012 07:40:55 +0000 (00:40 -0700)]
sh: Fix build with -DDEBUG=2.

Obtained-from: FreeBSD 233792

6 years agosh: Make 'hash' return 1 if at least one utility is not found.
Peter Avalos [Sun, 15 Jul 2012 07:31:52 +0000 (00:31 -0700)]
sh: Make 'hash' return 1 if at least one utility is not found.

Obtained-from: FreeBSD 231535

6 years agoUpdate the pciconf(8) database.
Sascha Wildner [Sun, 15 Jul 2012 06:44:27 +0000 (08:44 +0200)]
Update the pciconf(8) database.

July 11, 2012 snapshot from http://pciids.sourceforge.net/

6 years agokmod.mk: Update/add comments for FIRMWS & FIRMWARE_LICENSE (from FreeBSD).
Sascha Wildner [Sun, 15 Jul 2012 05:47:57 +0000 (07:47 +0200)]
kmod.mk: Update/add comments for FIRMWS & FIRMWARE_LICENSE (from FreeBSD).

6 years agogcc41/gcc44: Remove a modification to exclude -Wpointer-sign from -Wall.
Sascha Wildner [Sat, 14 Jul 2012 16:19:13 +0000 (18:19 +0200)]
gcc41/gcc44: Remove a modification to exclude -Wpointer-sign from -Wall.

We had this as a local change in our compilers but the problem with this
approach is that it needs to be added to each future compiler we support.

This isn't so much a problem with the compilers we have in base but with
those from pkgsrc that we support via CCVER and compilers.conf(5).

Instead, add -Wno-pointer-sign to our Makefiles whenever -Wall comes into

6 years agoRemove bogus (void *) casts.
Sascha Wildner [Sat, 14 Jul 2012 03:39:42 +0000 (05:39 +0200)]
Remove bogus (void *) casts.

These are the cases where the function's prototype declares the
argument as void *.

6 years agoamr.4: Remove an unneeded .Pp
Sascha Wildner [Fri, 13 Jul 2012 15:46:45 +0000 (17:46 +0200)]
amr.4: Remove an unneeded .Pp

6 years agorc.d: rename vfs_accounting to vfs_quota
François Tigeot [Thu, 12 Jul 2012 20:19:04 +0000 (22:19 +0200)]
rc.d: rename vfs_accounting to vfs_quota

Rename the rc.d vfs_accounting_* variables to vfs_quota_* as well

6 years agotrek(6): Nuke the -a option along with the logfile argument (all unused).
Sascha Wildner [Thu, 12 Jul 2012 11:54:20 +0000 (13:54 +0200)]
trek(6): Nuke the -a option along with the logfile argument (all unused).

6 years agogames: Fix -Werror for gcc47.
Sascha Wildner [Thu, 12 Jul 2012 11:41:23 +0000 (13:41 +0200)]
games: Fix -Werror for gcc47.

* Remove unused variables and mark a few things __unused.

* Properly use socklen_t.

* Remove trek(6)'s undocumented -p option (which did nothing).

6 years agox86_64 FPU: Set 64-bit precision for fadd/fsub/fsqrt etc.
John Marino [Thu, 12 Jul 2012 11:15:12 +0000 (13:15 +0200)]
x86_64 FPU: Set 64-bit precision for fadd/fsub/fsqrt etc.

On AMD64, GCC and the ABI expects the x87 unit to be running in 80/64
mode rather than 64/53 mode seen on i386.  This corrects errors seen
in long double tests involving runtime calculations.  Previously, the
results of these runtime calculations would get rounded due to use
of 53-bit mantissas.

6 years agosysctl(8): Fix handling of uquad type sysctls (wrong variable was taken).
Sascha Wildner [Thu, 12 Jul 2012 11:11:37 +0000 (13:11 +0200)]
sysctl(8): Fix handling of uquad type sysctls (wrong variable was taken).

6 years agobge: Correct PHY test control register value name
Sepherosa Ziehau [Thu, 12 Jul 2012 07:05:59 +0000 (15:05 +0800)]
bge: Correct PHY test control register value name

6 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Thu, 12 Jul 2012 02:50:40 +0000 (19:50 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

6 years agokernel - Fix MP race in sysv semaphore code (2)
Matthew Dillon [Thu, 12 Jul 2012 02:50:13 +0000 (19:50 -0700)]
kernel - Fix MP race in sysv semaphore code (2)

* Add missing changes to proc.h

Reported-by: sephe
6 years agobge: Force 128 bytes Max Payload Size on old PCI-E chips
Sepherosa Ziehau [Thu, 12 Jul 2012 02:49:27 +0000 (10:49 +0800)]
bge: Force 128 bytes Max Payload Size on old PCI-E chips

According-to: tg3

6 years agopci: Define Max Payload Size for device control register
Sepherosa Ziehau [Thu, 12 Jul 2012 02:48:49 +0000 (10:48 +0800)]
pci: Define Max Payload Size for device control register

6 years agobge: Avoid using magic number for PCI-E PHY Test Control register
Sepherosa Ziehau [Thu, 12 Jul 2012 02:02:06 +0000 (10:02 +0800)]
bge: Avoid using magic number for PCI-E PHY Test Control register

6 years agohda: Disable "No Snoop" on PCI express chips
Sepherosa Ziehau [Thu, 12 Jul 2012 01:28:07 +0000 (09:28 +0800)]
hda: Disable "No Snoop" on PCI express chips

Tested-by: ftigeot@
6 years agobge: Add MSI support
Sepherosa Ziehau [Mon, 9 Jul 2012 04:32:55 +0000 (12:32 +0800)]
bge: Add MSI support

- Enable MSI on BCM5750+ chips.
- Enable "oneshot MSI", which does not require driver to disable interrupt
  in interrupt handler, on BCM5755+ and BCM5906 chips.

According-to: tg3

- Always clear INTxDIS in PCI command.

Obtained-from: FreeBSD

6 years agokernel - Fix MP race in sysv semaphore code
Matthew Dillon [Wed, 11 Jul 2012 22:29:55 +0000 (15:29 -0700)]
kernel - Fix MP race in sysv semaphore code

* Fix a serious MP race in the sysv semaphore code due to a lack of
  protection of the semu* global structures.

* The race occurs during semaphore allocation and deallocation vs ANY
  exiting process (even if it does not use semaphores), potentially
  leading to a live-lock in the semu_list scan code.

  The live-lock will prevent the cpu it occurs on from being able to
  switch to another kernel or user thread.  In the sample case it
  stopped pagedaemon from running, creating a backlog in the I/O
  subsystem which locked the computer up.

Reported-by: Peter Avalos
6 years agokernel/smb: Fix a duplicated check (from FreeBSD).
Sascha Wildner [Wed, 11 Jul 2012 22:23:53 +0000 (00:23 +0200)]
kernel/smb: Fix a duplicated check (from FreeBSD).

6 years agoamr(4): Remove an extra newline in a debug message.
Sascha Wildner [Wed, 11 Jul 2012 15:32:59 +0000 (17:32 +0200)]
amr(4): Remove an extra newline in a debug message.

6 years agoamr(4): Make AMR_DEBUG a kernel configuration option.
Sascha Wildner [Wed, 11 Jul 2012 15:32:08 +0000 (17:32 +0200)]
amr(4): Make AMR_DEBUG a kernel configuration option.

6 years agopam.d: Delete some files that don't belong.
Peter Avalos [Wed, 11 Jul 2012 10:25:29 +0000 (03:25 -0700)]
pam.d:  Delete some files that don't belong.

While I'm here, fix some whitespace issues and pam_ssh examples (add

6 years agopam_exec: Use program exit status as return code
Peter Avalos [Wed, 11 Jul 2012 10:01:44 +0000 (03:01 -0700)]
pam_exec: Use program exit status as return code

pam_exec(8) now accepts a new option "return_prog_exit_status". When
set, the program exit status is used as the pam_exec return code. It
allows the program to tell why the step failed (eg. user unknown).
However, if it exits with a code not allowed by the calling PAM service
module function (see $PAM_SM_FUNC below), a warning is logged and
PAM_SERVICE_ERR is returned.

Obtained-from:  FreeBSD

6 years agopam_ssh: Fix segfault with SSH 1 keys.
Peter Avalos [Wed, 11 Jul 2012 09:32:52 +0000 (02:32 -0700)]
pam_ssh:  Fix segfault with SSH 1 keys.

Obtained-from:  FreeBSD

6 years agoUpdate files for OpenPAM Micrampelis import.
Peter Avalos [Wed, 11 Jul 2012 09:12:36 +0000 (02:12 -0700)]
Update files for OpenPAM Micrampelis import.

6 years agoMerge branch 'vendor/OPENPAM'
Peter Avalos [Wed, 11 Jul 2012 08:47:35 +0000 (01:47 -0700)]
Merge branch 'vendor/OPENPAM'

6 years agoImport OpenPAM Micrampelis.
Peter Avalos [Wed, 11 Jul 2012 08:43:11 +0000 (01:43 -0700)]
Import OpenPAM Micrampelis.

See HISTORY for the details.

6 years agoUpdate files for xz-5.0.4 import.
Peter Avalos [Wed, 11 Jul 2012 07:23:14 +0000 (00:23 -0700)]
Update files for xz-5.0.4 import.

6 years agoMerge branch 'vendor/XZ'
Peter Avalos [Wed, 11 Jul 2012 07:20:07 +0000 (00:20 -0700)]
Merge branch 'vendor/XZ'

6 years agoImport xz-5.0.4.
Peter Avalos [Wed, 11 Jul 2012 07:16:52 +0000 (00:16 -0700)]
Import xz-5.0.4.

    * liblzma:

        - Fix lzma_index_init(). It could crash if memory allocation

        - Fix the possibility of an incorrect LZMA_BUF_ERROR when a BCJ
          filter is used and the application only provides exactly as
          much output space as is the uncompressed size of the file.

    * Fix "xz -lvv foo.xz". It could crash on some corrupted files.

    * Fix output of "xz --robot -lv" and "xz --robot -lvv" which
      incorrectly printed the filename also in the "foo (x/x)" format.

    * Fix exit status of "xzdiff foo.xz bar.xz".

    * Fix exit status of "xzgrep foo binary_file".

6 years agoMerge branch 'vendor/TNFTP'
Peter Avalos [Wed, 11 Jul 2012 07:07:04 +0000 (00:07 -0700)]
Merge branch 'vendor/TNFTP'

6 years agoftp: Sync with NetBSD:
Peter Avalos [Wed, 11 Jul 2012 06:45:26 +0000 (23:45 -0700)]
ftp:  Sync with NetBSD:

make -R work the same in ftp:// like it does for http:// (i.e. work if
there is no local file).

Don't display expected EHOSTUNREACH for all but
the last connect attempts in terse mode.

When given an URL that contains "://" but is not recognised,
print an error message.

Remove unnecessary Bk/Ek pairs from SYNOPSIS.

6 years agoUpdate files for libarchive-3.0.4 import.
Peter Avalos [Wed, 11 Jul 2012 04:53:25 +0000 (21:53 -0700)]
Update files for libarchive-3.0.4 import.

6 years agoMerge branch 'vendor/LIBARCHIVE'
Peter Avalos [Wed, 11 Jul 2012 03:39:24 +0000 (20:39 -0700)]
Merge branch 'vendor/LIBARCHIVE'

6 years agoImport libarchive-3.0.4.
Peter Avalos [Wed, 11 Jul 2012 03:25:58 +0000 (20:25 -0700)]
Import libarchive-3.0.4.

6 years agokernel - Fix missing lock in pbuf update (minor)
Matthew Dillon [Wed, 11 Jul 2012 03:15:37 +0000 (20:15 -0700)]
kernel - Fix missing lock in pbuf update (minor)

* Fix a small timing window in an update of a counter.

* This bug is not known to have been hit by anyone, due to default
  settings for asynchronous I/O.

6 years agoUpdate files for libpcap-1.3.0 and tcpdump-4.3.0 imports.
Peter Avalos [Wed, 11 Jul 2012 02:29:26 +0000 (19:29 -0700)]
Update files for libpcap-1.3.0 and tcpdump-4.3.0 imports.

6 years agoMerge branch 'vendor/TCPDUMP'
Peter Avalos [Wed, 11 Jul 2012 01:46:52 +0000 (18:46 -0700)]
Merge branch 'vendor/TCPDUMP'

6 years agoMerge branch 'vendor/LIBPCAP'
Peter Avalos [Wed, 11 Jul 2012 01:36:31 +0000 (18:36 -0700)]
Merge branch 'vendor/LIBPCAP'

6 years agoImport tcpdump-4.3.0. vendor/TCPDUMP
Peter Avalos [Wed, 11 Jul 2012 01:22:41 +0000 (18:22 -0700)]
Import tcpdump-4.3.0.

See CHANGES for details.

6 years agoImport libpcap-1.3.0.
Peter Avalos [Wed, 11 Jul 2012 01:14:22 +0000 (18:14 -0700)]
Import libpcap-1.3.0.

See CHANGES for the details.

6 years agoCCVER: Add /usr/pkgsrc/lang/gcc-aux as 'gcc47'
John Marino [Mon, 9 Jul 2012 15:27:54 +0000 (17:27 +0200)]
CCVER: Add /usr/pkgsrc/lang/gcc-aux as 'gcc47'

There are two gcc-4.7.x packages in pkgsrc that will build gcc 4.7-based
compilers on Dragonfly.  One is located at lang/gcc47 and the other is
located at lang/gcc-aux.  Both have been patched by myself, but gcc-aux
seems to work better, especially with regards to link-time optimization.

Consequently, a new valid value for CCVER has been created, "gcc47", which
references lang/gcc-aux while building world and kernel.  Both will
compile, and the produced kernel will boot, but there are some network
issues.  Consequently, CCVER=gcc47 should only be used by developers who
have the express intent to fix any issues the arise from compiling
DragonFly sources with the latest GCC compiler.  Normal users looking
for non-base GCC compilers should stick with CCVER=gcc46 for now.

6 years agoLibc: Remove i386 gcc hack concerning popcountsi2
John Marino [Mon, 9 Jul 2012 17:59:01 +0000 (19:59 +0200)]
Libc: Remove i386 gcc hack concerning popcountsi2

Ref: 0cfd7e44b3676f6a43164acab0aaea46365b5c53
Ref: 4b548429247a10382073a0c227af306272160d8d

Back in Oct 2010, a "horrible hack" was added to libc in order to fix a
Firefox bug concerning a late dynamic link of a libcairo.so.2 symbol.  A
weak reference to popcountsi2 was added to i386 libc in order to force it
to be available.

Up through gcc 4.6, this hack worked because the symbol is global in the
libgcc.a library, but it's a hidden symbol starting with the gcc 4.7
version of libgcc.a.  This causes a build failure on bin/rmail while
building world with gcc 4.7.

Since Oct 2010, rtld has undergone significant changes.
With the hope that the issue is obsolete, the hack is being removed.
This allows gcc 4.7 to compile DragonFly world and kernel source.
We'll have to track firefox manually to verify the issue the hack fixed
doesn't return.

6 years agold/gold: Add link-time optimization plugin support
John Marino [Mon, 25 Jun 2012 16:39:37 +0000 (18:39 +0200)]
ld/gold: Add link-time optimization plugin support

The binutils 2.22 ld.bfd and ld.gold linkers were not configured to support
link-time optimization plugins (-plugin switch) previously.  This changeset
adds -plugin support to both linkers.  The ld.bfd linker was previously
built statically, but it was necessary to change this to use the libc and
libz shared libraries because the -plugin option requires the dynamic
function dlopen().

The same update was not applied to binutils 2.21 linkers.

6 years agokernel: Add descriptions to the intrhooks that miss them.
Sascha Wildner [Tue, 10 Jul 2012 16:33:44 +0000 (18:33 +0200)]
kernel: Add descriptions to the intrhooks that miss them.

The description is printed in the

"**WARNING** waiting for the following device to finish configuring: ..."

messages we occasionally see, from run_interrupt_driven_config_hooks(),
most of the times for xpt.

Some of them had been accidentally removed in past synchronizations with
FreeBSD (mostly by me).

6 years agoconfig_intrhook.9: Update struct intr_config_hook to ours.
Sascha Wildner [Tue, 10 Jul 2012 14:16:13 +0000 (16:16 +0200)]
config_intrhook.9: Update struct intr_config_hook to ours.

6 years ago<sys/kernel.h>: Remove unused sysinit id.
Sascha Wildner [Tue, 10 Jul 2012 13:46:47 +0000 (15:46 +0200)]
<sys/kernel.h>: Remove unused sysinit id.

6 years agoamr(4): Remove unused code.
Sascha Wildner [Tue, 10 Jul 2012 07:23:57 +0000 (09:23 +0200)]
amr(4): Remove unused code.

6 years agoamr(4): Remove some old code.
Sascha Wildner [Mon, 9 Jul 2012 19:43:46 +0000 (21:43 +0200)]
amr(4): Remove some old code.

6 years agoBring in the config_intrhook(9) manual page from FreeBSD.
Sascha Wildner [Mon, 9 Jul 2012 19:07:13 +0000 (21:07 +0200)]
Bring in the config_intrhook(9) manual page from FreeBSD.

6 years agokernel/amrp: Add a missing dependency.
Sascha Wildner [Mon, 9 Jul 2012 18:06:00 +0000 (20:06 +0200)]
kernel/amrp: Add a missing dependency.

6 years agotwa(4): Remove an extra : in a message (it will be automatically added).
Sascha Wildner [Mon, 9 Jul 2012 16:14:10 +0000 (18:14 +0200)]
twa(4): Remove an extra : in a message (it will be automatically added).

6 years agotwa(4): Request a bus scan after attaching the driver to CAM.
Sascha Wildner [Mon, 9 Jul 2012 16:04:04 +0000 (18:04 +0200)]
twa(4): Request a bus scan after attaching the driver to CAM.

Our CAM doesn't (yet) do this by default.

This fixes disk detection upon kldload.

Taken-from: FreeBSD (which has since moved it to CAM).

While here, add a cam_simq_release() I forgot and remove a comment that
does not apply to us.

6 years agotwa(4)/twe(4): Move dev_ops_remove_minor() after destroy_dev().
Sascha Wildner [Sun, 8 Jul 2012 23:07:10 +0000 (01:07 +0200)]
twa(4)/twe(4): Move dev_ops_remove_minor() after destroy_dev().

Fixes crash on module unload.

6 years agotwa(4): Really stop the callouts.
Sascha Wildner [Sun, 8 Jul 2012 23:05:37 +0000 (01:05 +0200)]
twa(4): Really stop the callouts.

6 years agotwa(4): Remove some unused code.
Sascha Wildner [Sun, 8 Jul 2012 21:58:08 +0000 (23:58 +0200)]
twa(4): Remove some unused code.

6 years agotwa(4): Add MSI support.
Sascha Wildner [Sun, 8 Jul 2012 21:33:20 +0000 (23:33 +0200)]
twa(4): Add MSI support.

It's off by default, set hw.twa.msi.enable to 1 in /boot/loader.conf to
try it out.

It works here with a 3ware 9650SE-2LP.

6 years agotwa(4): Add MODULE_VERSION.
Sascha Wildner [Sun, 8 Jul 2012 21:01:19 +0000 (23:01 +0200)]

6 years agotwa(4): Pass INTR_MPSAFE when setting up the interrupt.
Sascha Wildner [Sun, 8 Jul 2012 20:39:48 +0000 (22:39 +0200)]
twa(4): Pass INTR_MPSAFE when setting up the interrupt.

I removed it by mistake during porting.

While here, add some little fixes from FreeBSD.

Tested-with: 3ware 9650SE-2LP

6 years agolibkern - Add memcchr(9).
Antonio Huete Jimenez [Sun, 8 Jul 2012 12:37:50 +0000 (14:37 +0200)]
libkern - Add memcchr(9).

* It can be used for filesystem bitmap operations.
* FreeBSD introduced it to replace calls to skpc().
* It does compare entire words instead of single bytes.

Taken from: FreeBSD-SVN 229198

6 years agomdoc.local: Add FreeBSD 10.0.
Antonio Huete Jimenez [Sun, 8 Jul 2012 10:59:13 +0000 (12:59 +0200)]
mdoc.local: Add FreeBSD 10.0.

6 years agobge: Split if_bgereg.h into if_bgereg.h and if_bgevar.h
Sepherosa Ziehau [Sun, 8 Jul 2012 09:15:57 +0000 (17:15 +0800)]
bge: Split if_bgereg.h into if_bgereg.h and if_bgevar.h

if_bgevar.h conains only software related structs and macros

6 years agoif_bgereg.h: Add header guardian
Sepherosa Ziehau [Sun, 8 Jul 2012 05:33:06 +0000 (13:33 +0800)]
if_bgereg.h: Add header guardian

6 years agobge: Cosmetic cleanup
Sepherosa Ziehau [Sun, 8 Jul 2012 05:28:43 +0000 (13:28 +0800)]
bge: Cosmetic cleanup

6 years agotermcap.5: Bring in some mdoc fixes from FreeBSD.
Sascha Wildner [Sat, 7 Jul 2012 23:29:54 +0000 (01:29 +0200)]
termcap.5: Bring in some mdoc fixes from FreeBSD.

6 years agosln.4: Add ifmedia(4) reference.
Sascha Wildner [Sat, 7 Jul 2012 22:49:45 +0000 (00:49 +0200)]
sln.4: Add ifmedia(4) reference.

6 years agobce: Enabling MSI or MSI-X in interrupt handler does not need to mask first
Sepherosa Ziehau [Sat, 7 Jul 2012 14:16:49 +0000 (22:16 +0800)]
bce: Enabling MSI or MSI-X in interrupt handler does not need to mask first

This reduce number of register writing operation during interrupt handling

According-to: bnx2

6 years agobge: Remove unused structs and macros
Sepherosa Ziehau [Sat, 7 Jul 2012 09:08:26 +0000 (17:08 +0800)]
bge: Remove unused structs and macros

6 years agobrgphy: Remove debug prints
Sepherosa Ziehau [Sat, 7 Jul 2012 08:34:47 +0000 (16:34 +0800)]
brgphy: Remove debug prints

6 years agobge/bce: Use mii private data to pass various flags to brgphy
Sepherosa Ziehau [Sat, 7 Jul 2012 08:15:29 +0000 (16:15 +0800)]
bge/bce: Use mii private data to pass various flags to brgphy

This unbreaks if_name support on bce(4) and bge(4).  And this mechanism
is cleaner and easier to extend than checking if_name and accessing
NIC drivers' softc.

6 years agomii: Add private data tag and save private data into mii_softc
Sepherosa Ziehau [Sat, 7 Jul 2012 07:12:30 +0000 (15:12 +0800)]
mii: Add private data tag and save private data into mii_softc

While im here, add comment for the fields of mii_probe_args

6 years agoigb: Add comment for WTHRESH and header write back mode.
Sepherosa Ziehau [Sat, 7 Jul 2012 06:35:52 +0000 (14:35 +0800)]
igb: Add comment for WTHRESH and header write back mode.

6 years agoigb: Update comment about errata number
Sepherosa Ziehau [Sat, 7 Jul 2012 06:16:03 +0000 (14:16 +0800)]
igb: Update comment about errata number

6 years agoem/emx: Update comment concerning errata number
Sepherosa Ziehau [Sat, 7 Jul 2012 06:11:24 +0000 (14:11 +0800)]
em/emx: Update comment concerning errata number

6 years agoem: Fix "Missing Interrupt Following ICR read" errata
Sepherosa Ziehau [Sat, 7 Jul 2012 05:47:43 +0000 (13:47 +0800)]
em: Fix "Missing Interrupt Following ICR read" errata

IMS should be set to 0 before reading ICR.  It should be noted that
once IMS is 0, ICR.INT_ASSERTED will not be set, which is not mentioned
in the datasheet.

This errata exists on 82571, 82572, 82573, 82574 and 82583.  And the fix
is needed only if the legacy interrupt is used and the interrupt line is
shared with other devices.

hw.emX.irq.unshared tunable is added to give a hint to the driver that
the legacy interrupt is not shared with other devices.

6 years agoemx: Fix "Missing Interrupt Following ICR read" errata
Sepherosa Ziehau [Sat, 7 Jul 2012 05:24:52 +0000 (13:24 +0800)]
emx: Fix "Missing Interrupt Following ICR read" errata

IMS should be set to 0 before reading ICR.  It should be noted that
once IMS is 0, ICR.INT_ASSERTED will not be set, which is not mentioned
in the datasheet.

This errata exists on 82571, 82572, 82573, 82574 and 82583, while 82583
is not covered by emx(4).  And the fix is needed only if the legacy
interrupt is used and the interrupt line is shared with other devices.

hw.emxX.irq.unshared tunable is added to give a hint to the driver that
the legacy interrupt is not shared with other devices.

6 years agoigb: Move shared interrupt configure to igb_alloc_intr()
Sepherosa Ziehau [Fri, 6 Jul 2012 07:10:55 +0000 (15:10 +0800)]
igb: Move shared interrupt configure to igb_alloc_intr()

So resource allocation flags could be setup properly

6 years agokernel/vm: Remove some unused variables.
Sascha Wildner [Fri, 6 Jul 2012 23:14:11 +0000 (01:14 +0200)]
kernel/vm: Remove some unused variables.

6 years agokernel/gpio: Return EINVAL for GPIOPINUNSET and simplify a bit.
Sascha Wildner [Fri, 6 Jul 2012 17:43:50 +0000 (19:43 +0200)]
kernel/gpio: Return EINVAL for GPIOPINUNSET and simplify a bit.

6 years agopst(4): Remove a bogus (commented out) debug option from the Makefile.
Sascha Wildner [Fri, 6 Jul 2012 12:37:20 +0000 (14:37 +0200)]
pst(4): Remove a bogus (commented out) debug option from the Makefile.