summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Close a race between concurrent calls to ufsdirhash_recycle() andjhb2008-09-221-5/+10
| | | | | | | | ufsdirhash_free() introduced in my last commit by removing the dirhash about to be free'd in ufsdirhash_free() from the global dirhash list before dropping the sx lock. Tested by: kris
* Mark the first slice of a NanoBSD image 'active' by default.bms2008-09-221-0/+4
| | | | | | | This fixes USB boot (not yet merged to HEAD) with 3 flavours of BIOS I've seen. Approved by: phk
* Add ng_rmnode_flags() so the caller can pass NG_QUEUE and have the nodethompsa2008-09-222-2/+9
| | | | | | destroyed asynchronously due to locking or other constraints. Reviewed by: julian
* Introduce a hooks layer for the MPSAFE TTY layer.ed2008-09-228-48/+341
| | | | | | | | | | | | | | | | | | | | One of the features that prevented us from fixing some of the TTY consumers to work once again, was an interface that allowed consumers to do the following: - `Sniff' incoming data, which is used by the snp(4) driver. - Take direct control of the input and output paths of a TTY, which is used by ng_tty(4), ppp(4), sl(4), etc. There's no practical advantage in committing a hooks layer without having any consumers. In P4 there is a preliminary port of snp(4) and thompsa@ is busy porting ng_tty(4) to this interface. I already want to have it in the tree, because this may stimulate others to work on the remaining modules. Discussed with: thompsa Obtained from: //depot/projects/mpsafetty/...
* Fix usage of mac_vnode_check_open() in linuxulator - last argumenttrasz2008-09-221-1/+1
| | | | | | should be VREAD, not FREAD. Approved by: rwatson (mentor)
* Fix style(9) issue in TTY header files: document function argument names.ed2008-09-225-70/+76
| | | | | | | | | | | | | According to style(9), function argument names should only be omitted for prototypes that are exported to userspace. This means we should document the function arguments in the TTY header files, because they are only used in userspace. While there, change the type of the buffer argument of ttydisc_rint_bypass() to `const void *' instead of `char *'. Requested by: attilio Obtained from: //depot/projects/mpsafetty/...
* Add freebsd32 compat shims for ioctl(2)obrien2008-09-222-0/+78
| | | | CDIOREADTOCHEADER and CDIOREADTOCENTRYS requests.
* Make the make_pseudo_driver.sh shellscript work again.ed2008-09-221-2/+2
| | | | | | | | | | | It seems this script was broken because of the SYSINIT changes and a rather awkward variable initialisation. For some reason the make_device_driver.sh script is also broken, related to BUS_SETUP_INTR. I have no experience with FreeBSD's interrupt handling, so I hope someone else is willing to take a look at that shell script. PR: misc/126435 MFC after: 1 month
* Regenerate for r183270.obrien2008-09-224-7/+14
|
* Add freebsd32 compat shims for ioctl(2)obrien2008-09-225-2/+218
| | | | MDIOCATTACH, MDIOCDETACH, MDIOCQUERY, and MDIOCLIST requests.
* add back regdomain.xmlsam2008-09-221-0/+4
| | | | Noticed by: jhay
* Document changes in behaviour due to sparse CPU numbering support.jkoshy2008-09-226-27/+46
|
* Support sparsely numbered CPUs.jkoshy2008-09-226-81/+173
| | | | Requested by: obrien, alfred (long ago)
* When invoking the udp_send() from udp6_send() due to use of a v6-mappedrwatson2008-09-221-3/+13
| | | | | | | | | IPv4 address, first drop the udbinfo and inpcb locks, which will otherwise be recursed. This leads to a potential minor race, but is preferable to a deadlock when acquiring a read lock after a write lock on the inpcb. MFC after: 3 days Reported by: Norbert Papke <fbsd-ml@scrapper.ca>, lioux
* Add workaround for occasional packet loss issue of JMC250 A2yongari2008-09-222-3/+20
| | | | | | | | when it runs on half-duplex media. While I'm here add register definition for GPREG1. ATM the GPREG1 register is only valid for JMC250 A1/A2. Submitted by: Ethan at JMicron
* Unbreak the build.keramida2008-09-221-1/+1
|
* Unbreak G3 support. G3 processors don't have an L3 cache, so we shouldn't ↵nwhitehorn2008-09-221-3/+8
| | | | | | try to program it. Approved by: marcel (mentor)
* MIMO power save and RIFS; while here also update per-node state/flags for ampdusam2008-09-222-1/+72
|
* "ampdudensity -" is too subtle; use "NA" for any and accept it as a parametersam2008-09-221-2/+2
|
* cleanup bss node setup; syncs w/ p4 state that's been in use for monthssam2008-09-221-8/+10
|
* cleanup after mergesam2008-09-221-1/+0
|
* Fix handling of shortgi: use the local configuration (and implicitlysam2008-09-223-2/+25
| | | | | device capabilities) to decide whether to use short gi. Drivers inspect ni_flags to decide whether to send a frame w/ short sgi.
* RIFS support; needs driver callback for dynamic state changesam2008-09-228-8/+54
|
* MIMO power save support; still needs callbacks for notifying driverssam2008-09-218-6/+88
| | | | of dynamic state change in station mode.
* Revamp ht ie handling:sam2008-09-214-49/+110
| | | | | | | | | | | | | | | o change ieee80211_parse_htcap and ieee80211_parse_htinfo to save only internal state obtained from the ie's; no dynamic state such as ni_chw is altered o add ieee80211_ht_updateparams to parse ht cap+info ie's and update dynamic node state o change ieee80211_ht_node_init to not take an htcap ie that is parsed; instead have the caller make a separate call as one caller wants to parse the ie while another wants to parse both cap+info ie's and update state so can better do this with ieee80211_ht_updateparams These changes fix sta mode state handling where the node's channel width was shifted to ht20/ht40 prematurely.
* don't propagate ht bss occupancy changes to legacy vaps;sam2008-09-211-0/+3
| | | | they won't have an htinfo ie to update
* o widen ni_flags as it's going to be full shortlysam2008-09-211-17/+17
| | | | o shuffle members to minimize holes
* Add current transmit parameters for fixed rate handling so driverssam2008-09-212-0/+46
| | | | | | | | | | | don't duplicate this. These are setup according to the role of the node--the bss node for ap and adhoc modes need to use parameters that are the least common denomimator of all nodes in the bss; otherwise we are setting up params for a station joining a bss and we select those according to the capabilities of the station. This stuff needs more work as we do extra work due to having setup in common code paths shared by nodes using both roles.
* change ieee80211_ampdu_stop to take an explicit reason codesam2008-09-212-6/+8
|
* simplify debug msgsam2008-09-211-3/+2
|
* Crypto api changes:sam2008-09-215-50/+56
| | | | | | | | | | | | | | o don't use the key index to identify when the driver has been asked to allocate a key slot, use an explicit flag; allows drivers to force s/w fallback for entries in the global table o change callback api to allocate driver resources for a crypto key: - de-const the key parameter so drivers can muck with the flags - on callback failure don't automatically try to setup s/w crypto; instead the driver must now mark the key entry for s/w crypto and the caller will re-attach the cipher module NB: api change permits drivers more control over fallback to s/w crypto (e.g. based on a limited number of h/w key slots)
* Cleanup AMPDU handling:sam2008-09-217-62/+78
| | | | | | | | | | | | | | | | | | | | | | For receive: o explicitly tag rx frames w/ M_AMPDU instead of passing frames through the reorder processing according to the node having HT and the frame being QoS data o relax ieee80211_ampdu_reorder asserts to allow any frame to be passed in, unsuitable frames are returned to the caller for normal processing; this permits drivers that cannot inspect the PLCP to mark all data frames as potential ampdu candidates with only a small penalty o add M_AMPDU_MPDU to identify frames resubmitted from the reorder q For transmit: o tag aggregation candidates with M_AMPDU_MPDU o fix the QoS ack policy set in ampdu subframes; we only support immediate BA streams which should be marked for "normal ack" to get implicit block ack behaviour; interestingly certain vendor parts BA'd frames with the 11e BA ack policy set o do not assign a sequence # to aggregation candidates; this must be done when frames are submitted for transmit (NB: this can/will be handled better when aggregation is pulled up to net80211)
* Always update ic_lastnonht so we track overlapping legacy bsssam2008-09-211-10/+9
| | | | | | | properly; was doing this only on a change in the protection mode so the advertised protection mode in the beacon would oscillate. Submitted by: Chris Zimmermann
* Cleanup starting seq# for tx ampdu:sam2008-09-213-7/+9
| | | | | | o use txa_start to form the addba request and purge txa_seqstart o fill txa_start before calling ic_addba_request to permit drivers to override when they handle seq# generation (e.g. mwl)
* check for undefined identifierssam2008-09-211-12/+59
|
* o fix spelling of EOSPsam2008-09-211-4/+4
| | | | o correct SMPS values
* add new build knobs and jigger some existing controls to improvesam2008-09-2142-185/+666
| | | | | | | | control over the result of buildworld and installworld; this especially helps packaging systems such as nanobsd Reviewed by: various (posted to arch) MFC after: 1 month
* Add the check of the table number.rik2008-09-211-0/+17
|
* Export IPFW_TABLES_MAX value for compiled in defaults.rik2008-09-211-1/+6
|
* Make fstat() on a pseudo-terminal master return sane timestamps.ed2008-09-211-5/+9
| | | | | | | | | Because pseudo-terminal master file descriptors no longer have a vnode underneath, we have to fill in fstat() values ourselves. Make our implementation somewhat sane by returning the timestamps of the TTY device node that corresponds with our file descriptor. Obtained from: //depot/projects/mpsafettty/...
* Now that the number of clist consumers have dropped massively, trim downed2008-09-213-187/+16
| | | | | | | | | | | | | the code to prevent useless waste of space. - Remove support for quote bits. There is not a single driver that needs these bits anymore. This means putc() now accepts a char instead of an int. - Remove the unneeded catq() and nextc() routines. They were only used by the old TTY layer. - Convert the clist code to use ANSI C prototypes.
* Include $NANO_NAME in the completed message. This is nice if you aresimon2008-09-211-1/+1
| | | | | building multiple NanoBSD images at once to keep track of what is running and what isn't.
* Prevent an integer overflow in vm_pageout_page_stats() on machines with aalc2008-09-211-1/+2
| | | | | | | | large number of physical pages. PR: 126158 Submitted by: Dmitry Tejblum MFC after: 3 days
* Correct suser(9) entry.antoine2008-09-211-1/+2
|
* Already initialize the vfs timestamps inside the cdev upon allocation.ed2008-09-211-0/+4
| | | | | | | | | | | | | In the MPSAFE TTY branch I noticed the vfs timestamps inside devfs were allocated with 0, where the getattr() routine bumps the timestamps to boottime if the value is below 3600. The reason why it has been designed like this, is because timestamps during boot are likely to be invalid. This means that device nodes that are created on demand (posix_openpt()) have timestamps with a value of boottime, which is not what we want. Solve this by calling vfs_timestamp() inside devfs_alloc(). Discussed with: kib
* The vendor area is the proper home for these files now.simon2008-09-212-93/+0
|
* Move table list to a separate function.rik2008-09-211-35/+44
|
* Fix error message content.zec2008-09-211-1/+1
| | | | | Approved by: julian (mentor) MFC after: 3 days
* fix compilation on 64-bit platform w/ ATH_DEBUGsam2008-09-211-1/+2
|
* fix memory smash on lp64 platforms; mostly noticeable in user modesam2008-09-211-0/+5
| | | | as being unable to associate
OpenPOWER on IntegriCloud