]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoMap and report actual video memory we need.
jkim [Sat, 6 Feb 2010 00:52:42 +0000 (00:52 +0000)]
Map and report actual video memory we need.

14 years agoCorrect two typos.
delphij [Sat, 6 Feb 2010 00:25:46 +0000 (00:25 +0000)]
Correct two typos.

Reported by: Brandon Falk <falkman gamozo org>
MFC after: 1 week

14 years agoRemove two files that are not needed by FreeBSD.
delphij [Fri, 5 Feb 2010 23:17:59 +0000 (23:17 +0000)]
Remove two files that are not needed by FreeBSD.

Approved by: pjd
MFC after: 2 weeks

14 years agoFix gcore so that it can have the '-s' flag without hanging.
mjacob [Fri, 5 Feb 2010 18:28:43 +0000 (18:28 +0000)]
Fix gcore so that it can have the '-s' flag without hanging.

14 years agoFix a bug in previous revision.
delphij [Fri, 5 Feb 2010 18:17:17 +0000 (18:17 +0000)]
Fix a bug in previous revision.

The bc(1) program may need to deal with files when it's being run in
interactive mode, so we can not blindly use interactive mode (in turn
use libedit) but need to check if the input source is really the standard
input.

This commit should fix a regression where 'bc -l' would not parse the
mathlib.

Reported by: trasz

14 years agoReplace some homegrown functions with better/correct ones.
jkim [Fri, 5 Feb 2010 18:00:24 +0000 (18:00 +0000)]
Replace some homegrown functions with better/correct ones.

14 years agoUse new helper functions to set PCIe max read request size.
mav [Fri, 5 Feb 2010 17:20:48 +0000 (17:20 +0000)]
Use new helper functions to set PCIe max read request size.

14 years agoAdd pci_get|set_max_read_req() helper functions to control maximum PCIe
mav [Fri, 5 Feb 2010 17:18:48 +0000 (17:18 +0000)]
Add pci_get|set_max_read_req() helper functions to control maximum PCIe
read request size.

Reviewed by: jhb@

14 years agoAdd a description of supported PowerPC hardware to the hardware notes.
nwhitehorn [Fri, 5 Feb 2010 16:41:19 +0000 (16:41 +0000)]
Add a description of supported PowerPC hardware to the hardware notes.

14 years agoReport SATA300 chips also as SATA.
mav [Fri, 5 Feb 2010 14:41:18 +0000 (14:41 +0000)]
Report SATA300 chips also as SATA.

14 years agoWhen hacking INQUIRY result, make sure that it is right INQUIRY and there
mav [Fri, 5 Feb 2010 12:40:18 +0000 (12:40 +0000)]
When hacking INQUIRY result, make sure that it is right INQUIRY and there
is enough of result to hack.

14 years agoCorrect a comment - we are not setting the exception level but rather are
neel [Fri, 5 Feb 2010 06:36:03 +0000 (06:36 +0000)]
Correct a comment - we are not setting the exception level but rather are
disabling interrupts.

Simplify register usage - we can directly load 'curpcb' into 'k1' after
interrupts are disabled. There is no need to do so indirectly through 'a1'.

14 years agoInitialize interrupt controller early on.
neel [Fri, 5 Feb 2010 03:22:04 +0000 (03:22 +0000)]
Initialize interrupt controller early on.

14 years agoReimplement all functions to access the system control unit in C.
neel [Fri, 5 Feb 2010 03:20:47 +0000 (03:20 +0000)]
Reimplement all functions to access the system control unit in C.

The only reason we need to have the sb_load64() and sb_store64()
functions in assembly is to cheat the compiler and generate the
'ld' and 'sd' instructions which it otherwise will not do when
compiling for a 32-bit architecture. There are some 64-bit
registers in the SCD unit that must be accessed using 64-bit
load and store instructions.

14 years agostyle: don't need to use braces for single line control statements.
neel [Fri, 5 Feb 2010 02:40:42 +0000 (02:40 +0000)]
style: don't need to use braces for single line control statements.

14 years agoThe ZTE MF633R modem has a different type of cdrom driver disk, add the product
thompsa [Fri, 5 Feb 2010 01:47:43 +0000 (01:47 +0000)]
The ZTE MF633R modem has a different type of cdrom driver disk, add the product
ID and use a standard scsi eject.

Reported by: Patrick Lamaiziere
MFC after: 3 days

14 years agoProperly name the 0x0016 ZTE product as MF633R now that its known.
thompsa [Thu, 4 Feb 2010 23:34:35 +0000 (23:34 +0000)]
Properly name the 0x0016 ZTE product as MF633R now that its known.

14 years agoAdd the long missing "destroy" option.
mjacob [Thu, 4 Feb 2010 21:51:33 +0000 (21:51 +0000)]
Add the long missing "destroy" option.

MFC after: 2 weeks

14 years agoOpen provider for writting when we find the right one. Opening too much
pjd [Thu, 4 Feb 2010 21:11:44 +0000 (21:11 +0000)]
Open provider for writting when we find the right one. Opening too much
providers for writing provokes huge traffic related to taste events send
by GEOM on close. This can lead to various problems with opening GEOM
providers that are created on top of other GEOM providers.

Reorted by: Kurt Touet <ktouet@gmail.com>, mr
Tested by: mr, Baginski Darren <kickbsd@ya.ru>
MFC after: 2 weeks

14 years agoRestore the checksum received before processing the packet.
tuexen [Thu, 4 Feb 2010 21:02:29 +0000 (21:02 +0000)]
Restore the checksum received before processing the packet.

MFC after: 1 week

14 years agoOn probe error, if restart requested, skip any retries and recovery.
mav [Thu, 4 Feb 2010 18:56:38 +0000 (18:56 +0000)]
On probe error, if restart requested, skip any retries and recovery.
Just restart probe from the beginning immediately.

14 years agoUse libedit when interacting with tty, which provided history
delphij [Thu, 4 Feb 2010 18:43:05 +0000 (18:43 +0000)]
Use libedit when interacting with tty, which provided history
functionality, etc. as did by GNU bc.

This also fixes an issue where BSDL bc can not handle very long
line.

Reported by: imp
Reviewed by: imp

14 years agoIntroduce '[ipaddr]:path' notation.
ume [Thu, 4 Feb 2010 15:17:49 +0000 (15:17 +0000)]
Introduce '[ipaddr]:path' notation.
Since the existing implementation searches ':' backward, a path which
includes ':' could not be mounted.  You can now mount such path by
enclosing an IP address by '[]'.
Though we should change to search ':' forward, it will break
'ipv6addr:path' which is currently working.  So, it still searches ':'
backward, at least for now.

MFC after: 2 weeks

14 years agoReturn CAM_RELEASE_SIMQ flag only when it is needed, when SIM really
mav [Thu, 4 Feb 2010 14:40:08 +0000 (14:40 +0000)]
Return CAM_RELEASE_SIMQ flag only when it is needed, when SIM really
was frozen before and should be released.

14 years agoShortening a passphrase caused wrong authentication key to be used.
ru [Thu, 4 Feb 2010 11:43:22 +0000 (11:43 +0000)]
Shortening a passphrase caused wrong authentication key to be used.
Fix this in a FreeBSD and OpenBSD compatible way.

MFC after: 3 days

14 years agoMark up "unsigned char".
ru [Thu, 4 Feb 2010 11:23:28 +0000 (11:23 +0000)]
Mark up "unsigned char".

14 years agoDo not release device, when changing number of openings.
mav [Thu, 4 Feb 2010 08:54:14 +0000 (08:54 +0000)]
Do not release device, when changing number of openings.

14 years agoInstead of spamming the console on each curvnet recursion event, print
zec [Thu, 4 Feb 2010 07:55:42 +0000 (07:55 +0000)]
Instead of spamming the console on each curvnet recursion event, print
out each such call graph only once, along with a stack backtrace.  This
should make kernels built with VNET_DEBUG reasonably usable again in
busy / production environments.

Introduce a new DDB command "show vnetrcrs" which dumps the whole log
of distinctive curvnet recursion events.  This might be useful when
recursion reports get burried / lost too deep in the message buffer.
In the later case stack backtraces are not available.

Reviewed by: bz
MFC after: 3 days

14 years agoSince APM is a legacy technology, that won't be adapted to other
imp [Thu, 4 Feb 2010 07:26:26 +0000 (07:26 +0000)]
Since APM is a legacy technology, that won't be adapted to other
platforms, move the test for i386 from the Makefile to powerd.c.  The
powerpc specific checks are already done this way...

14 years agoArm doesn't seem to need such kit gloves. Bump the warnings to 3 here
imp [Thu, 4 Feb 2010 07:18:19 +0000 (07:18 +0000)]
Arm doesn't seem to need such kit gloves.  Bump the warnings to 3 here
as well.

14 years agoAlways compile in the speaker code. There's little savings by
imp [Thu, 4 Feb 2010 07:08:06 +0000 (07:08 +0000)]
Always compile in the speaker code.  There's little savings by
omitting it, and other platforms may implement /dev/speaker in the
future.

14 years agoYet another target mode compilation error.
mjacob [Thu, 4 Feb 2010 06:45:14 +0000 (06:45 +0000)]
Yet another target mode compilation error.

14 years agoCompile SWARM with KTRACE support.
neel [Thu, 4 Feb 2010 06:44:42 +0000 (06:44 +0000)]
Compile SWARM with KTRACE support.

14 years agoGet system call tracing using ktrace working for mips.
neel [Thu, 4 Feb 2010 06:42:30 +0000 (06:42 +0000)]
Get system call tracing using ktrace working for mips.

14 years agoReinstate the ptrace patch to restore the 'gp' register after calling
neel [Thu, 4 Feb 2010 05:49:59 +0000 (05:49 +0000)]
Reinstate the ptrace patch to restore the 'gp' register after calling
a function. I made a mistake in assuming that the .cprestore directive
will cause the assembler to automatically restore 'gp' after the 'jalr'.

The .cprestore directive does its magic only after 'jal' and 'bal'
instructions - not the 'jalr'.

Pointed out by: c.jayachandran@gmail.com

14 years agoClean up all places in exception.S that fiddle with 'pcpup' directly. We now
neel [Thu, 4 Feb 2010 05:25:59 +0000 (05:25 +0000)]
Clean up all places in exception.S that fiddle with 'pcpup' directly. We now
use the GET_CPU_PCPU() macro exclusively.

This isolates the users of pcpu data from its implementation details.

Reviewed by: imp

14 years agoFix target mode compilation problem with previous delta
mjacob [Thu, 4 Feb 2010 00:40:12 +0000 (00:40 +0000)]
Fix target mode compilation problem with previous delta

14 years agostatic'ify function prototypes and convert K&R to ANSI.
delphij [Wed, 3 Feb 2010 23:59:52 +0000 (23:59 +0000)]
static'ify function prototypes and convert K&R to ANSI.

MFC after: 1 month

14 years agopukeText is an internal function so define it as static rather than
delphij [Wed, 3 Feb 2010 23:58:00 +0000 (23:58 +0000)]
pukeText is an internal function so define it as static rather than
exporting it.

MFC after: 1 month

14 years agoPlug two memory leaks in error case.
delphij [Wed, 3 Feb 2010 23:56:12 +0000 (23:56 +0000)]
Plug two memory leaks in error case.

MFC after: 1 month

14 years agoRemove dead code and fix style(9) bugs.
jkim [Wed, 3 Feb 2010 22:20:57 +0000 (22:20 +0000)]
Remove dead code and fix style(9) bugs.

14 years agoUse bytes per scan line from mode table. The previous implementation did
jkim [Wed, 3 Feb 2010 22:17:30 +0000 (22:17 +0000)]
Use bytes per scan line from mode table.  The previous implementation did
not reflect actual number of bytes when it was not exactly width * bpp * 8.

14 years agoCorrect virtual address of frame buffer for non-linear mode.
jkim [Wed, 3 Feb 2010 22:07:50 +0000 (22:07 +0000)]
Correct virtual address of frame buffer for non-linear mode.

Reported by: Marc UBM Bocklet (ubm dot freebsd at googlemail dot com)

14 years agoImplement poll method for atapicam.
mav [Wed, 3 Feb 2010 21:45:09 +0000 (21:45 +0000)]
Implement poll method for atapicam.
It is not perfect, but better then nothing.

14 years agoReport to CAM unit number of underlying ataX bus device, instead of this
mav [Wed, 3 Feb 2010 21:26:54 +0000 (21:26 +0000)]
Report to CAM unit number of underlying ataX bus device, instead of this
atapicamX. It is more apropriate and useful together with "ata" name.

14 years agoRedo how commands handles are created and managed and implement sequence
mjacob [Wed, 3 Feb 2010 21:09:32 +0000 (21:09 +0000)]
Redo how commands handles are created and managed and implement sequence
numbers and handle types in rational way. This will better protect from
(unwittingly) dealing with stale handles/commands.

Fix the watchdog timeout code to better protect itself from mistakes.

If we run an abort on a putatively timed out command, the command
may in fact get completed, so check to make sure the command we're
timing it out is still around. If the abort succeeds, btw, the command
should get returned via a different path.

14 years ago- style(9)
gabor [Wed, 3 Feb 2010 21:06:13 +0000 (21:06 +0000)]
- style(9)

Approved by: delphij (mentor)

14 years ago-White space cleanup (missing spaces in new line)
rrs [Wed, 3 Feb 2010 20:54:04 +0000 (20:54 +0000)]
-White space cleanup (missing spaces in new line)
-Remove extra tab.
-Took out the duplicate code that cprestore does.
All suggested by Neel.

14 years agoPlacate new binutils, by using 16-bit %ax instead of 32-bit %eax as an
kib [Wed, 3 Feb 2010 20:23:47 +0000 (20:23 +0000)]
Placate new binutils, by using 16-bit %ax instead of 32-bit %eax as an
argument for fnstsw. Explicitely specify sizes for the XMM control and
status word and X87 control and status words.

Reviewed by: das
Tested by: avg
MFC after: 2 weeks

14 years agoDisable kern.cam.power_down ATM. It doesn't work fine on some controllers.
mav [Wed, 3 Feb 2010 20:00:56 +0000 (20:00 +0000)]
Disable kern.cam.power_down ATM. It doesn't work fine on some controllers.

14 years agoAlso add a cross-reference to NetBSD updlastlogx().
ed [Wed, 3 Feb 2010 19:31:02 +0000 (19:31 +0000)]
Also add a cross-reference to NetBSD updlastlogx().

14 years ago- Remove dead variable assignments
gabor [Wed, 3 Feb 2010 19:13:41 +0000 (19:13 +0000)]
- Remove dead variable assignments
- Fix -x

Submitted by: uqs
Approved by: delphij (mentor)

14 years ago- style.Makefile(5)
gabor [Wed, 3 Feb 2010 19:12:27 +0000 (19:12 +0000)]
- style.Makefile(5)

Submitted by: uqs
Approved by: delphij (mentor)

14 years agoRemove alpha support from here too. FreeBSD 6 was the last branch to
imp [Wed, 3 Feb 2010 18:32:29 +0000 (18:32 +0000)]
Remove alpha support from here too.  FreeBSD 6 was the last branch to
support it.

14 years agoRemove more traces of the Alpha port.
imp [Wed, 3 Feb 2010 18:29:35 +0000 (18:29 +0000)]
Remove more traces of the Alpha port.

14 years agoAdd rc.d script for the rtsold(8) daemon.
ume [Wed, 3 Feb 2010 16:18:42 +0000 (16:18 +0000)]
Add rc.d script for the rtsold(8) daemon.

The rtsol(8) handles just one RA then exit.  So, the OtherConfig flag
may not be handled well by rtsol(8) in the environment where there are
multiple RA servers on the segment.  In such case, rtsold(8) will be
your friend.

Reviewed by: hrs
MFC after: 2 weeks

14 years agoacpi_cpu: correct capabilities arguments for Processor _OSC evaluation
avg [Wed, 3 Feb 2010 14:35:33 +0000 (14:35 +0000)]
acpi_cpu: correct capabilities arguments for Processor _OSC evaluation

Populate capabilities buffer according to
Intel Processor Vendor-Specific ACPI Interface Specification.

MFC after: 2 weeks

14 years agoThis fix makes it so the args are malloc'd before
rrs [Wed, 3 Feb 2010 13:03:47 +0000 (13:03 +0000)]
This fix makes it so the args are malloc'd before
we use them (always a good idea ;-0)

This was found and fixed by JC

Obtained from: JC (c.jayachandran@gmail.com)

14 years agoThis fixes a bug found and fixed by JC. Basically
rrs [Wed, 3 Feb 2010 12:59:44 +0000 (12:59 +0000)]
This fixes a bug found and fixed by JC. Basically
no save was being done of the ra and gp pointers
before we call the __error function.

Obtained from: JC (c.jayachandran@gmail.com)

14 years agoDisable PHY of unconnected ports when interface power management enabled.
mav [Wed, 3 Feb 2010 12:00:57 +0000 (12:00 +0000)]
Disable PHY of unconnected ports when interface power management enabled.
It allows to save a bit more power (about 0.5W on 2 unused ports of ICH8M).

14 years agoAvoid a null pointer deref when parsing the meshid.
rpaulo [Wed, 3 Feb 2010 10:12:49 +0000 (10:12 +0000)]
Avoid a null pointer deref when parsing the meshid.

Found with: clang static analyzer

14 years agoWhen taking the AMPDU reorder fastpath, need_tap wasn't being
rpaulo [Wed, 3 Feb 2010 10:07:43 +0000 (10:07 +0000)]
When taking the AMPDU reorder fastpath, need_tap wasn't being
initialized. Initialize on declaration to avoid this.

Found with: clang static analyzer

14 years agoMFp4:
mav [Wed, 3 Feb 2010 10:06:03 +0000 (10:06 +0000)]
MFp4:
Add Power Up In Stand-by feature support. Device with PUIS enabled
require explicit command to do initial spin-up. Mark that command
with CAM_HIGH_POWER flag, to allow CAM manage staggered spin-up.

14 years agoMFp4:
mav [Wed, 3 Feb 2010 08:42:08 +0000 (08:42 +0000)]
MFp4:
Make CAM to stop all attached devices on system shutdown.
It allows devices to park heads, reducing stress on power loss.
Add `kern.cam.power_down` tunable and sysctl to controll it.

14 years agoFix comments in do_sem_wait().
davidxu [Wed, 3 Feb 2010 07:21:20 +0000 (07:21 +0000)]
Fix comments in do_sem_wait().

14 years agoReduce the size of the array used to store the TLB mappings for the kernel
neel [Wed, 3 Feb 2010 04:09:36 +0000 (04:09 +0000)]
Reduce the size of the array used to store the TLB mappings for the kernel
stack from 3 to 2.

We only map in 2 pages for the kernel stack.

Approved by: imp (mentor)

14 years agoAfter busied the lock, re-read state word before checking waiters flag,
davidxu [Wed, 3 Feb 2010 03:56:32 +0000 (03:56 +0000)]
After busied the lock, re-read state word before checking waiters flag,
otherwise, the waiters bit may not be set and a wakeup is lost.

Submitted by: justin.teller at gmail dot com
MFC after: 3 days

14 years agoRemove another reference to alpha...
imp [Wed, 3 Feb 2010 02:39:08 +0000 (02:39 +0000)]
Remove another reference to alpha...

14 years ago- Give geom_redboot taste of flash/spi. Now there is another provider
gonzo [Wed, 3 Feb 2010 01:12:19 +0000 (01:12 +0000)]
- Give geom_redboot taste of flash/spi. Now there is another provider
    of redboot partitions. This patch was missed during merge from
    projects/mips.

14 years agoOnly audit pathnames in namei(9) if copying the directory string completes
rwatson [Tue, 2 Feb 2010 23:10:27 +0000 (23:10 +0000)]
Only audit pathnames in namei(9) if copying the directory string completes
successfully.  Continue to do this before the empty path check so that the
ENOENT returned in that case gets an empty string token in the BSM record.

MFC after: 3 days

14 years agoPrevent NULL deference by checking return value of
delphij [Tue, 2 Feb 2010 22:25:22 +0000 (22:25 +0000)]
Prevent NULL deference by checking return value of
gctl_get_asciiparam.

MFC after: 2 weeks

14 years agoSome of the existing ppp and vpn related scripts create and set
qingli [Tue, 2 Feb 2010 20:38:30 +0000 (20:38 +0000)]
Some of the existing ppp and vpn related scripts create and set
the IP addresses of the tunnel end points to the same value. In
these cases the loopback route is not installed for the local
end.

Verified by: avg
MFC after: 5 days

14 years agoBump .Dd, forgotten in r203393
gavin [Tue, 2 Feb 2010 19:44:51 +0000 (19:44 +0000)]
Bump .Dd, forgotten in r203393

Approved by: ed (mentor, implicit)
MFC after: 1 week

14 years agoThe multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.
gavin [Tue, 2 Feb 2010 19:28:01 +0000 (19:28 +0000)]
The multiplicand a = 0x5deece66d = 25214903917, not 0xfdeece66d.
This bug in the man page has gone unnoticed for over 15 years!

PR: docs/143461
Submitted by: Jeremy Huddleston  jeremyhu apple.com
Approved by: ed (mentor, implicit)
MFC after: 1 week

14 years agoImplement strndup(3) using strnlen(3).
ed [Tue, 2 Feb 2010 19:02:08 +0000 (19:02 +0000)]
Implement strndup(3) using strnlen(3).

This makes the implementation a bit more consistent with strdup(3),
which uses strlen(3).

14 years agoExclude the interfaces which IPv6 and/or accepting RA is disabled
ume [Tue, 2 Feb 2010 18:38:17 +0000 (18:38 +0000)]
Exclude the interfaces which IPv6 and/or accepting RA is disabled
from the auto probed interface list.

MFC after: 1 week

14 years agoChange the way in which fake async events generated. Do not use
mav [Tue, 2 Feb 2010 18:07:16 +0000 (18:07 +0000)]
Change the way in which fake async events generated. Do not use
taskqueue for lock decoupling, as it causes unwanted races.

14 years ago- Use separate buffer for identify data fetching. We can't use main buffer
mav [Tue, 2 Feb 2010 18:03:21 +0000 (18:03 +0000)]
- Use separate buffer for identify data fetching. We can't use main buffer
here if device already running, as data need to be formatted before use.
- Remove some saved_ccb variables. They are unused now.

14 years agoSome missed parts for r203376.
mav [Tue, 2 Feb 2010 17:56:54 +0000 (17:56 +0000)]
Some missed parts for r203376.

14 years agoMake -a option actually work.
ume [Tue, 2 Feb 2010 16:02:09 +0000 (16:02 +0000)]
Make -a option actually work.

MFC after: 1 week

14 years agoRespect passwordtime from login.conf if set.
des [Tue, 2 Feb 2010 13:47:18 +0000 (13:47 +0000)]
Respect passwordtime from login.conf if set.

PR: bin/93473
Submitted by: Björn König <bkoenig@cs.tu-berlin.de>
MFC after: 1 week

14 years ago- Give ATA/SATA SIMs info about ATAPI packet size, supported by device.
mav [Tue, 2 Feb 2010 11:09:28 +0000 (11:09 +0000)]
- Give ATA/SATA SIMs info about ATAPI packet size, supported by device.
- Make ATA XPT to reject longer SCSI CDBs then supported by device, or
any SCSI CDBs, if device doesn't support ATAPI.

14 years ago- Add myself
gabor [Tue, 2 Feb 2010 10:00:23 +0000 (10:00 +0000)]
- Add myself

Approved by: delphij (mentor)

14 years ago- Add support for CVSup authentication mechanisms to csup.
lulf [Tue, 2 Feb 2010 05:57:42 +0000 (05:57 +0000)]
- Add support for CVSup authentication mechanisms to csup.
- Include a cpasswd script performing the same mechanisms as the cvpasswd
  utility from CVSup.

PR: bin/114129
Submitted by: Petar Zhivkov Petrov <pesho.petrov -at- gmail.com>
MFC after: 1 month

14 years agoEnable MTRR on all VIA CPUs that claim support (amd64).
rnoland [Tue, 2 Feb 2010 01:20:33 +0000 (01:20 +0000)]
Enable MTRR on all VIA CPUs that claim support (amd64).

This is the amd64 part of r203289.

Noticed by: jhb
MFC after: 2 weeks

14 years agoUpdate the version number.
delphij [Tue, 2 Feb 2010 00:30:44 +0000 (00:30 +0000)]
Update the version number.

14 years agoGPIB overhaul, part #2: make the tnt4882 driver work with the newer
joerg [Mon, 1 Feb 2010 21:21:10 +0000 (21:21 +0000)]
GPIB overhaul, part #2: make the tnt4882 driver work with the newer
TNT5004 IC.  This involved a major rewrite of a number of things, as
this chip no longer supports the NAT7210 legacy mode but requires the
host to use the (more modern) FIFO mode.

In theory, this also ought to work on the older TNT4882C chip.  I'll
probably add this as optional support (perhaps by a device.hints flag)
later on.  By now, FIFO mode is *only* activates iff a TNT5004 chip
has been detected (where the old code didn't work at all), while
everything else is supposed to use the old code.

MFC after: 2 weeks

14 years agoAdd xrefs to gpib(3), now that it exists.
joerg [Mon, 1 Feb 2010 21:01:20 +0000 (21:01 +0000)]
Add xrefs to gpib(3), now that it exists.

MFC after: 3 days

14 years agoPCI express device status register has W1C feature. Writing 0 has
yongari [Mon, 1 Feb 2010 20:58:45 +0000 (20:58 +0000)]
PCI express device status register has W1C feature. Writing 0 has
no effect. Make sure to clear error bits by writing 1. [1]
While I'm here use predefined value instead of hardcodig magic
vlaue.

Submitted by: msaitoh at NetBSD [1]

14 years agoAdd a libgpib to the list of known .Lb names.
joerg [Mon, 1 Feb 2010 20:54:45 +0000 (20:54 +0000)]
Add a libgpib to the list of known .Lb names.

MFC after: 3 days

14 years agoFinally, document libgpib.
joerg [Mon, 1 Feb 2010 20:53:55 +0000 (20:53 +0000)]
Finally, document libgpib.

MFC after: 3 days

14 years agoAdd more bit definitions to PCI express device control and device
yongari [Mon, 1 Feb 2010 20:50:49 +0000 (20:50 +0000)]
Add more bit definitions to PCI express device control and device
status register.

Reviewed by: jhb

14 years agoA few minor changes: add altq option header, add missing conditional
jfv [Mon, 1 Feb 2010 19:28:43 +0000 (19:28 +0000)]
A few minor changes:  add altq option header, add missing conditional
around a buf_ring call that will break 7.3, and thanks to Fabien Thomas
add POLLING support for igb and a minor related fix in the em driver.

14 years agoMake PCI Express host controllers functional, by:
marcel [Mon, 1 Feb 2010 17:51:01 +0000 (17:51 +0000)]
Make PCI Express host controllers functional, by:
1.  checking whether there's a link before initializing devices
    on the bus. When there's no link any access onto the bus
    will wedge the CPU.
2.  synthesizing the class & subclass so that the host controller
    appears as a standard PCI bridge, rather than a PowerPC CPU.

14 years agoChange the default value for the flag enabling superpage mapping and
alc [Mon, 1 Feb 2010 17:36:48 +0000 (17:36 +0000)]
Change the default value for the flag enabling superpage mapping and
promotion to "on".

14 years agoUse the capability pointer to indicate whether the host controller is
marcel [Mon, 1 Feb 2010 17:26:58 +0000 (17:26 +0000)]
Use the capability pointer to indicate whether the host controller is
PCI Express, rather than a bit-field (boolean). Saving the capability
pointer this way makes access to capability-specific configuration
registers easy and efficient.

14 years agoConform style.Makefile(5) and replace = and += with ?=, which lets you to
wkoszek [Mon, 1 Feb 2010 16:13:56 +0000 (16:13 +0000)]
Conform style.Makefile(5) and replace = and += with ?=, which lets you to
override WARNS.

Reported by: <marius@nuenneri.ch> and uqs@

14 years agoNetCell is a PCI hardware RAID without cable and mode setting.
mav [Mon, 1 Feb 2010 15:22:22 +0000 (15:22 +0000)]
NetCell is a PCI hardware RAID without cable and mode setting.

14 years agouse u_char instead of u_int for short bitfields.
luigi [Mon, 1 Feb 2010 14:13:44 +0000 (14:13 +0000)]
use u_char instead of u_int for short bitfields.

For our compiler the two constructs are completely equivalent, but
some compilers (including MSC and tcc) use the base type for alignment,
which in the cases touched here result in aligning the bitfields
to 32 bit instead of the 8 bit that is meant here.

Note that almost all other headers where small bitfields
are used have u_int8_t instead of u_int.

MFC after: 3 days

14 years agoManageSieve has been added as port 4190:
ume [Mon, 1 Feb 2010 13:30:06 +0000 (13:30 +0000)]
ManageSieve has been added as port 4190:
http://www.iana.org/assignments/port-numbers

Obtained from: http://www.iana.org/assignments/port-numbers
MFC after: 3 day