dragonfly.git
17 years agoMAP_VPAGETABLE support part 3/3.
Matthew Dillon [Wed, 13 Sep 2006 17:10:42 +0000 (17:10 +0000)]
MAP_VPAGETABLE support part 3/3.

Implement a new system call called mcontrol() which is an extension of
madvise(), adding an additional 64 bit argument.  Add two new advisories,
MADV_INVAL and MADV_SETMAP.

MADV_INVAL will invalidate the pmap for the specified virtual address
range.  You need to do this for the virtual addresses effected by changes
made in a virtual page table.

MADV_SETMAP sets the top-level page table entry for the virtual page table
governing the mapped range.  It only works for memory governed by a virtual
page table and strange things will happen if you only set the root
page table entry for part of the virtual range.

Further refine the virtual page table format.  Keep with 32 bit VPTE's for
the moment, but properly implement VPTE_PS and VPTE_V.  VPTE_PS can be
used to suport 4MB linear maps in the top level page table and it can also
be used when specifying the 'root' VPTE to disable the page table entirely
and just linear map the backing store.  VPTE_V is the 'valid' bit (before
it was inverted, now it is normal).

17 years agoAdjust README
Simon Schubert [Wed, 13 Sep 2006 16:14:33 +0000 (16:14 +0000)]
Adjust README

17 years agoMerge from vendor branch CVS:
Simon Schubert [Wed, 13 Sep 2006 16:13:30 +0000 (16:13 +0000)]
Merge from vendor branch CVS:
Import useful files

17 years agoImport useful files chlamydia/vendor/CVS
Simon Schubert [Wed, 13 Sep 2006 16:13:30 +0000 (16:13 +0000)]
Import useful files

17 years agoNote that Netgear WG311 v3 does *not* use an Atheros chip.
Sascha Wildner [Wed, 13 Sep 2006 09:13:26 +0000 (09:13 +0000)]
Note that Netgear WG311 v3 does *not* use an Atheros chip.

Taken-from: NetBSD
Noticed-by: Trevor Kendall <trevorjkendall@gmail.com>
17 years agoFix small mistake.
Sascha Wildner [Wed, 13 Sep 2006 09:08:50 +0000 (09:08 +0000)]
Fix small mistake.

17 years agoChange one forgotten malloc() to kmalloc().
Sascha Wildner [Wed, 13 Sep 2006 06:59:24 +0000 (06:59 +0000)]
Change one forgotten malloc() to kmalloc().

Reported-by: Ferruccio Zamuner <nonsolosoft@diff.org>
17 years agoMAP_VPAGETABLE support part 2/3.
Matthew Dillon [Tue, 12 Sep 2006 22:03:12 +0000 (22:03 +0000)]
MAP_VPAGETABLE support part 2/3.

Implement preliminary virtual page table handling code in vm_fault.  This
code is strictly temporary so subsystem and userland interactions can be
tested, but the real code will be very similar.

17 years agoMAP_VPAGETABLE support part 1/3.
Matthew Dillon [Tue, 12 Sep 2006 18:41:32 +0000 (18:41 +0000)]
MAP_VPAGETABLE support part 1/3.

Reorganize vm_fault() to get more direct access to the VM page resolved by
a VM fault.  Move vm_fault()'s core shadow object traversal and fault I/O
code to a new procedure called vm_fault_object().

Begin adding support for memory mappings which are backed by a virtualized
page table under userland control.

17 years agoMove flag(s) representing the type of vm_map_entry into its own vm_maptype_t
Matthew Dillon [Mon, 11 Sep 2006 20:25:31 +0000 (20:25 +0000)]
Move flag(s) representing the type of vm_map_entry into its own vm_maptype_t
type.  This is a precursor to adding a new VM mapping type for virtualized
page tables.

17 years agoSync with FreeBSD.
Sascha Wildner [Sun, 10 Sep 2006 22:04:38 +0000 (22:04 +0000)]
Sync with FreeBSD.

17 years agoRemove obsolete pre-Citrus file.
Sascha Wildner [Sun, 10 Sep 2006 21:42:45 +0000 (21:42 +0000)]
Remove obsolete pre-Citrus file.

17 years agoReserve upcall IDs 0-31 for system use.
Matthew Dillon [Sun, 10 Sep 2006 21:35:11 +0000 (21:35 +0000)]
Reserve upcall IDs 0-31 for system use.

17 years ago* Remove support for VAX-style and IBM mainframe-style floating-point
Sascha Wildner [Sun, 10 Sep 2006 21:22:32 +0000 (21:22 +0000)]
* Remove support for VAX-style and IBM mainframe-style floating-point
  arithmetic.

* Remove K&R function header support.

* Remove Bad_float_h support.

* While I'm here, perform some minor style cleanup.

17 years agoUpdate default make.conf and its manpage:
Sascha Wildner [Sun, 10 Sep 2006 20:53:21 +0000 (20:53 +0000)]
Update default make.conf and its manpage:

* Sync CPU types with share/mk/bsd.cpu.gcc{34,40}.mk.

* Add some generic words of warning about building with the
  experimental compiler.

* Add NO_GDB and WANT_LUKEMFTPD.

* Remove duplicate NO_SHARE.

* Remove ports specific FETCH_ENV.

Based-on-patch-by: Trevor Kendall <trevorjkendall@gmail.com>
Thanks to pavalos for noting that WANT_LUKEMFTPD is missing.

17 years agoRemove DEC Alpha support.
Sascha Wildner [Sun, 10 Sep 2006 10:09:25 +0000 (10:09 +0000)]
Remove DEC Alpha support.

17 years agoacpiioctl() can be left without ACPI_UNLOCK(), leading to
YONETANI Tomokazu [Sun, 10 Sep 2006 06:05:35 +0000 (06:05 +0000)]
acpiioctl() can be left without ACPI_UNLOCK(), leading to
critical section count mismatch panic.

17 years agounbreak LINT building
Sepherosa Ziehau [Sun, 10 Sep 2006 05:02:14 +0000 (05:02 +0000)]
unbreak LINT building

17 years agoAdd an ifmedia(4) manual page.
Sascha Wildner [Sun, 10 Sep 2006 04:14:01 +0000 (04:14 +0000)]
Add an ifmedia(4) manual page.

Taken-from: NetBSD (modified to reflect what's in our <net/if_media.h>).

Thanks to sephe for assistance.

17 years agoFix comment.
Sepherosa Ziehau [Sun, 10 Sep 2006 03:40:11 +0000 (03:40 +0000)]
Fix comment.

Noticed-by: swildner
17 years agoAdd "Turbo mode" and "Monitor mode"
Sepherosa Ziehau [Sun, 10 Sep 2006 02:57:28 +0000 (02:57 +0000)]
Add "Turbo mode" and "Monitor mode"

Noticed-by: swildner
17 years agoChange the kernel dev_t, representing a pointer to a specinfo structure,
Matthew Dillon [Sun, 10 Sep 2006 01:26:41 +0000 (01:26 +0000)]
Change the kernel dev_t, representing a pointer to a specinfo structure,
to cdev_t.  Change struct specinfo to struct cdev.  The name 'cdev' was taken
from FreeBSD.  Remove the dev_t shim for the kernel.

This commit generally removes the overloading of 'dev_t' between userland and
the kernel.

Also fix a bug in libkvm where a kernel dev_t (now cdev_t) was not being
properly converted to a userland dev_t.

17 years agoSilence warnings regarding yyunput being defined and never used.
Peter Avalos [Sat, 9 Sep 2006 23:24:43 +0000 (23:24 +0000)]
Silence warnings regarding yyunput being defined and never used.

17 years agoRemove (forgotten?) files from last year's upgrade.
Peter Avalos [Sat, 9 Sep 2006 21:03:16 +0000 (21:03 +0000)]
Remove (forgotten?) files from last year's upgrade.

17 years agoRename the kernel NODEV to NOCDEV to avoid conflicts with the userland NODEV.
Matthew Dillon [Sat, 9 Sep 2006 19:34:47 +0000 (19:34 +0000)]
Rename the kernel NODEV to NOCDEV to avoid conflicts with the userland NODEV.

17 years agoRename struct specinfo into struct cdev. Add a new typedef 'cdev_t' for cdev
Matthew Dillon [Sat, 9 Sep 2006 19:07:29 +0000 (19:07 +0000)]
Rename struct specinfo into struct cdev.  Add a new typedef 'cdev_t' for cdev
pointers.  Temporarily retain dev_t for cdev pointers until the kernel can
be converted over to cdev_t.

17 years agoGet rid of a struct device naming conflict.
Matthew Dillon [Sat, 9 Sep 2006 18:54:36 +0000 (18:54 +0000)]
Get rid of a struct device naming conflict.

17 years agoAttempt to fix a vnode<->namecache deadlock in NFS's handling of stale
Matthew Dillon [Sat, 9 Sep 2006 18:29:09 +0000 (18:29 +0000)]
Attempt to fix a vnode<->namecache deadlock in NFS's handling of stale
file handles.  This is a fairly bad hack.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>,
     Joerg Sonnenberger <joerg@britannica.bec.de>

17 years agoRevert last commits and make man treating the argument
Simon Schubert [Sat, 9 Sep 2006 17:34:46 +0000 (17:34 +0000)]
Revert last commits and make man treating the argument
as file name, as a last resort.

17 years agoMove conditional to support -t in combination with -F
Simon Schubert [Sat, 9 Sep 2006 16:28:44 +0000 (16:28 +0000)]
Move conditional to support -t in combination with -F

17 years agoAdvise to use make installworld instead of make world, it is not really
Simon Schubert [Sat, 9 Sep 2006 16:22:52 +0000 (16:22 +0000)]
Advise to use make installworld instead of make world, it is not really
needed to build a world each time you populate a jail.

17 years agoAdd man -F, which allows you to display files directly.
Simon Schubert [Sat, 9 Sep 2006 16:12:25 +0000 (16:12 +0000)]
Add man -F, which allows you to display files directly.

17 years agoRemove DESTDIR from MAKEFLAGS to unbreak make world
Simon Schubert [Sat, 9 Sep 2006 15:02:10 +0000 (15:02 +0000)]
Remove DESTDIR from MAKEFLAGS to unbreak make world

17 years agoAlias for 1000SX is not corrected by last commit. Fix it this time.
Sepherosa Ziehau [Sat, 9 Sep 2006 14:30:41 +0000 (14:30 +0000)]
Alias for 1000SX is not corrected by last commit.  Fix it this time.

Pointed-out-by: swildner
17 years ago- Correct aliases for 1000CX/1000SX
Sepherosa Ziehau [Sat, 9 Sep 2006 14:18:55 +0000 (14:18 +0000)]
- Correct aliases for 1000CX/1000SX
- Rename 1000TX to 1000T and fix comment concerning 1000BaseT, since there
  is no 1000BaseTX or 1000TX

Noticed-by: swildner
17 years agoCast sentinel for execl*() to (char *) to quiet gcc4 warnings.
Peter Avalos [Sat, 9 Sep 2006 02:21:49 +0000 (02:21 +0000)]
Cast sentinel for execl*() to (char *) to quiet gcc4 warnings.

17 years agoRemove out-of-date comment relating to gcc2.
Peter Avalos [Sat, 9 Sep 2006 00:30:48 +0000 (00:30 +0000)]
Remove out-of-date comment relating to gcc2.

17 years agoMark as WARNS6.
Peter Avalos [Thu, 7 Sep 2006 21:28:27 +0000 (21:28 +0000)]
Mark as WARNS6.

ANSI function declarations.

Remove previously commented out code.

Remove unneeded -ltermcap and -lcompat.

17 years agoWARNS6 cleanup (1803 warnings).
Peter Avalos [Thu, 7 Sep 2006 21:19:45 +0000 (21:19 +0000)]
WARNS6 cleanup (1803 warnings).

ANSI function declarations.

Staticize functions.

Rename local variables that shadow globals.

Use string functions from libc instead of creating our own.

Remove void casts for unchecked function returns.

Spell parameter correctly.

Don't try to return a value from void functions.

Remove compat library requirement (gtty -> ioctl).

Add new function "dowarp" that calls warp() from play.c.  (Taken from
NetBSD).

Change chars that are used for numeric values to shorts so they can be
properly used as array indexes.

17 years agoNuke old sendmail versions 8.13.4, 8.13.6 and 8.13.7.
Sascha Wildner [Thu, 7 Sep 2006 19:50:15 +0000 (19:50 +0000)]
Nuke old sendmail versions 8.13.4, 8.13.6 and 8.13.7.

17 years agoUse correct version number.
Sascha Wildner [Thu, 7 Sep 2006 19:00:58 +0000 (19:00 +0000)]
Use correct version number.

17 years agoFix malloc->kmalloc leftover to fix kernel without VGA_NO_MODE_CHANGE
YONETANI Tomokazu [Thu, 7 Sep 2006 07:14:48 +0000 (07:14 +0000)]
Fix malloc->kmalloc leftover to fix kernel without VGA_NO_MODE_CHANGE

17 years agoAdd camellia.h to the headers
Simon Schubert [Wed, 6 Sep 2006 17:10:26 +0000 (17:10 +0000)]
Add camellia.h to the headers

Reported-by: walt <wa1ter@myrealbox.com>
17 years agoUpdate to openssl-0.9.8c
Simon Schubert [Wed, 6 Sep 2006 12:40:55 +0000 (12:40 +0000)]
Update to openssl-0.9.8c

17 years agoUpdate READMEs
Simon Schubert [Wed, 6 Sep 2006 12:39:04 +0000 (12:39 +0000)]
Update READMEs

17 years agoMerge from vendor branch OPENSSL:
Simon Schubert [Wed, 6 Sep 2006 12:35:33 +0000 (12:35 +0000)]
Merge from vendor branch OPENSSL:
Import OpenSSL 0.9.8c

17 years agoImport OpenSSL 0.9.8c
Simon Schubert [Wed, 6 Sep 2006 12:35:33 +0000 (12:35 +0000)]
Import OpenSSL 0.9.8c

17 years agoFix malloc macros for dual-use header file.
Matthew Dillon [Tue, 5 Sep 2006 17:41:18 +0000 (17:41 +0000)]
Fix malloc macros for dual-use header file.

Reported-by: Thomas Schlesinger <schlesinger@netcologne.de>
17 years agoClean up module build failures when compiling a kernel without PCI.
Matthew Dillon [Tue, 5 Sep 2006 16:50:52 +0000 (16:50 +0000)]
Clean up module build failures when compiling a kernel without PCI.

17 years agoMove the code that eats certain PNP IDs into a ISA bus-specific file.
Matthew Dillon [Tue, 5 Sep 2006 16:19:01 +0000 (16:19 +0000)]
Move the code that eats certain PNP IDs into a ISA bus-specific file.

17 years agoRemove KMALLOC_ONLY from LINT
Matthew Dillon [Tue, 5 Sep 2006 15:38:58 +0000 (15:38 +0000)]
Remove KMALLOC_ONLY from LINT

17 years agoMake KMALLOC_ONLY the default, remove compatibility shims for the
Matthew Dillon [Tue, 5 Sep 2006 15:38:27 +0000 (15:38 +0000)]
Make KMALLOC_ONLY the default, remove compatibility shims for the
malloc/realloc/free renaming.

17 years agoRename malloc->kmalloc, free->kfree, and realloc->krealloc. Pass 2
Matthew Dillon [Tue, 5 Sep 2006 03:48:13 +0000 (03:48 +0000)]
Rename malloc->kmalloc, free->kfree, and realloc->krealloc.  Pass 2

17 years agoRename malloc->kmalloc, free->kfree, and realloc->krealloc. Pass 1
Matthew Dillon [Tue, 5 Sep 2006 00:55:51 +0000 (00:55 +0000)]
Rename malloc->kmalloc, free->kfree, and realloc->krealloc.  Pass 1

17 years agoCreate 'k' versions of the kernel malloc API.
Matthew Dillon [Mon, 4 Sep 2006 23:03:38 +0000 (23:03 +0000)]
Create 'k' versions of the kernel malloc API.

17 years agoSplit extern in6* declarations for libc vs the kernel.
Matthew Dillon [Mon, 4 Sep 2006 18:53:36 +0000 (18:53 +0000)]
Split extern in6* declarations for libc vs the kernel.

Reported-by: Thomas Schlesinger <schlesinger@netcologne.de>
17 years agoRename functions to avoid conflicts with libc.
Matthew Dillon [Mon, 4 Sep 2006 07:00:58 +0000 (07:00 +0000)]
Rename functions to avoid conflicts with libc.

17 years agoWARNS6 cleanups
Peter Avalos [Sun, 3 Sep 2006 23:47:56 +0000 (23:47 +0000)]
WARNS6 cleanups

ANSI function declarations

Remove void casts for unchecked function returns

Remove previously commented out code

17 years agoSync with NetBSD. Many fixes to include:
Peter Avalos [Sun, 3 Sep 2006 23:23:10 +0000 (23:23 +0000)]
Sync with NetBSD.  Many fixes to include:
-if getpwuid() returns null, print out the uid rather than dereferencing
-Control -d by #ifdef DEBUG; adjust usage message accordingly
-lseek to the beginning of the file in post() which may be called twice
if a bonus occurs
-add -t flag for slow terminals
-convert to curses and general cleanups
-security improvements which opens scorefile, then drops privs
-use POSIX tty semantics

17 years agoAdd rtw(4) manual page.
Sascha Wildner [Sun, 3 Sep 2006 20:02:06 +0000 (20:02 +0000)]
Add rtw(4) manual page.

Taken-from: NetBSD (with some modifications by me)

17 years agoRename functions to avoid conflicts with libc.
Matthew Dillon [Sun, 3 Sep 2006 18:52:30 +0000 (18:52 +0000)]
Rename functions to avoid conflicts with libc.

17 years agoRename functions to avoid conflicts with libc.
Matthew Dillon [Sun, 3 Sep 2006 18:29:17 +0000 (18:29 +0000)]
Rename functions to avoid conflicts with libc.

17 years agoRename functions to avoid conflicts with libc.
Matthew Dillon [Sun, 3 Sep 2006 17:55:34 +0000 (17:55 +0000)]
Rename functions to avoid conflicts with libc.

17 years agoRename functions to avoid conflicts with libc.
Matthew Dillon [Sun, 3 Sep 2006 17:43:59 +0000 (17:43 +0000)]
Rename functions to avoid conflicts with libc.

17 years ago-WARNS6 cleanup (1556 warnings)
Peter Avalos [Sun, 3 Sep 2006 17:33:13 +0000 (17:33 +0000)]
-WARNS6 cleanup (1556 warnings)
-ANSI function declarations
-staticize functions
-remove previously commented out code
-remove unneeded -ltermcap and -lcompat
-rename local variable names that shadow globals
-remove void casts for unchecked function returns
-move global variable declarations in externs.h to globals.c
-redefine the blockalarm() and unblockalarm() macros using POSIX and
tty semantics (taken from NetBSD)
-fix a typo in main() that wasn't incrementing the randomize variable
-use variable argument lists froms stdarg where applicable
-add a new function fmtship() which puts ship info in a string that can
later be printed (taken from NetBSD)
-add DragonFly keyword

17 years agoRename functions to avoid conflicts with libc.
Matthew Dillon [Sun, 3 Sep 2006 17:31:55 +0000 (17:31 +0000)]
Rename functions to avoid conflicts with libc.

17 years agoAdd skeleton procedures for the vmspace_*() series of system calls which
Matthew Dillon [Sun, 3 Sep 2006 17:11:51 +0000 (17:11 +0000)]
Add skeleton procedures for the vmspace_*() series of system calls which
will be used by virtual kernels to implement processes.

17 years agoAdd comment:
Sepherosa Ziehau [Sun, 3 Sep 2006 09:07:20 +0000 (09:07 +0000)]
Add comment:
- acx needs wlan_ratectl_onoe and wlan_ratectl_amrr to function properly
- rtw needs wlan_ratectl_onoe to function properly

17 years ago- Add comment about wlan_ratectl_onoe
Sepherosa Ziehau [Sun, 3 Sep 2006 08:46:59 +0000 (08:46 +0000)]
- Add comment about wlan_ratectl_onoe
- Comment out rtw, it needs wlan_ratectl_onoe to work properly (*)
- Add comment about (*)

17 years ago- Port rtw(4) from NetBSD, which supports various RealTek 8180 chip based
Sepherosa Ziehau [Sun, 3 Sep 2006 07:37:58 +0000 (07:37 +0000)]
- Port rtw(4) from NetBSD, which supports various RealTek 8180 chip based
  wireless NIC.
- Put NetBSD 802.11 duration related structures and functions in rtw.c and
  rtwvar.h, and rename them to rtw_xxxx.
- Fix various ieee80211_node leakages in TX path.
- Use spare RX DMA map to recover from bus_dmamap_load_mbuf() failure.
- Utilize TX rate control algorithm framework in our 802.11 layer, support
  Onoe TX rate control algorithm.
- Hook rtw(4) into module building.
- Hook rtw(4) into GENERIC and LINT.

Thank David Young and many other people for their work on this driver.

Tested with a Linksys WPC11 ver.4

17 years agoregen
Sepherosa Ziehau [Sun, 3 Sep 2006 06:08:19 +0000 (06:08 +0000)]
regen

17 years ago- Add Belkin vendor id
Sepherosa Ziehau [Sun, 3 Sep 2006 06:07:32 +0000 (06:07 +0000)]
- Add Belkin vendor id
- Add PCI ids of Realtek 8180 based chips

17 years agoAdd missing MODULE_DEPEND().
Sepherosa Ziehau [Sun, 3 Sep 2006 05:05:25 +0000 (05:05 +0000)]
Add missing MODULE_DEPEND().

17 years ago- Correct static array overrun.
Sepherosa Ziehau [Sun, 3 Sep 2006 02:24:45 +0000 (02:24 +0000)]
- Correct static array overrun.
- Avoid NULL pointer dereference.

Obtained-from: NetBSD via FreeBSD

17 years agofixup list station support:
Sepherosa Ziehau [Sun, 3 Sep 2006 02:17:54 +0000 (02:17 +0000)]
fixup list station support:
o add sanity check to avoid possible looping
o use intended api for IEEE80211_IOC_STA_INFO
o when operating in sta mode get the sta info for the ap

Obtained-from: FreeBSD (sam@freebsd.org)

17 years agoFix an off-by-one bug.
Sepherosa Ziehau [Sun, 3 Sep 2006 02:01:52 +0000 (02:01 +0000)]
Fix an off-by-one bug.

Obtained-from: FreeBSD

17 years agoFill content of hostapd.conf.5
Sepherosa Ziehau [Sun, 3 Sep 2006 01:58:43 +0000 (01:58 +0000)]
Fill content of hostapd.conf.5

Obtained-from: NetBSD via FreeBSD

17 years ago-WARNS6 cleanups (3953 warnings)
Peter Avalos [Sat, 2 Sep 2006 19:31:07 +0000 (19:31 +0000)]
-WARNS6 cleanups (3953 warnings)
-ANSI function declarations
-staticize functions
-use boolean from stdbool.h
-remove unneeded termcap library
-remove void casts for unchecked return values
-rename local variable names that shadow globals
-remove previously commented out code

17 years agoFix a case where a spinlock was not being released.
Matthew Dillon [Sat, 2 Sep 2006 16:51:44 +0000 (16:51 +0000)]
Fix a case where a spinlock was not being released.

Reported-by: Peter Avalos <pavalos@theshell.com>
17 years agoAdd nfe(4) manual page.
Sascha Wildner [Sat, 2 Sep 2006 11:55:19 +0000 (11:55 +0000)]
Add nfe(4) manual page.

Obtained-from: OpenBSD (with some changes taken from FreeBSD)

17 years agoAdd nVidia MCP61/65 GigE support.
Sepherosa Ziehau [Sat, 2 Sep 2006 11:44:58 +0000 (11:44 +0000)]
Add nVidia MCP61/65 GigE support.

Obtained-from: OpenBSD (brad@openbsd.org)
Reminded-by: swildner@
17 years agoregen
Sepherosa Ziehau [Sat, 2 Sep 2006 11:33:26 +0000 (11:33 +0000)]
regen

17 years agoComment out references to ifmedia(4) which we don't have yet.
Sascha Wildner [Sat, 2 Sep 2006 11:28:02 +0000 (11:28 +0000)]
Comment out references to ifmedia(4) which we don't have yet.

17 years agoAdd more nVidia GigE PCI ids.
Sepherosa Ziehau [Sat, 2 Sep 2006 10:25:42 +0000 (10:25 +0000)]
Add more nVidia GigE PCI ids.

Obtained-from: OpenBSD (brad@openbsd.org)
Reminded-by: swildner@
17 years ago- Move pcap_{get_selectable_fd,pcap_inject}() from 802_11/wpa_supplicant/Packet32.c
Sepherosa Ziehau [Sat, 2 Sep 2006 05:40:35 +0000 (05:40 +0000)]
- Move pcap_{get_selectable_fd,pcap_inject}() from 802_11/wpa_supplicant/Packet32.c
  into 802_11/l2_packet.c
- Add building infrastructures for hostapd(8) and hostapd_cli(8)
- Hook hostapd(8) and hostapd_cli(8) into building

Obtained-from: FreeBSD (mainly sam@freebsd.org)

17 years agoMerge from vendor branch HOSTAPD:
Sepherosa Ziehau [Sat, 2 Sep 2006 05:28:36 +0000 (05:28 +0000)]
Merge from vendor branch HOSTAPD:
Import of hostapd 0.4.9

17 years agoImport of hostapd 0.4.9
Sepherosa Ziehau [Sat, 2 Sep 2006 05:28:36 +0000 (05:28 +0000)]
Import of hostapd 0.4.9

17 years ago- More reverse engineer: acx111 does support multi-rate retry!
Sepherosa Ziehau [Fri, 1 Sep 2006 15:13:15 +0000 (15:13 +0000)]
- More reverse engineer: acx111 does support multi-rate retry!
  Collaborated-with: Darron Broad <darron@kewl.org>
- Utilize the new TX rate control algorithm framework in 802.11 layer.
- Support Onoe TX rate control algorithm for acx100.
- Support Onoe TX rate control algorithm and AMRR TX rate control algorithm
  for acx111.  Use AMRR for acx111 by default.
- Use ieee80211_beacon_alloc() in acx_set_{probe_resp,beacon}_tmplt(),
  this corrects IBSS mode support and makes HOSTAP mode support possible.
- Add support for HOSTAP mode.

17 years agoImplement a generic TX rate control algorithm framework in 802.11 layer.
Sepherosa Ziehau [Fri, 1 Sep 2006 15:12:12 +0000 (15:12 +0000)]
Implement a generic TX rate control algorithm framework in 802.11 layer.
It is highly modulized so TX rate control algorithms can be added with ease.
Only limited interfaces are exported for driver to use, so most of the WiFi
drivers can be converted without too much trouble.  It does not affect WiFi
drivers which are unaware of the new framework yet.  Also, the new framework
allows TX rate control algorithm to be changed without touching the 802.11
state machine or reinitializing WiFi devices.

Two TX rate control algorithms are factored out from ath(4) driver:
1) Onoe TX rate control algorithm, which is suitable for almost any kinds of
   WiFi NIC driver, especially for 11b devices. (*)
2) AMRR TX rate control algorithm, which should _only_ be used by the WiFi NIC
   which supports multi-rate retry.  More information of this TX rate control
   algorithm is available at:
   http://www-sop.inria.fr/rapports/sophia/RR-5208.html

In order to use the framework, individual WiFi driver needs to do following:
1) Tell the framework, which TX rate control algorithms it supports and which
   one to be used as the default, by setting up ieee80211com.ic_ratectl.
2) Call ieee80211_ratectl_newstate() in driver's own newstate() function.
3) When set up hardware TX descriptors, which normally contain TX rate related
   fields, instead of accessing ieee80211_node.ni_txrate directly, call
   ieee80211_ratectl_findrate() to get a rate set from the framework.
4) When TX completes, feed TX state (e.g. failure, number of retries) to the
   framework by calling ieee80211_ratectl_tx_complete().

Teach ifconfig(8) to print and set the TX rate control algorithm.

# (*) There is no formal paper for this algorithm, but following two papers
#     have brief introduction of this TX rate control algorithm:
#     http://www-sop.inria.fr/rapports/sophia/RR-5208.html
#     http://www.pdos.lcs.mit.edu/papers/jbicket-ms.pdf

17 years agoRemove reference to obsolete brconfig(8) command.
Sascha Wildner [Tue, 29 Aug 2006 22:26:32 +0000 (22:26 +0000)]
Remove reference to obsolete brconfig(8) command.

17 years agoUpdate X11 path.
Sascha Wildner [Tue, 29 Aug 2006 07:41:46 +0000 (07:41 +0000)]
Update X11 path.

Submitted-by: Victor Balada Diaz <victor@bsdes.net>
17 years ago-WARNS6 cleanup (229 warnings)
Peter Avalos [Sun, 27 Aug 2006 21:45:07 +0000 (21:45 +0000)]
-WARNS6 cleanup (229 warnings)
-No need to link -ltermcap and -lcompat
-ANSI function declarations
-staticize functions
-add prototypes for all functions
-Remove previously commented out and unused code and variables
-Add DragonFly keyword where needed

17 years ago-WARNS6 cleanup (68 warnings)
Peter Avalos [Sun, 27 Aug 2006 17:17:23 +0000 (17:17 +0000)]
-WARNS6 cleanup (68 warnings)
-No need to link in -ltermcap or -lcompat
-ANSI function declarations
-Remove (void) casts for unchecked function returns
-Rename local variables that shadow global declarations
-Actually check if read() and write() are successful, and act
appropriately.  (taken from NetBSD)
-Use struct iovec and readv/writev in varpush() so that the function
declaration isn't variable.  (taken from NetBSD)

17 years agoUse type lwpid_t for lwp_tid.
David Xu [Sun, 27 Aug 2006 12:54:59 +0000 (12:54 +0000)]
Use type lwpid_t for lwp_tid.

17 years agoHook nfe(4) into LINT
Sepherosa Ziehau [Sun, 27 Aug 2006 03:43:15 +0000 (03:43 +0000)]
Hook nfe(4) into LINT

17 years agoAdd an entry for nfe(4)
Sepherosa Ziehau [Sun, 27 Aug 2006 03:41:46 +0000 (03:41 +0000)]
Add an entry for nfe(4)

17 years agoHook nfe(4) into module building
Sepherosa Ziehau [Sun, 27 Aug 2006 03:36:08 +0000 (03:36 +0000)]
Hook nfe(4) into module building

17 years ago- Port nfe(4) from OpenBSD.
Sepherosa Ziehau [Sun, 27 Aug 2006 03:28:21 +0000 (03:28 +0000)]
- Port nfe(4) from OpenBSD.
- Use spare RX DMA map to recover from bus_dmamap_load_mbuf() failure in
  nfe_newbuf_sda().
- In nfe_encap(), properly handle excessive fragmented frame with m_defrag(),
  instead of descard it.
- Use additional serializer to protect jumbo buffer pool.
- In nfe_enacp(), set NFE_TX_VALID for each segments after all segment
  are in place.  Otherwise TX engine will be confused and never generates
  TX interrupts, which triggers the unpleasant "watchdog timeout".
Diagnosed-and-fixed-by: dillon@
- Add polling(4) support.  By: dillon@

Thank Jonathan Gray <jsg@openbsd.org> and
Damien Bergamini <damien.bergamini@free.fr> for their work on this driver.

Thank Matthew Dillon (dillon@) for diagnosing and fixing the serious bug
in TX path.

Tested-by: dillon@ corecode@(an early version)
17 years agoMove atomic_intr_t to machine/stdint.h and predent __ to reduce
Joerg Sonnenberger [Sat, 26 Aug 2006 17:43:54 +0000 (17:43 +0000)]
Move atomic_intr_t to machine/stdint.h and predent __ to reduce
namespace pollution. Include that file in sys/serialize.h instead
of machine/atomic.h to dramatically reduce namespace pollution of
userland applications.

17 years ago-WARNS6 cleanup (4670 warnings)
Peter Avalos [Sat, 26 Aug 2006 17:05:05 +0000 (17:05 +0000)]
-WARNS6 cleanup (4670 warnings)
-ANSI function declarations
-Staticize functions
-Rename local variables that shadowed global declarations
-Remove an extra semicolon after an if statement in makemaze()
-Remove code that was previously commented out, or that was unused
-Use NULL for string pointers == 0 and don't redefine NULL
-Add function protoypes for all functions
-Add macros for stty and gtty that use ioctl which removes the dependency
on libcompat.
-Add DragonFly keyword where needed
-Add new arrays (potionhide/scrollhide) to prevent modifying string
constants, then fix problems associated with this hiding
mechanism.  (taken from NetBSD)