]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoRemove or update several stale comments.
rwatson [Fri, 3 Oct 2008 09:01:55 +0000 (09:01 +0000)]
Remove or update several stale comments.

A bit of whitespace/style cleanup.

Update copyright.

MFC after: 3 days (applicable changes)

15 years agoUpdate ng_tty for MPSAFE TTY.
thompsa [Fri, 3 Oct 2008 05:14:54 +0000 (05:14 +0000)]
Update ng_tty for MPSAFE TTY.

This changes from a line discipline to the tty_hooks mechanism. Data will come
in directly via rint_bypass and sent to the peer node in a single mbuf.

As line disciplines are no longer used a new netgraph command called
NGM_TTY_SET_TTY is used to attach the tty. This takes a pointer to to the open
file descriptor of the tty and registers the tty hooks. When the tty disappears
the node will shutdown.

Thanks to: ed
Sponsored by: Hobnob, Inc

15 years agoAdd hardware MAC statistics support. Register information was
yongari [Fri, 3 Oct 2008 03:58:16 +0000 (03:58 +0000)]
Add hardware MAC statistics support. Register information was
obtained from Linux forcedeth driver.
While I'm here move creating a sysctl node for process_limit to
function nfe_sysctl_node().

Tested by: "Arno J. Klaassen" < arno <at> heho dot snv dot jussieu dot fr >

15 years agoFix bug in LRO on T304 whereby a packet could be sent to the wrong interface's ifp.
kmacy [Fri, 3 Oct 2008 00:50:26 +0000 (00:50 +0000)]
Fix bug in LRO on T304 whereby a packet could be sent to the wrong interface's ifp.

Submitted by: Chelsio Inc.
MFC after: 1 day

15 years agoReturn BUS_PROBE_GENERIC rather BUS_PROBE_DEFAULT for generic CBB we match.
imp [Thu, 2 Oct 2008 22:50:11 +0000 (22:50 +0000)]
Return BUS_PROBE_GENERIC rather BUS_PROBE_DEFAULT for generic CBB we match.

Reviewed by: jhb@

15 years agoAllow static hints to override kenv.
bms [Thu, 2 Oct 2008 22:31:30 +0000 (22:31 +0000)]
Allow static hints to override kenv.

15 years agoOops, initialize sections and sections_end to NULL.
jhb [Thu, 2 Oct 2008 20:42:10 +0000 (20:42 +0000)]
Oops, initialize sections and sections_end to NULL.

Submitted by: Navdeep Parhar
MFC after: 1 week

15 years agoCorrectly handle Intel g33 chips and add support for g45 chips
rnoland [Thu, 2 Oct 2008 20:29:45 +0000 (20:29 +0000)]
Correctly handle Intel g33 chips and add support for g45 chips

g33 based chips use a different method of identifying the gtt size.
g45 based chips gtt is located in a different area of stolen memory.

Approved by: jhb (mentor)
MFC after: 2 weeks

15 years agoadd duplicate cmd entries for vlan and vlandev that are marked !clone
sam [Thu, 2 Oct 2008 20:03:41 +0000 (20:03 +0000)]
add duplicate cmd entries for vlan and vlandev that are marked !clone
so they can be used when not doing a create operation

Reviewed by: ed

15 years agoAdd ICH10 PCI id's.
sos [Thu, 2 Oct 2008 19:18:28 +0000 (19:18 +0000)]
Add ICH10 PCI id's.
Submitted by: Xin Li

Fix the number of PATA ports on newer ICHX chips, they have just 1 port not 2.

15 years agoRemove __Break_the_struct_layout_for_now field from struct pr_usrreqs,
rwatson [Thu, 2 Oct 2008 18:12:42 +0000 (18:12 +0000)]
Remove __Break_the_struct_layout_for_now field from struct pr_usrreqs,
added in FreeBSD 6.x to break the binary layout of the data structure
during a conversion to C99 sparse structure initialization.  Probably
should have been removed before 7.0, but 8.0 will do.

15 years agoStep 1.5 of importing the network stack virtualization infrastructure
zec [Thu, 2 Oct 2008 15:37:58 +0000 (15:37 +0000)]
Step 1.5 of importing the network stack virtualization infrastructure
from the vimage project, as per plan established at devsummit 08/08:
http://wiki.freebsd.org/Image/Notes200808DevSummit

Introduce INIT_VNET_*() initializer macros, VNET_FOREACH() iterator
macros, and CURVNET_SET() context setting macros, all currently
resolving to NOPs.

Prepare for virtualization of selected SYSCTL objects by introducing a
family of SYSCTL_V_*() macros, currently resolving to their global
counterparts, i.e. SYSCTL_V_INT() == SYSCTL_INT().

Move selected #defines from sys/sys/vimage.h to newly introduced header
files specific to virtualized subsystems (sys/net/vnet.h,
sys/netinet/vinet.h etc.).

All the changes are verified to have zero functional impact at this
point in time by doing MD5 comparision between pre- and post-change
object files(*).

(*) netipsec/keysock.c did not validate depending on compile time options.

Implemented by: julian, bz, brooks, zec
Reviewed by: julian, bz, brooks, kris, rwatson, ...
Approved by: julian (mentor)
Obtained from: //depot/projects/vimage-commit2/...
X-MFC after: never
Sponsored by: NLnet Foundation, The FreeBSD Foundation

15 years agoAllow clock_if.m to be referenced by kernel modules, this is useful
bms [Thu, 2 Oct 2008 14:45:29 +0000 (14:45 +0000)]
Allow clock_if.m to be referenced by kernel modules, this is useful
for testing that RTC drivers compile, though they generally aren't
set up for unload.

15 years agoOnly build the bsnmpd netgraph module if MK_NETGRAPH_SUPPORT is set.
bms [Thu, 2 Oct 2008 14:26:56 +0000 (14:26 +0000)]
Only build the bsnmpd netgraph module if MK_NETGRAPH_SUPPORT is set.

15 years ago- Use the new gv_write_header function to write out the header when removing a
lulf [Thu, 2 Oct 2008 10:01:05 +0000 (10:01 +0000)]
- Use the new gv_write_header function to write out the header when removing a
  drive to make sure that the header is in the correct format.

15 years ago- Remove unneeded macro since the config_length field in the header was changed
lulf [Thu, 2 Oct 2008 09:35:47 +0000 (09:35 +0000)]
- Remove unneeded macro since the config_length field in the header was changed
  to 64 bit in the new format.

15 years ago- Document event numbers associated with event names.
jkoshy [Thu, 2 Oct 2008 08:53:06 +0000 (08:53 +0000)]
- Document event numbers associated with event names.
- Document an event that was missed out earlier.
- Sort event names alphabetically.

15 years agoDefine and use MMC_SECTOR_SIZE.
imp [Thu, 2 Oct 2008 07:06:59 +0000 (07:06 +0000)]
Define and use MMC_SECTOR_SIZE.
Make mmc_get_media_size now return an off_t and remove now useless cast.

15 years agoMAXPHYS seems more stable on the AT91RM9200 boards that I have. We
imp [Thu, 2 Oct 2008 07:00:31 +0000 (07:00 +0000)]
MAXPHYS seems more stable on the AT91RM9200 boards that I have.  We
may need to ask the host controller for the right number to use
here...

15 years ago- Document event numbers.
jkoshy [Thu, 2 Oct 2008 06:37:33 +0000 (06:37 +0000)]
- Document event numbers.
- Sort event names.

15 years agoDon't forget to match on a CLASS of PCIC_BRIDGE as well as subclass
imp [Thu, 2 Oct 2008 06:29:45 +0000 (06:29 +0000)]
Don't forget to match on a CLASS of PCIC_BRIDGE as well as subclass
PCIS_BRIDGE_CARDBUS.  Otherwise, we may hit a few false positives....

15 years ago-mdoc tweaks.
jkoshy [Thu, 2 Oct 2008 06:21:07 +0000 (06:21 +0000)]
-mdoc tweaks.

15 years agoApply upcoming fix for 2008g release.
edwin [Thu, 2 Oct 2008 06:18:36 +0000 (06:18 +0000)]
Apply upcoming fix for 2008g release.

15 years agoCorrect misspellings.
jkoshy [Thu, 2 Oct 2008 06:18:09 +0000 (06:18 +0000)]
Correct misspellings.

15 years ago- Document event numbers.
jkoshy [Thu, 2 Oct 2008 06:15:40 +0000 (06:15 +0000)]
- Document event numbers.
- Correct misspellings of two event names.

15 years agoDocument event numbers alongside event names.
jkoshy [Thu, 2 Oct 2008 04:46:00 +0000 (04:46 +0000)]
Document event numbers alongside event names.

Requested by: Arun Sharma <arun at sharma-home dot net>

15 years agoMention support for nForce MCP77 and MCP79.
yongari [Thu, 2 Oct 2008 02:23:59 +0000 (02:23 +0000)]
Mention support for nForce MCP77 and MCP79.
Touch Dd.

15 years agoDefault to ignoring potentially evil IPv6 Neighbor Solicitation
cperciva [Thu, 2 Oct 2008 00:32:59 +0000 (00:32 +0000)]
Default to ignoring potentially evil IPv6 Neighbor Solicitation
messages.

Approved by:    so (cperciva)
Approved by: re (kensmith)
Security:       FreeBSD-SA-08:10.nd6
Thanks to:      jinmei, bz

15 years agoReduce the impact of svnversion. Just scan the src/sys tree, not all of
peter [Wed, 1 Oct 2008 22:52:20 +0000 (22:52 +0000)]
Reduce the impact of svnversion.  Just scan the src/sys tree, not all of
src.

15 years agoCollect N identical (or near identical) mkdumpheader() implementations into
peter [Wed, 1 Oct 2008 22:08:53 +0000 (22:08 +0000)]
Collect N identical (or near identical) mkdumpheader() implementations into
one, as threatened in the comment.  Textdump magic can be passed in.

15 years agoMake the CPU column in top always be 2 characters and print in decimal
jhb [Wed, 1 Oct 2008 22:01:07 +0000 (22:01 +0000)]
Make the CPU column in top always be 2 characters and print in decimal
rather than hex.

Requested by: rwatson

15 years agoBump MAXCPU to 32 now that 32 CPU x86 systems exist.
jhb [Wed, 1 Oct 2008 21:59:04 +0000 (21:59 +0000)]
Bump MAXCPU to 32 now that 32 CPU x86 systems exist.

Tested by: rwatson, mdtansca
Approved by: peter

15 years agoEnable shared locks for path name lookups on supported filesystems (NFS
jhb [Wed, 1 Oct 2008 19:25:37 +0000 (19:25 +0000)]
Enable shared locks for path name lookups on supported filesystems (NFS
client, UFS, and ZFS) by default.

15 years agoRemove the LOOKUP_SHARED kernel option. Instead, make vfs.lookup_shared
jhb [Wed, 1 Oct 2008 19:24:16 +0000 (19:24 +0000)]
Remove the LOOKUP_SHARED kernel option.  Instead, make vfs.lookup_shared
a loader tunable (it was already a sysctl).

15 years agoWait until after dropping the receive socket buffer lock to allocate space
jhb [Wed, 1 Oct 2008 19:14:05 +0000 (19:14 +0000)]
Wait until after dropping the receive socket buffer lock to allocate space
to store the socket address stored in the first mbuf in a packet chain.
This reduces contention on the lock and CPU system time in certain UDP
workloads.

Tested by: ps
Reviewed by: rwatson
MFC after: 1 week

15 years agoRemove compat support for vaps_<ifn> and vap_create_<ifn> variables as
brooks [Wed, 1 Oct 2008 18:46:46 +0000 (18:46 +0000)]
Remove compat support for vaps_<ifn> and vap_create_<ifn> variables as
promised in r178527.  These variables were never in a release version.

Reminded by: sam

15 years agoRemove function prototypes of nonexistent TTY functions.
ed [Wed, 1 Oct 2008 17:41:41 +0000 (17:41 +0000)]
Remove function prototypes of nonexistent TTY functions.

It turns out I overlooked some function prototypes that were actually
TTY related, but were stored in <sys/conf.h> to implement the D_TTY
flag. Remove these prototypes now that they don't exist anymore.

15 years agoUpdate to Myri10GE firmware version 1.4.33 from 1.4.29. Relevant changes include:
gallatin [Wed, 1 Oct 2008 16:23:35 +0000 (16:23 +0000)]
Update to Myri10GE firmware version 1.4.33 from 1.4.29.  Relevant changes include:

- Support for Myricom 10G-PCIE-8B NICs

- multi-slice firmware: fix a bug when the presence of 32-bit or
 64-bit DMA addresses for interrupt queues and data is not uniform across
 slices.

- Improves automatic selection between ethp_z8e/eth_z8e

Sponsored by: Myricom Inc.

15 years ago- Make gvinum header on-disk structure consistent on all platforms by storing
lulf [Wed, 1 Oct 2008 14:50:36 +0000 (14:50 +0000)]
- Make gvinum header on-disk structure consistent on all platforms by storing
  the gvinum header in fields of fixed size and in a big endian byte order
  rather than the size and byte order of the actual platform.

Note that the change is backwards compatible with the old gvinum configuration
format, but will save the configuration in the new format when the 'saveconfig'
command is executed.

Submitted by: Rick C. Petty <rick-freebsd -at- kiwi-computer.com>

15 years agoVarious cleanups for soreceive_dgram():
rwatson [Wed, 1 Oct 2008 13:26:52 +0000 (13:26 +0000)]
Various cleanups for soreceive_dgram():

- Update or remove comments that were left over from the original
  soreceive_generic() implementation.  Quite a few were misleading in the
  context of the new code.
- Since soreceive_dgram() has a simpler structure, replace several gotos
  with a while loop making the invariants more clear.
- In the blocking while loop, don't try to handle cases incompatible with
  the loop invariant (since m is always NULL, don't check for and handle
  non-NULL).
- Don't drop and re-acquire the socket buffer lock unnecessarily after
  sbwait() returns, which may help reduce lock contention (etc).
- Assume PR_ATOMIC since we assert it at the top of the function.

MFC after: 3 days

15 years agoRemove critical_enter() and critical_exit(): pmap_growkernel is called
imp [Wed, 1 Oct 2008 05:47:17 +0000 (05:47 +0000)]
Remove critical_enter() and critical_exit(): pmap_growkernel is called
with kernel_map->system_mtx held so these aren't needed.  Add an
assertion to make sure this is the case.

Also, fix a minor style(9) nit.

Reviewed by: alc@

15 years agoAdd device ids for MCP77/79 and set appropriate support flags.
yongari [Wed, 1 Oct 2008 00:17:54 +0000 (00:17 +0000)]
Add device ids for MCP77/79 and set appropriate support flags.

Obtained from:  OpenBSD
PR: kern/127529

15 years agoupdate callers of vm_fault_hold_user_pages
kmacy [Tue, 30 Sep 2008 23:45:22 +0000 (23:45 +0000)]
update callers of vm_fault_hold_user_pages

MFC after: 1 week

15 years agoRefactor vm_fault_hold_user_pages:
kmacy [Tue, 30 Sep 2008 23:44:44 +0000 (23:44 +0000)]
Refactor vm_fault_hold_user_pages:
- simplify page hold logic
- allow pages for processes other than that of curthread to
  have pages held
- normalize the interface to more closely resemble the functions in
  sys/vm

MFC after: 1 week

15 years agoMake sure that optical PHYs work ...
kmacy [Tue, 30 Sep 2008 21:21:52 +0000 (21:21 +0000)]
Make sure that optical PHYs work ...

Submitted by: Chelsio Inc.
MFC after: 1 day

15 years agocosmetic changes and style fixes
marius [Tue, 30 Sep 2008 20:53:15 +0000 (20:53 +0000)]
cosmetic changes and style fixes

15 years agoUse bus_get_dma_tag() so fatm(4) works on platforms requiring it.
marius [Tue, 30 Sep 2008 18:52:43 +0000 (18:52 +0000)]
Use bus_get_dma_tag() so fatm(4) works on platforms requiring it.

Reported and tested by: Sean Thomas Caron
MFC after: 3 days

15 years agoUpdate the function name in several assertions in soreceive_dgram().
jhb [Tue, 30 Sep 2008 18:44:26 +0000 (18:44 +0000)]
Update the function name in several assertions in soreceive_dgram().

Approved by: rwatson
MFC after: 3 days

15 years agoImprove the `pkill -t' handling, which I changed in my previous commit.
ed [Tue, 30 Sep 2008 17:30:39 +0000 (17:30 +0000)]
Improve the `pkill -t' handling, which I changed in my previous commit.

In my previous commit I disabled pkill(1)'s automatic prepending of the
"tty" string when `pkill -t' was being used. Re-enable it and stat()
both possible device names when called.

Requested by: jhb, rwatson (MFC)
MFC after: 1 month

15 years agoMake example commands working.
glebius [Tue, 30 Sep 2008 14:24:03 +0000 (14:24 +0000)]
Make example commands working.

Reviewed by: benjsc

15 years ago Do not mangle if_oerrors of the underlying interface. This counter
glebius [Tue, 30 Sep 2008 14:18:38 +0000 (14:18 +0000)]
  Do not mangle if_oerrors of the underlying interface. This counter
belongs solely to the driver.
  We don't lose any statistics with this change, because in a error
case the drop counter on the interface output queue is always incremented.

Reviewed by: thompsa

15 years ago- A call to close(2) might overwrite errno and thus give a wrong error message
lulf [Tue, 30 Sep 2008 11:46:14 +0000 (11:46 +0000)]
- A call to close(2) might overwrite errno and thus give a wrong error message
  on g_providername failure.

Suggested by: pjd
Approved by: pjd (mentor)

15 years agoAdd unistd.h to the getosreldate(3) manpage.
kib [Tue, 30 Sep 2008 11:25:55 +0000 (11:25 +0000)]
Add unistd.h to the getosreldate(3) manpage.
Update referenced example to include unistd.h per manpage.
Update example to be more style(9)-ish, silence warnings and add
FreeBSD id to the source file.

15 years agoRemove empty directories recreated by the SVN conversion.
edwin [Tue, 30 Sep 2008 11:01:53 +0000 (11:01 +0000)]
Remove empty directories recreated by the SVN conversion.

15 years agoSave extended address register prior to switching to 1000BASE-X
yongari [Tue, 30 Sep 2008 08:18:38 +0000 (08:18 +0000)]
Save extended address register prior to switching to 1000BASE-X
only mode and restore original value of extended address register
instead of overwriting it with page 1. There are still instance
information passing issue(e.g configured media type: fiber or
copper) from driver to PHY layer but this change make the selected
PHY work with 88E1112 PHY.

Reported by: Krzysztof Jedruczyk < beaker <at> hot dot pl >
Tested by: Krzysztof Jedruczyk < beaker <at> hot dot pl >

15 years agoAdd Vitesse VSC8211 PHY which is found on Planex GU-1000T.
yongari [Tue, 30 Sep 2008 07:30:05 +0000 (07:30 +0000)]
Add Vitesse VSC8211 PHY which is found on Planex GU-1000T.

HW donated by: nork

15 years agoExplicitly mark IFM_HDX for half-duplex media.
yongari [Tue, 30 Sep 2008 07:24:20 +0000 (07:24 +0000)]
Explicitly mark IFM_HDX for half-duplex media.

15 years agoReport current link state while auto-negotiation is in progress.
yongari [Tue, 30 Sep 2008 07:22:02 +0000 (07:22 +0000)]
Report current link state while auto-negotiation is in progress.

15 years agoUse mii_anegticks instead of hardcoded MII_ANEGTICKS.
yongari [Tue, 30 Sep 2008 07:20:26 +0000 (07:20 +0000)]
Use mii_anegticks instead of hardcoded MII_ANEGTICKS.

15 years agoAnnounce link loss right after it happens.
yongari [Tue, 30 Sep 2008 07:19:01 +0000 (07:19 +0000)]
Announce link loss right after it happens.

15 years ago- Improve error message given on g_providername call failure.
lulf [Tue, 30 Sep 2008 07:18:49 +0000 (07:18 +0000)]
- Improve error message given on g_providername call failure.
- While there, make error messages consistent with the rest.

Approved by: kib (mentor)

15 years agoIf mbuf is not writable get a writable copy before invoking
yongari [Tue, 30 Sep 2008 04:52:30 +0000 (04:52 +0000)]
If mbuf is not writable get a writable copy before invoking
m_pullup(9).

Tested by: Garrett Cooper < yanefbsd <at> gmail dot com >

15 years agoAlways pullup mbuf prior to accessing TCP header.
yongari [Tue, 30 Sep 2008 04:47:49 +0000 (04:47 +0000)]
Always pullup mbuf prior to accessing TCP header.
This should fix occasional Tx checksum corruption issue.

Reported by: Garrett Cooper < yanefbsd <at> gmail dot com >
Tested by: Garrett Cooper < yanefbsd <at> gmail dot com >

15 years agoVerify high-res birthtime support on FreeBSD.
kientzle [Tue, 30 Sep 2008 04:13:21 +0000 (04:13 +0000)]
Verify high-res birthtime support on FreeBSD.

MFC after: 30 days

15 years agoMfP4: restore birth time data to disk + more thorough tests for
kientzle [Tue, 30 Sep 2008 04:02:36 +0000 (04:02 +0000)]
MfP4: restore birth time data to disk + more thorough tests for
time restore to disk.

MFC after: 30 days

15 years agoMfP4: Store/read birthtime data in pax format.
kientzle [Tue, 30 Sep 2008 03:57:07 +0000 (03:57 +0000)]
MfP4: Store/read birthtime data in pax format.

Submitted by: Pedro Giffuni
MFC after: 30 days

15 years agoMfP4: Support for storing birthtime in archive_entry objects.
kientzle [Tue, 30 Sep 2008 03:53:03 +0000 (03:53 +0000)]
MfP4: Support for storing birthtime in archive_entry objects.

Submitted by: Pedro Giffuni
MFC after: 30 days

15 years agoImprove support for multiple block read/write. This code is currently
imp [Tue, 30 Sep 2008 02:34:45 +0000 (02:34 +0000)]
Improve support for multiple block read/write.  This code is currently
disabled by default because there's problems with it on AT91RM9200,
currently the only host controller in the tree.  I've not had time to
track those problems to ground.  I'm committing because this is
important for other host controllers that are in the pipeline.

Submitted by: mav@

15 years agoProperly implement read only. Also, the caps implementation is wrong
imp [Tue, 30 Sep 2008 02:32:41 +0000 (02:32 +0000)]
Properly implement read only.  Also, the caps implementation is wrong
here, so I'm backing it out.

15 years agovm_fault_hold_user_pages will not return if an address in the range passed in is...
kmacy [Mon, 29 Sep 2008 22:13:29 +0000 (22:13 +0000)]
vm_fault_hold_user_pages will not return if an address in the range passed in is mapped RO
but an RW mapping exists for the underlying page. This change fixes the bug by using the
page / NULL returned from pmap_extract_and_hold to determine whether or not vm_fault needs
to be called.

The bug was pointed out by alc.

MFC after: 3 days

15 years agoMove the code for doing out-of-memory grass from vm_pageout_scan()
kib [Mon, 29 Sep 2008 19:45:12 +0000 (19:45 +0000)]
Move the code for doing out-of-memory grass from vm_pageout_scan()
into the separate function vm_pageout_oom(). Supply a parameter for
vm_pageout_oom() describing a reason for the call.

Call vm_pageout_oom() from the swp_pager_meta_build() when swap zone
is exhausted.

Reviewed by: alc
Tested by: pho, jhb
MFC after: 2 weeks

15 years agoMake the media size return the block rather than the bytes on the device.
imp [Mon, 29 Sep 2008 18:55:45 +0000 (18:55 +0000)]
Make the media size return the block rather than the bytes on the device.

15 years agoExplicitly set data to NULL rather than relying mmc_wait_for_cmd() to
imp [Mon, 29 Sep 2008 18:33:08 +0000 (18:33 +0000)]
Explicitly set data to NULL rather than relying mmc_wait_for_cmd() to
do it for us.  There may be commands we have to wait for that need to
set data.

Submitted by: mav@

15 years agoMinor style fixes from mav@ (with similar problems fixed where I noticed
imp [Mon, 29 Sep 2008 18:17:23 +0000 (18:17 +0000)]
Minor style fixes from mav@ (with similar problems fixed where I noticed
them):
#define<tab>
zero memory when we allocate it
Put device name in error message.

Submitted by: mav@

15 years agoConform to style(9) for return (foo); The files were a mix before.
imp [Mon, 29 Sep 2008 18:05:26 +0000 (18:05 +0000)]
Conform to style(9) for return (foo);  The files were a mix before.

Submitted by: mav@

15 years agoDistinguish between cmd/parameters used for clone operations and
sam [Mon, 29 Sep 2008 16:27:32 +0000 (16:27 +0000)]
Distinguish between cmd/parameters used for clone operations and
all others.  Use this to disambiguate cmd line arguments that can
be either clone params or regular parameters so, in particular,
"bssid" again works as a regular parameter.

While here leverage the above to improve the logic for flushing
clone operations on the first !clone cmd line parameter.

Reviewed by: jhay

15 years agoSince in some cases (when found obsolete) 'make' can be builded earlier
ache [Mon, 29 Sep 2008 16:13:28 +0000 (16:13 +0000)]
Since in some cases (when found obsolete) 'make' can be builded earlier
at 'upgrade_checks' target, put arc4random_uniform() into
__FreeBSD_version ifdef.

15 years agoSupport for CPU sets is going to appear in 7.1 before 8.0.
jhb [Mon, 29 Sep 2008 15:44:48 +0000 (15:44 +0000)]
Support for CPU sets is going to appear in 7.1 before 8.0.

MFC after: 3 days

15 years agoExpand comments relating various detach/free/drop inpcb routines.
rwatson [Mon, 29 Sep 2008 13:50:17 +0000 (13:50 +0000)]
Expand comments relating various detach/free/drop inpcb routines.

MFC after: 3 days

15 years agoFix typo in comment.
rwatson [Mon, 29 Sep 2008 13:48:48 +0000 (13:48 +0000)]
Fix typo in comment.

MFC after: 3 days

15 years agoOur groff doesn't understand $Mdocdate$, so replace them with bare dates.
des [Mon, 29 Sep 2008 10:53:05 +0000 (10:53 +0000)]
Our groff doesn't understand $Mdocdate$, so replace them with bare dates.

MFC after: 3 days

15 years agoo Add missed dot.
maxim [Mon, 29 Sep 2008 05:31:27 +0000 (05:31 +0000)]
o Add missed dot.

15 years agoReturn G_PART_PROBE_PRI_HIGH instead of G_PART_PROBE_PRI_NORM
marcel [Mon, 29 Sep 2008 02:48:22 +0000 (02:48 +0000)]
Return G_PART_PROBE_PRI_HIGH instead of G_PART_PROBE_PRI_NORM
if the probe succeeds. This guarantees that the BSD scheme
wins over the MBR scheme when MBR gets to probe first. Build-
or link-time conditions can cause schemes to end up in the
linker set in a different order. Normally BSD is before MBR
in the linker set and as such get to probe first. But typically
when the kernel gets rebuild or relinked, this can change.

15 years agoInsert the null scheme at the head. This does not change any
marcel [Mon, 29 Sep 2008 02:39:02 +0000 (02:39 +0000)]
Insert the null scheme at the head. This does not change any
functionality, but creates an invariant: the first element
on the list is always the null scheme.

15 years agoConvert all C++ comments to C style. There's lots of folks that don't
imp [Mon, 29 Sep 2008 01:32:21 +0000 (01:32 +0000)]
Convert all C++ comments to C style.  There's lots of folks that don't
like them and they don't add enough to be worth standing out.

15 years agoThe parameters to the MMCBR_ACQUIRE_HOST and MMCBR_RELEAES_HOST were
imp [Mon, 29 Sep 2008 01:28:30 +0000 (01:28 +0000)]
The parameters to the MMCBR_ACQUIRE_HOST and MMCBR_RELEAES_HOST were
the device in question, rather than the bus doing the requesting.  Fix
it so that it is the bus.

Submitted by: mav@

15 years agoImplement MMCBR_IVAR_CAPS for AT91 MCI device.
imp [Sun, 28 Sep 2008 23:37:56 +0000 (23:37 +0000)]
Implement MMCBR_IVAR_CAPS for AT91 MCI device.

Submitted by: mav@ (well, not this one, but the base impl was)

15 years agoAdd "caps" word to host bridge.
imp [Sun, 28 Sep 2008 23:37:06 +0000 (23:37 +0000)]
Add "caps" word to host bridge.

15 years agoImplement power down, and power down the bus on detach.
imp [Sun, 28 Sep 2008 23:24:52 +0000 (23:24 +0000)]
Implement power down, and power down the bus on detach.

Submitted by: mav@

15 years agoWhen a device is read only, fail all non-read BIO requests.
imp [Sun, 28 Sep 2008 22:42:29 +0000 (22:42 +0000)]
When a device is read only, fail all non-read BIO requests.

Submitted by: mav@

15 years agoPropigate read-only status of cards. Right now it is read only at
imp [Sun, 28 Sep 2008 22:40:11 +0000 (22:40 +0000)]
Propigate read-only status of cards.  Right now it is read only at
device attach time.  We may need to read this more often in the
future, but for now simplicity of implementation wins.

Submitted by: mav@

15 years agoThe OCR register defines both acceptable voltage bits, as well as bits
imp [Sun, 28 Sep 2008 22:27:29 +0000 (22:27 +0000)]
The OCR register defines both acceptable voltage bits, as well as bits
for other things.  Mask out the voltage only bits when returning the
Vdd mask for voltage computation.

Submitted by: mav@

15 years agoOther busses on the system use the official capitalization for the
imp [Sun, 28 Sep 2008 22:23:06 +0000 (22:23 +0000)]
Other busses on the system use the official capitalization for the
technology.  Make mmc conform to that.

Submitted by: mav@

15 years agoFix line continuation whitespace.
imp [Sun, 28 Sep 2008 22:21:53 +0000 (22:21 +0000)]
Fix line continuation whitespace.

Submitted by: mav@

15 years agoSmall typo in the makedev(3) manpage.
ed [Sun, 28 Sep 2008 20:26:16 +0000 (20:26 +0000)]
Small typo in the makedev(3) manpage.

devtoname(3) is a nonexistent function. We do have devtoname(9), but
that's entirely different. The correct function is devname(3).

15 years agoSeveral documentation fixups related to device minor/major numbers:
ed [Sun, 28 Sep 2008 20:15:45 +0000 (20:15 +0000)]
Several documentation fixups related to device minor/major numbers:

- Document the minor(3), major(3) and makedev(3) macro's. They also
  apply to umajor() and uminor() in the kernel, but hopefully we'll sort
  that out one day.

- Briefly dev2unit() inside the make_dev(9) manual page, since this is
  now the preferred macro to obtain character device unit numbers inside
  the kernel.

- Remove the device_ids(9) manual page. It contains highly inaccurate
  information, such as a description of the nonexistent major().

15 years agoCatch up with svn r96606 (cvs rev 1.127 2002/05/14 20:35:29) of
imp [Sun, 28 Sep 2008 19:44:38 +0000 (19:44 +0000)]
Catch up with svn r96606 (cvs rev 1.127 2002/05/14 20:35:29) of
sys/param.h and move the MI numbers out of here.  Also move the MI
defines.  Also remove a couple defines not in use (not sure if it is
age, or OpenBSD origins for thse).  Note the current values that are
overrides that appear to be odd in some way.

More cleanup could be done here: NBPG appears to be spelled PAGE_SIZE
these days.  There's new ways to spell PGOFSET and PGSHIFT too, I
think.  These constants duplicate the MI constants and are sprinkled
into the mips code only.  Further investigation is needed.

15 years agoRevert previous commit. The prototype has been moved to unistd.h
marcel [Sun, 28 Sep 2008 19:17:54 +0000 (19:17 +0000)]
Revert previous commit. The prototype has been moved to unistd.h

15 years agoRemove ipi_all() and ipi_self() as the former hasn't been used at
marius [Sun, 28 Sep 2008 18:34:14 +0000 (18:34 +0000)]
Remove ipi_all() and ipi_self() as the former hasn't been used at
all to date and the latter also is only used in ia64 and powerpc
code which no longer serves a real purpose after bring-up and just
can be removed as well. Note that architectures like sun4u also
provide no means of implementing IPI'ing a CPU itself natively
in the first place.

Suggested by: jhb
Reviewed by: arch, grehan, jhb

15 years agoDon't automatically prepend the "tty" prefix to `pkill -t' arguments.
ed [Sun, 28 Sep 2008 16:44:15 +0000 (16:44 +0000)]
Don't automatically prepend the "tty" prefix to `pkill -t' arguments.

Because we now enforce UNIX98-style PTY's, we now use a lot of TTY's
that don't have the traditional /dev/ttyXX naming scheme. pkill(1)'s -t
flag automatically prepended the word "tty" to each TTY that was passed
on the command line. This meant that `pkill -t pts/0' was actually
converted to /dev/ttypts/0. Disable this broken behaviour for now.

Reported by: erwin