summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use bus_{read,write}_4 rather than bus_space_{read,write}_4.yongari2009-11-192-6/+2
|
* - Initialize callout before it is used in atestop() during attach.jhb2009-11-191-9/+5
| | | | | | | | - Reorder detach so that ether_ifdetach() is called first. This removes the race that ATE_FLAG_DETACHING closed, so that flag can be removed. - Trim a duplicate clearing of IFF_DRV_RUNNING. Reviewed by: imp
* style(9)yongari2009-11-191-59/+59
|
* Fix compile after previous "harmless" commit.jhb2009-11-191-10/+8
| | | | Pointy hat to: jhb
* Remove extra spce at the EOL.yongari2009-11-193-12/+12
|
* Add MSI support.yongari2009-11-192-10/+44
|
* Destroy driver mutex in device detach.yongari2009-11-191-1/+2
|
* Remove support code for FreeBSD 6.x versions.yongari2009-11-191-5/+0
|
* Remove commented out reference to if_watchdog and an assignment of zero tojhb2009-11-191-4/+0
| | | | | | if_timer. Reviewed by: scottl
* Remove complex macros that were used to compute bits values.yongari2009-11-193-221/+198
| | | | | | | Although these macros may have its own strength, its complex definition make hard to read the code. Approved by: delphij
* Several fixes to this driver:jhb2009-11-192-81/+81
| | | | | | | | | | | | | - Overhaul the locking to avoid recursion and add missing locking in a few places. - Don't schedule a task to call vge_start() from contexts that are safe to call vge_start() directly. Just invoke the routine directly instead (this is what all of the other NIC drivers I am familiar with do). Note that vge(4) does not use an interrupt filter handler which is the primary reason some other drivers use tasks. - Add a new private timer to drive the watchdog timer instead of using if_watchdog and if_timer. - Fixup detach by calling ether_ifdetach() before stopping the interface.
* Several fixes to these drivers. Note that these two drivers are actuallyjhb2009-11-194-72/+114
| | | | | | | | | | | | | | | | | | | | just two different attachments (EISA and PCI) to a single driver. - Add real locking. Previously these drivers only acquired their lock in their interrupt handler or in the ioctl routine (but too broadly in the latter). No locking was used for the stack calling down into the driver via if_init() or if_start(), for device shutdown or detach. Also, the interrupt handler held the driver lock while calling if_input(). All this stuff should be fixed in the locking changes. - Really fix these drivers to handle if_alloc(). The front-end attachments were using if_initname() before the ifnet was allocated. Fix this by moving some of the duplicated logic from each driver into pdq_ifattach(). While here, make pdq_ifattach() return an error so that the driver just fails to attach if if_alloc() fails rather than panic'ing. Also, defer freeing the ifnet until the driver has stopped using it during detach. - Add a new private timer to drive the watchdog timer. - Pass the softc pointer to the interrupt handlers instead of the device_t so we can avoid the use of device_get_softc() and to better match what other drivers do.
* - This driver used the if_watchdog timer both as a watchdog on transmit andjhb2009-11-192-23/+43
| | | | | | | auto-negotiation. To make this simpler and easier to understand I have split this out into two separate timers. One just manages the auto-neg side of things and one is a transmit watchdog. Neither uses if_watchdog. - Call ether_ifdetach() at the start of detach.
* - Use callout_init_mtx() instead of callout_init(..., CALLOUT_MPSAFE).jhb2009-11-192-33/+22
| | | | | | | | | | | - Add a missing callout_drain() to detach. - Hook into the stats timer and use that to drive the transmit watchdog instead of using if_watchdog. - Run the stats timer every second to match other drivers instead of every other second. - Remove dubious callout handling that stopped the timer only to start it again while holding the driver lock without dropping it in between the stop and the start.
* This driver has two modes, a netgraph mode and an ifnet mode. In thejhb2009-11-192-18/+15
| | | | | netgraph mode it used a private timer to drive the transmit watchdog. In the ifnet mode it used if_watchdog. Now it always uses the private timer.
* These drivers only set if_timer but never set if_watchdog. Just removejhb2009-11-193-8/+0
| | | | the assignments to if_timer.
* Add nanobsd example for the PC Engines ALIX board (serial console).mr2009-11-1918-0/+1312
|
* Tune CAM ATA kernel options a bit. Move PMP support from da to scbus andmav2009-11-191-2/+2
| | | | add ada device option, according to man page.
* Provide an effective (relocated) address when building modules metadata.raj2009-11-191-1/+3
| | | | | | | This lets modules loaded dynamically in loader(8) work for U-Boot-based platforms. MFC after: 1 week
* Fix cpuid output on E500 core.raj2009-11-191-0/+2
|
* Add ada(4) man page.mav2009-11-192-0/+139
|
* Fix tinderbox build for i386 and sync amd64 with it.jkim2009-11-192-2/+2
|
* Extend ddb(4) "show mount" command to print active string mount options.jh2009-11-191-0/+13
| | | | | | | | Note that only option names are printed, not values. Reviewed by: pjd Approved by: trasz (mentor) MFC after: 2 weeks
* Adapt r197136 to IPv6 stack:bms2009-11-191-2/+21
| | | | | | | Comment some flawed assumptions in in6p_join_group() about mixing SSM full-state and delta-based APIs. MFC after: 1 day
* Adapt r197135 to IPv6 stack:bms2009-11-191-8/+14
| | | | | | | | | | | | | Don't allow joins w/o source on an existing group. This is almost always pilot error. We don't need to check for group filter UNDEFINED state at t1, because we only ever allocate filters with their groups, so we unconditionally reject such calls with EINVAL. Trying to change the active filter mode w/o going through IPV6_MSFILTER is also disallowed. MFC after: 1 day
* Adapt r197132 to IPv6 stack:bms2009-11-191-15/+35
| | | | | | | | | | | | | | | | | Tighten input checking in in6p_join_group(): * Don't try to use the source address, when its family is unspecified. * If we get a join without a source, on an existing inclusive mode group, this is an error, as it would change the filter mode. Fix a problem with the handling of in6_mfilter for new memberships: * Do not rely on im6f being NULL; it is explicitly initialized to a non-NULL pointer when constructing a membership. * Explicitly initialize *im6f to EX mode when the source address is unspecified. This fixes a problem with in_mfilter slot recycling in the join path. MFC after: 1 day
* Correct a comment.bms2009-11-191-1/+1
| | | | MFC after: 1 day
* Adapt r197314 to IPv6 stack:bms2009-11-191-3/+5
| | | | | | | Return ENOBUFS consistently if user attempts to exceed in_mcast_maxsocksrc resource limit. MFC after: 1 day
* Adapt r197130 to IPv6 stack:bms2009-11-191-1/+3
| | | | | | | Fix an obvious logic error in the IPv4 multicast leave processing, where the filter mode vector was not updated correctly after the leave. MFC after: 1 day
* Adapt the fix for IGMPv2 in r199287 for the IPv6 stack.bms2009-11-191-8/+30
| | | | | | Only multicast routing is affected by the issue. MFC after: 1 day
* fix spelling mistakedarrenr2009-11-191-1/+1
|
* opt_* headers are included using the quoted form.marcel2009-11-192-2/+2
|
* Add a test case for very long BPF program.jkim2009-11-192-1/+1031
|
* - Change internal function bpf_jit_compile() to return allocated size ofjkim2009-11-184-26/+22
| | | | | | the generated binary and remove page size limitation for userland. - Use contigmalloc(9)/contigfree(9) instead of malloc(9)/free(9) to make sure the generated binary aligns properly and make it physically contiguous.
* - Make BPF JIT compiler working again in userland. We are limiting size ofjkim2009-11-186-27/+57
| | | | | generated native binary to page size for now. - Update copyright date and fix some style nits.
* Add WorldB SKU.rpaulo2009-11-181-0/+27
| | | | | Reviewed by: sam MFC after: 1 week
* Simplify both the invocation and the implementation of vm_fault() for wiringalc2009-11-184-37/+16
| | | | | | | | | | pages. (Note: Claims made in the comments about the handling of breakpoints in wired pages have been false for roughly a decade. This and another bug involving breakpoints will be fixed in coming changes.) Reviewed by: kib
* Fix mistyped \n in makc's label.mandree2009-11-181-1/+1
| | | | | This and previous commit have been... Approved by: garga (mentor)
* Add mandree@ and mentorship relations with garga/miwi.mandree2009-11-181-0/+3
|
* Fix a bug where the system panics when a SHUTDOWN is received with antuexen2009-11-181-0/+3
| | | | | | | illegal TSN. Approved by: rrs (mentor) MFC after: ASAP
* Make following functions be cancellation points:davidxu2009-11-181-4/+55
| | | | | | | mq_receive mq_send mq_timereceive mq_timedsend
* link libpthread because the librt really needs it to fully function.davidxu2009-11-181-0/+1
|
* Fix compiler warnings.davidxu2009-11-181-2/+2
|
* Add a missing .Ed tag.delphij2009-11-181-0/+1
| | | | MFC after: 2 weeks
* rc.early(8) was removed as of 20090530 so remove manual page referencedelphij2009-11-183-16/+3
| | | | | | to it. MFC after: 1 week
* Get rid of unused fields addr_over which is never really used,tuexen2009-11-173-10/+0
| | | | | | only copied around. Approved by: rrs (mentor)
* Add pwait utility, which waits for any process to terminate.jilles2009-11-174-0/+229
| | | | | | | | | | | This is similar to the Solaris utility of the same name. Some use cases: * rc.subr's wait_for_pids * interactive use, e.g. to shut down the computer when some task is done even if the task is already running Discussed on: hackers@
* - Unbreak build with KLD_DEBUG definedgonzo2009-11-171-1/+6
| | | | | - Add debug.kld_debug sysctl to control KLD debugging level - Print information about KLD dependencies with debug enabled
* Unroll copying of the registers in {g,s}et_mcontext() and limit itmarius2009-11-171-6/+56
| | | | | | | | | to the set actually restored by tl0_ret() instead of using the whole trapframe. Additionally skip %g7 as that register is used as the userland TLS pointer. PR: 140523 MFC after: 1 week
* Use always LIST_EMPTY instead of sometime SCTP_LIST_EMPTY,tuexen2009-11-174-10/+9
| | | | | | | which is defined as LIST_EMPTY. Approved by: rrs (mentor) MFC after: 1 month
OpenPOWER on IntegriCloud