Sascha Wildner [Wed, 26 Sep 2007 18:56:26 +0000 (18:56 +0000)]
Reduce differences to FreeBSD.
Sascha Wildner [Wed, 26 Sep 2007 18:13:14 +0000 (18:13 +0000)]
Extend SYNOPSIS for ALTQ_NOPCC and ALTQ_DEBUG.
Peter Avalos [Tue, 25 Sep 2007 04:53:48 +0000 (04:53 +0000)]
Sync with FreeBSD.
Add endianness support and fixate the hash bucket size to 4K.
Peter Avalos [Mon, 24 Sep 2007 21:39:28 +0000 (21:39 +0000)]
Oops, forgot to add this to the FreeBSD sync.
Peter Avalos [Mon, 24 Sep 2007 21:38:18 +0000 (21:38 +0000)]
Sync calendars with FreeBSD.
Peter Avalos [Mon, 24 Sep 2007 20:49:09 +0000 (20:49 +0000)]
static some functions.
Peter Avalos [Mon, 24 Sep 2007 20:31:44 +0000 (20:31 +0000)]
Sync with FreeBSD:
Sort events by date.
Fix off-by-one error in -W option.
Shorten some long lines.
Fix various bugs in the -A and -B options.
Remove break after return.
Fix -t option processing. Partially initialized tm structure was passed
into mktime(3).
Obtained-from: FreeBSD
Peter Avalos [Mon, 24 Sep 2007 18:57:47 +0000 (18:57 +0000)]
Sync with FreeBSD.
Hasso Tepper [Mon, 24 Sep 2007 06:16:19 +0000 (06:16 +0000)]
Fix warning.
Yonghong Yan [Mon, 24 Sep 2007 03:24:45 +0000 (03:24 +0000)]
cleanup the duplicated $DragonFly$ cvs id, my bad
YONETANI Tomokazu [Mon, 24 Sep 2007 03:04:28 +0000 (03:04 +0000)]
Fix read-only build of cc41.
Move mktooldir target into cc_tools/Makefile.tools, and make beforedepend
depend on it, if ${TOOLGENDIR} doesn't exist yet. This way, the `depend'
targets in the subdirectories that includes Makefile.tools are guaranteed
to be run after mktooldir.
Peter Avalos [Mon, 24 Sep 2007 02:43:45 +0000 (02:43 +0000)]
Update for libarchive 2.3.2 import.
Peter Avalos [Mon, 24 Sep 2007 02:40:39 +0000 (02:40 +0000)]
Merge from vendor branch LIBARCHIVE:
Import libarchive-2.3.2.
Peter Avalos [Mon, 24 Sep 2007 02:40:39 +0000 (02:40 +0000)]
Import libarchive-2.3.2.
Hasso Tepper [Sun, 23 Sep 2007 22:06:10 +0000 (22:06 +0000)]
Add support for newer ICH SMBus controllers. Also corrected ICH4 entry in
progress (82801DC -> 82801DB).
Hasso Tepper [Sun, 23 Sep 2007 13:38:07 +0000 (13:38 +0000)]
Remove terminating semicolons from SYSCTL_ADD_* macros. This will allow to
use them in constructs like foo(SYSCTL_ADD_NODE()).
Hasso Tepper [Sun, 23 Sep 2007 10:45:47 +0000 (10:45 +0000)]
Fix typo.
Yonghong Yan [Sun, 23 Sep 2007 04:44:41 +0000 (04:44 +0000)]
A simple README.amd64 and AMD64_GENERIC kernel config file
Yonghong Yan [Sun, 23 Sep 2007 04:42:07 +0000 (04:42 +0000)]
More headers for pc64 platform kernel build/linking
Yonghong Yan [Sun, 23 Sep 2007 04:29:31 +0000 (04:29 +0000)]
more header changes for amd64 port; the pc64 building infrastructure
and dummy sources as the initial skelecton.
Yonghong Yan [Sun, 23 Sep 2007 04:09:55 +0000 (04:09 +0000)]
prepare the amd64 kernel build, ext2_bitops.h merged in from FreeBSD
Peter Avalos [Sat, 22 Sep 2007 21:26:24 +0000 (21:26 +0000)]
Sync with FreeBSD.
Fix off-by-one error and sync SYNOPSIS.
Peter Avalos [Sat, 22 Sep 2007 21:13:47 +0000 (21:13 +0000)]
Sync with FreeBSD.
Peter Avalos [Sat, 22 Sep 2007 20:50:26 +0000 (20:50 +0000)]
Sync with FreeBSD.
Fix markup, sort sections, add EXIT STATUS.
Peter Avalos [Sat, 22 Sep 2007 20:40:06 +0000 (20:40 +0000)]
Sync with FreeBSD:
Sync program's usage() with manpage's SYNOPSIS.
Make brandelf(1)'s -t "ABI format" case insensitive, as the ABI value
given is looked up in a table and no longer stored literally in the
header.
Fix typo in the BSD copyright: s/withough/without/
Sort includes.
Obtained-from: FreeBSD
Peter Avalos [Sat, 22 Sep 2007 20:22:51 +0000 (20:22 +0000)]
Use NULL instead of 0 for the return value of fopen().
Obtained-from: FreeBSD
Sascha Wildner [Fri, 21 Sep 2007 09:07:03 +0000 (09:07 +0000)]
style(9) nit.
YONETANI Tomokazu [Fri, 21 Sep 2007 02:28:00 +0000 (02:28 +0000)]
Merge rev 1.26 from FreeBSD:
Add debug.rman_debug sysctl MIB and loader tunable instead of broken
RMAN_DEBUG option.
This would be useful for debugging resource manager code.
Sascha Wildner [Thu, 20 Sep 2007 17:54:27 +0000 (17:54 +0000)]
Remove unneeded #include.
Hasso Tepper [Thu, 20 Sep 2007 07:40:51 +0000 (07:40 +0000)]
Unconstify members of the lconv structure to make it conform to the C89 and
C99 standards. Note that documentation doesn't need a correction, it's
already correct.
Sascha Wildner [Wed, 19 Sep 2007 15:01:54 +0000 (15:01 +0000)]
Add bwi(4) entry.
Hasso Tepper [Wed, 19 Sep 2007 13:54:28 +0000 (13:54 +0000)]
Remove duplicates.
Sascha Wildner [Tue, 18 Sep 2007 08:54:10 +0000 (08:54 +0000)]
Move HARDWARE after DESCRIPTION.
Sepherosa Ziehau [Mon, 17 Sep 2007 12:13:24 +0000 (12:13 +0000)]
Modulize bwi(4) debug prints. Leave ATTACH/INIT/TXPOWER on by default.
Hasso Tepper [Mon, 17 Sep 2007 11:29:36 +0000 (11:29 +0000)]
Add support for Vitesse VSC8601 and Realtek 8211B PHYs. Patches are obtained
from http://www.f.csce.kyushu-u.ac.jp/~shigeaki/software/freebsd-nfe.html
with little modifications. Vitesse VSC8601 support patch is originally made
by Aji Tanaka and Realtek 8211B patch by Michael Eisele.
Approved-by: sephe@
Hasso Tepper [Mon, 17 Sep 2007 11:13:55 +0000 (11:13 +0000)]
Add info about Vitesse Semiconductor Corporation VSC8601 PHY and Realtek
8211B PHY.
Approved-by: sephe@
Hasso Tepper [Mon, 17 Sep 2007 10:31:07 +0000 (10:31 +0000)]
Add many devices to the uftdi(4). Sources of the info are mainly Linux and
Windows drivers.
Hasso Tepper [Mon, 17 Sep 2007 10:24:37 +0000 (10:24 +0000)]
uftdi(4) related usbdevs work:
- Shorten BBELECTRONICS -> BBELECTR.
- SIIG2 -> OCT. According to various sources (including Linux driver) SIIG
rebrands some Omnidirectional Control Technology products.
- Cleanup/sort the list of products using FTDI vendor ID.
- Add many new uftdi(4) related product ID's. Info mainly from Linux
driver and various Windows drivers.
Sascha Wildner [Sun, 16 Sep 2007 19:06:26 +0000 (19:06 +0000)]
Add a reference to wpa_supplicant(8) to the manual pages of all drivers
supporting it.
Sascha Wildner [Sun, 16 Sep 2007 18:55:16 +0000 (18:55 +0000)]
Add reference to SEE ALSO as well.
Sascha Wildner [Sun, 16 Sep 2007 18:52:17 +0000 (18:52 +0000)]
Add reference to bwi(4).
Sascha Wildner [Sun, 16 Sep 2007 18:26:18 +0000 (18:26 +0000)]
Add a manual page for the new bwi(4) driver (Broadcom BCM430x/4318
wireless cards).
In-discussion-with: sephe
Peter Avalos [Sun, 16 Sep 2007 17:02:49 +0000 (17:02 +0000)]
Make functions static and use M_ZERO instead of a separate bzero.
Sepherosa Ziehau [Sun, 16 Sep 2007 11:53:36 +0000 (11:53 +0000)]
Create per-interface sysctl tree.
Sepherosa Ziehau [Sun, 16 Sep 2007 11:31:20 +0000 (11:31 +0000)]
- Pass mgt packet's node into bwi_encap(), so fallback duration can be
calculate.
- Don't involve multicast packets into TX rate control.
Sepherosa Ziehau [Sun, 16 Sep 2007 10:20:15 +0000 (10:20 +0000)]
- Use RF/PHY information printing format to print BBP information.
- Print MAC information, instead of mixing it in the regwin information.
Sepherosa Ziehau [Sun, 16 Sep 2007 09:58:27 +0000 (09:58 +0000)]
For bwi(4) parts that use TX status registers:
- Update TXSTATUS0 register's layout according to v4 specification.
- Extract frame's TX count and whether the frame has been acknowledged.
- If the TX status indicates that the frame is pending or is AMPDU(?),
don't do any further processing (pending probably will not happen in
the current TX model).
Sepherosa Ziehau [Sun, 16 Sep 2007 08:25:41 +0000 (08:25 +0000)]
For bwi(4) parts that use TX status ring:
- Extract frame's TX count and whether the frame has been acknowledged.
- If the TX status indicates that the frame is pending, don't do any further
processing (this probably will not happen in the current TX model).
Sepherosa Ziehau [Sun, 16 Sep 2007 04:24:30 +0000 (04:24 +0000)]
- Add radio tap support
- Fix macro name; OFDM PLCP header uses 'rate' instead of 'signal'
- Fix comment
- Add error message, if interrupt setup fails
Peter Avalos [Sun, 16 Sep 2007 00:59:59 +0000 (00:59 +0000)]
Allow selection of the affected terminal using redirection
of standard input or standard output.
Obtained-from: FreeBSD
Peter Avalos [Sun, 16 Sep 2007 00:59:13 +0000 (00:59 +0000)]
Markup fixes.
Obtained-from: FreeBSD
Sascha Wildner [Sat, 15 Sep 2007 23:52:49 +0000 (23:52 +0000)]
if_ioctl takes a pointer to struct ucred.
While I'm here change the argument 'command' to 'cmd' for consistency.
Sascha Wildner [Sat, 15 Sep 2007 21:28:15 +0000 (21:28 +0000)]
Fix 'type qualifiers ignored on function return type' warnings.
Sascha Wildner [Sat, 15 Sep 2007 21:24:59 +0000 (21:24 +0000)]
Fix 'value computed is not used' warnings.
Sascha Wildner [Sat, 15 Sep 2007 20:06:39 +0000 (20:06 +0000)]
Fix some kprintf format warnings.
Sascha Wildner [Sat, 15 Sep 2007 18:21:12 +0000 (18:21 +0000)]
Add missing space.
Sascha Wildner [Sat, 15 Sep 2007 13:18:40 +0000 (13:18 +0000)]
Silence gcc 4.1's "packed attribute ignored..." warnings.
No differences in object files.
Taken-from: FreeBSD
Sepherosa Ziehau [Sat, 15 Sep 2007 10:53:31 +0000 (10:53 +0000)]
Make sure that the received frame contains at least an extra header,
a smallest frame (ACK or CTS) and FCS.
Sepherosa Ziehau [Sat, 15 Sep 2007 09:59:29 +0000 (09:59 +0000)]
Convert RSSI into signal strength (relative to noise floor)
Sascha Wildner [Sat, 15 Sep 2007 09:58:06 +0000 (09:58 +0000)]
Bring in some miscellaneous changes from OpenBSD and point to an
archive provided by sephe for the firmware files.
Sepherosa Ziehau [Sat, 15 Sep 2007 07:19:23 +0000 (07:19 +0000)]
Shut up GCC41 warning: different pointer signedness
Sepherosa Ziehau [Sat, 15 Sep 2007 07:12:03 +0000 (07:12 +0000)]
Bug found by GCC41 warning:
Wrong __packed position, we want to pack the anonymous structure not the field.
Sascha Wildner [Fri, 14 Sep 2007 23:47:53 +0000 (23:47 +0000)]
Fix typos, mostly effect -> affect.
Sascha Wildner [Fri, 14 Sep 2007 23:22:38 +0000 (23:22 +0000)]
Fix typo.
Sascha Wildner [Fri, 14 Sep 2007 22:53:56 +0000 (22:53 +0000)]
Make the firmware_image_load() and firmware_image_unload() functions
known to the world by adding a minimal firmware(9) manual page.
Sascha Wildner [Fri, 14 Sep 2007 21:04:56 +0000 (21:04 +0000)]
Fix typo.
Sascha Wildner [Fri, 14 Sep 2007 20:02:03 +0000 (20:02 +0000)]
Remove two unused entries.
Sascha Wildner [Fri, 14 Sep 2007 19:47:03 +0000 (19:47 +0000)]
Add missing LIBRARY sections and extend mdoc.local accordingly.
Sascha Wildner [Fri, 14 Sep 2007 19:08:59 +0000 (19:08 +0000)]
Remove several mann/catn directories in /usr/share.
It seems they were added for Tcl originally in FreeBSD but nothing gets
installed there anymore for a long time.
In-discussion-with: hasso
Sascha Wildner [Fri, 14 Sep 2007 06:41:07 +0000 (06:41 +0000)]
Fix path.
Spotted-by: Noah Yan <noah.yan@gmail.com>
Chris Turner [Thu, 13 Sep 2007 23:40:24 +0000 (23:40 +0000)]
testing, 123
check, check, check.
sibilance, sibilance.
Sascha Wildner [Thu, 13 Sep 2007 20:02:52 +0000 (20:02 +0000)]
Add a skeletal kernconf(5) manual page for documenting the structure
of a kernel configuration file.
It only documents the keywords for now but can (and will eventually)
be extended to document our numerous kernel options.
It's kinda based on NetBSD's options(4).
Suggested-by: dillon (sort of)
[http://leaf.dragonflybsd.org/mailarchive/bugs/2007-08/msg00064.html]
Sascha Wildner [Thu, 13 Sep 2007 13:55:35 +0000 (13:55 +0000)]
Remove NO_WERROR.
Sascha Wildner [Thu, 13 Sep 2007 10:55:55 +0000 (10:55 +0000)]
Fix typo.
Sascha Wildner [Thu, 13 Sep 2007 10:34:04 +0000 (10:34 +0000)]
Escape the ' chars in the example.
Sascha Wildner [Thu, 13 Sep 2007 10:33:10 +0000 (10:33 +0000)]
Add missing .El
Yonghong Yan [Thu, 13 Sep 2007 04:23:59 +0000 (04:23 +0000)]
a helloWorld ci test by yanyh
Sepherosa Ziehau [Wed, 12 Sep 2007 12:02:09 +0000 (12:02 +0000)]
Prepare to support polling(4) on multiple cpus:
- Add per-cpu polling(4) context, move global variables into it.
- Make global sysctl nodes per-cpu. Fake original global sysctl
nodes by creating alias to the lowest cpu's sysctl nodes, mainly
for compatibility.
Hasso Tepper [Wed, 12 Sep 2007 09:26:32 +0000 (09:26 +0000)]
Oops, remove comma.
Reminded-by: swildner@
Hasso Tepper [Wed, 12 Sep 2007 08:42:59 +0000 (08:42 +0000)]
Update the agp(4) manpage. General description and example based on NetBSD
agp(4) manpage, ioctl(2) interface description from FreeBSD.
Obtained from: NetBSD and FreeBSD with modifications
Hasso Tepper [Wed, 12 Sep 2007 08:31:44 +0000 (08:31 +0000)]
Update the agp(4) code to the latest one from FreeBSD HEAD. This brings in
a lot of newer hardware support.
Obtained-from: FreeBSD
Hasso Tepper [Wed, 12 Sep 2007 07:59:31 +0000 (07:59 +0000)]
Add bus_alloc_resources() and bus_release_resources() functions to allow to
simplify the code and to make it easier to port drivers (initially the
agp(4)) from FreeBSD.
Obtained-from: FreeBSD
Matthew Dillon [Mon, 10 Sep 2007 15:13:55 +0000 (15:13 +0000)]
Fix bugs in the handling of CIDR specifications such as 'route add 128/8
<gateway>'. Also rectify the way netmasks are deduced from the address class.
Submitted-by: "Nuno Antunes" <nuno.antunes@gmail.com>
Matthew Dillon [Mon, 10 Sep 2007 15:08:43 +0000 (15:08 +0000)]
kern_access() had the same bug kern_stat() had with regards to a
vnode/namecache deadlock when dealing with stale NFS mounts.
Reported-by: elekktretterr@exemail.com.au
Sepherosa Ziehau [Mon, 10 Sep 2007 14:08:28 +0000 (14:08 +0000)]
- Add interrupt moderation support by only using TIMER intr; IM is not
possible when RX or TX intr is enabled. With this change, my nfe(4)
can TX at line speed finally (mtu 1500).
- Add per iface sysctl node hw.nfeX.imtime to enable, disable and set
interrupt moderation time. Set it to -1 will disable IM; 64-128
seems to be a reasonable value range. This sysctl variable is _not_
on by default, and can be tuned when the iface is running.
- Nuke global sysctl nodes, make them per iface.
# We may consider using TIMER intr under all situations, but with larger
# imtime when IM is not enabled, since for certain type of nfe(4), TX
# interrupts may never come.
Simon Schubert [Sun, 9 Sep 2007 23:32:43 +0000 (23:32 +0000)]
Resync patch with contrib.
Sascha Wildner [Sun, 9 Sep 2007 15:43:38 +0000 (15:43 +0000)]
Switch even more to gcc41.
Sepherosa Ziehau [Sun, 9 Sep 2007 09:14:38 +0000 (09:14 +0000)]
- Make fwe(4) aware of IFF_POLLING setting in its if_init().
- Allow IFF_POLLING flag to be turned on even when the interface is not
up yet, since after above fix, all drivers that support polling(4) will
turn on/off interrupt in their if_init() based on IFF_POLLING.
This fixes the bug reported by many people that enabling "polling" in
rc.conf's ifconfig_ifaceX does not work.
Sepherosa Ziehau [Sun, 9 Sep 2007 06:21:23 +0000 (06:21 +0000)]
Correct DEVICE_POLLING support in vr_init()
Sepherosa Ziehau [Sun, 9 Sep 2007 05:11:28 +0000 (05:11 +0000)]
NULL should never be passed to ether_poll_deregister(). Try catching any
brain dead caller by assertion.
Sepherosa Ziehau [Sun, 9 Sep 2007 04:30:25 +0000 (04:30 +0000)]
- Fix comment.
- Use ifp as local variable, indirect accessing ifp through pollrec is not
meaningful here.
- Break long lines.
Sepherosa Ziehau [Sun, 9 Sep 2007 03:51:25 +0000 (03:51 +0000)]
Nuke the hack in vr(4) that polling(4) will be turned when watchdog times out;
if interrupt does not work at all, polling(4) can be turned manually.
Approved-by: dillon@
Sascha Wildner [Sat, 8 Sep 2007 20:50:50 +0000 (20:50 +0000)]
Use .Dv and start sentences on a new line.
Sepherosa Ziehau [Sat, 8 Sep 2007 12:50:34 +0000 (12:50 +0000)]
It does not make sense to call interface's initialization routine when
the interface is up and only layer 3 address is to be changed.
Submitted-by: "Devon H. O'Dell" <devon.odell@coyotepoint.com> (w/ mod)
Sepherosa Ziehau [Sat, 8 Sep 2007 12:35:04 +0000 (12:35 +0000)]
Kill token ring remainder.
Sepherosa Ziehau [Sat, 8 Sep 2007 11:20:22 +0000 (11:20 +0000)]
- Add missing header protector
- Strip blank line at the end of file
Sascha Wildner [Sat, 8 Sep 2007 10:49:00 +0000 (10:49 +0000)]
Remove previous hack to cope with CVS IDs.
It wasn't properly documented and also prevented quiz questions starting
with # from being asked. Not very likely but we shouldn't break program
semantics because of administrative reasons.
The datfiles have now been added to the exclusion list.
Sascha Wildner [Sat, 8 Sep 2007 09:48:59 +0000 (09:48 +0000)]
Synchronize manual page installation of gcc34 and gcc41 and switch the
various MLINKS to gcc41 which is default now.
Sepherosa Ziehau [Sat, 8 Sep 2007 06:16:27 +0000 (06:16 +0000)]
Hook bwi(4)
Sepherosa Ziehau [Sat, 8 Sep 2007 06:15:54 +0000 (06:15 +0000)]
Add WIP support for Broadcom wireless chips:
- STA and MONITOR operation mode are supported
- WPA/WPA2 is supported (host based)
- Use V3 firmware
- 11b/g mode is supported
TODOs (AKA defects ;)
- Add the missing part of PCIe initialization (need testers)
- Hook TX rate control support in our 802.11 layer
- HOSTAP and IBSS operation mode support
- Add radio tap support
- Use V4 firmware for newer chips
- Use firmware based crypto for V4 firmware
- V3 and V4 firmware coexist
- Make LED blink
- Make my 11b only card work :]
- Correctly configure CW and MAC level acknowledge rates based on the
characteristic of the BSS/IBSS that we are going to join
And blah, blah, blah ...
Known to work devices, i.e. tested devices:
o BCM4318 (Linksys WPC54G ver.3, cardbus)
BBP: id 0x4318, rev 0x2, pkg 2
MAC: rev 9
PHY: type 2, rev 7, ver 3
RF: BCM2050, rev 8
o BCM4306 (Buffalo WLI2-PCI-G54S, PCI)
BBP: id 0x4306, rev 0x3, pkg 0
MAC: rev 5
PHY: type 2, rev 2, ver 2
RF: BCM2050, rev 2
o BCM4319 (unknown vendor, mini-PCI)
BBP: id 0x4318, rev 0x2, pkg 2
MAC: rev 9
PHY: type 2, rev 7, ver 3
RF: BCM2050, rev 8
o BCM4309 (unknown vendor, mini-PCI)
BBP: id 0x4306, rev 0x3, pkg 1
MAC: rev 5
PHY: type 2, rev 2, ver 2
RF: BCM2050, rev 2
TX performance of above devices at different OFDM rates (unit Mbits/s):
OFDM rate 54 48 36 24 18 12 9 6
TX perf 23.x 21.x 18.x 14.x 11.x 8.x 4.x(1) 6.x(2)
(1) BCM4319/BCM4306 listed above can only do 2.xMbits/s at 9Mbits/s
(2) BCM4319 listed above has unstable TX performance, 4.x-6.xMbits/s,
at 6Mbits/s
(3) There is a bug(to be found) in driver which reverses 9Mbits/s and 6Mbits/s
Thank folks at bcm-specs.sipsolutions.net for their reverse engineering work.
Thank johill and mb on #bcm-specs IRC channel for answering my questions.
#
# Following devices are also known to work, but have poor TX performance.
# They have same characteristic that MAC rev is less than 5.
# o BCM4306 (Dell TrueMobile 1300 rev A01, cardbus)
# BBP: id 0x4306, rev 0x2, pkg 0
# MAC: rev 4
# PHY: type 2, rev 1, ver 1
# RF: BCM2050, rev 2
# o BCM4306 (unknown vendor, mini-PCI)
# BBP: id 0x4306, rev 0x2, pkg 0
# MAC: rev 4
# PHY: type 2, rev 1, ver 1
# RF: BCM2050, rev 2
#
# Certain 11b only cards may work depending on the PHY rev
#