summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Prevent the ofwdump manpage from being deleted by make delete-old onnwhitehorn2010-10-151-1/+1
| | | | PowerPC.
* Stop hard coding nm(1) and make it overridable.jkim2010-10-142-5/+9
|
* Embellish this testcase a little bit to be more clear what the output isobrien2010-10-142-0/+18
| | | | | | and why. The first case is correct usage which has but one correct output. The 2nd and 3rd cases are incorrect usage in which the exact output is not standardized and various shells give various allowable output.
* Fixes to mps_user_command():mdf2010-10-141-15/+8
| | | | | | | | | - fix the leak of command struct on error - simplify the cleanup logic - EINPROGRESS is not a fatal error - buggy comment and error message Reviewed by: ken
* Add new USB device IDs to the list of supported devices.hselasky2010-10-141-0/+2
| | | | | PR: usb/151043 Approved by: thompsa (mentor)
* - Add more USB devices to usbdevs and rename some previously unknown ones.hselasky2010-10-142-0/+3
| | | | | | | | - Add more USB mass storage quirks. Submitted by: Dmitry Luhtionov PR: usb/149934, usb/143045 Approved by: thompsa (mentor)
* Add a NetBSD-compatible mii_attach(), which is intended to eventuallymarius2010-10-144-100/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | replace mii_phy_probe() altogether. Compared to the latter the advantages of mii_attach() are: - intended to be called multiple times in order to attach PHYs in multiple passes (f.e. in order to only use sub-ranges of the 0 to MII_NPHY - 1 range) - being able to pass along the capability mask from the NIC to the PHY drivers - being able to specify at which address (phyloc) to probe for a PHY (instead of always probing at all addresses from 0 to MII_NPHY - 1) - being able to specify which PHY instance (offloc) to attach - being able to pass along MIIF_* flags from the NIC to the PHY drivers (f.e. as required to indicated to the PHY drivers that flow control is supported by the NIC driver, which actually is the motivation for this change). While at it, I used the opportunity to get rid of some hacks in mii(4) like miibus_probe() generally doing work besides sheer probing and the "EVIL HACK" (which will vanish entirely along with mii_phy_probe()) by passing the struct ifnet pointer via an argument of mii_attach() as well as to fix some resource leaks in mii(4) in case something fails. Commits which will update the PHY drivers to honor the MII flags passed down from the NIC drivers and take advantage of mii_attach() to get rid of certain types of hacks in NIC and PHY drivers as well as a conversion of the remaining uses of mii_phy_probe() will follow shortly. Reviewed by: jhb, yongari Obtained from: NetBSD (partially)
* Add more USB device IDs to supported list of devices.hselasky2010-10-141-0/+2
| | | | | | Submitted by: Nick Hibma PR: usb/149900 Approved by: thompsa (mentor)
* Update manual with regarding to the status of calendars/calendar.judaic.edwin2010-10-142-5/+4
|
* Explicitly lower the PIL to 0 as part of enabling interrupts, similar tomarius2010-10-141-0/+1
| | | | | | | | | | | what is done on other platforms. Unlike as with the sched_throw(NULL) called on BSPs during their startup apparently there's nothing which will reliably lower it on APs. I'm unsure why this only came up on V215 though, breaking these with r207248. My best guess is that these are the only supported ones so far fast enough to loose some race. PR: 151404 MFC after: 3 days
* Fix forwarding of Line Register Status changes to TTY layer.hselasky2010-10-141-0/+26
| | | | | PR: usb/149675 Approved by: thompsa (mentor)
* Remove unused EHCI register definition.hselasky2010-10-142-3/+1
| | | | | | Define reserved EHCI register. Approved by: thompsa (mentor)
* Revert most of r197682 (EHCI Hardware BUG workaround). Implementhselasky2010-10-142-40/+51
| | | | | | | | | | proper solution which is to not use the TERMINATE pointer, but rather link to a halted TD. The initial fix was due to a misunderstanding about how the EHCI hardware works. Thanks to Alan Stern for clearing this up. This patch can increase mass storage read performance significantly when the IRQ rate is less than 8000 IRQ/s. Approved by: thompsa (mentor)
* - In the spirit of r212559 add a comment describing what will eventuallymarius2010-10-141-1/+11
| | | | | | lower the PIL. - Just as with the AP ensure that the (S)TICK timer(s) are in a known state when starting BSPs.
* Just like xmphy(4) this driver doesn't use any of the generic subroutinesmarius2010-10-141-4/+0
| | | | so there's no need to fill mii_{ext,}capabilities either.
* Avoid using endless retransmission at EHCI hardware level, hence this hidehselasky2010-10-141-1/+2
| | | | | | | errors from the applications. Only use endless retransmission while in the non-addressed state on a High-Speed device. Approved by: thompsa (mentor)
* Correct EHCI root HUB interface descriptor.hselasky2010-10-141-2/+1
| | | | Approved by: thompsa (mentor)
* Correct EHCI port register read.hselasky2010-10-141-1/+1
| | | | Approved by: thompsa (mentor)
* - Add more USB devices to usbdevs and rename some previously unknown ones.hselasky2010-10-142-16/+41
| | | | | | | | - Add more USB mass storage quirks. Submitted by: Dmitry Luhtionov PR: usb/149934, usb/143045 Approved by: thompsa (mentor)
* - Add missing LibUSB API functions:hselasky2010-10-144-22/+120
| | | | | | | | | | | | | * libusb_strerror() * libusb_get_driver[_np]() * libusb_detach_kernel_driver[_np]() - Factor out setting of non-blocking flag inside libusb. - Add missing NULL check after libusb_get_device() call. - Correct some wrong error codes due to copy and paste error. PR: usb/150546 Submitted by: Robert Jenssen, Alexander Leidinger Approved by: thompsa (mentor)
* - Add support for LibUSB in 32-bit compatibility mode.hselasky2010-10-145-16/+51
| | | | Approved by: thompsa (mentor)
* - Fix some compile warnings regarding comparing signed to unsigned.hselasky2010-10-141-2/+2
| | | | Approved by: thompsa (mentor)
* LibUSB (new API):hselasky2010-10-145-0/+39
| | | | | | | | - Add a new API function to check the connected status of the USB handle in the LibUSB v1.0 and LibUSB v0.1 interfaces. Approved by: thompsa (mentor)
* Remove stale comment.kib2010-10-141-5/+0
| | | | | Submitted by: arundel MFC after: 3 days
* Revert r213765. This is required because our build infrastructure usesrpaulo2010-10-142-2/+0
| | | | | the host lex instead of the lex built during buildworld. I will MFC the lex changes soon and in a few weeks this I'll commit again r213765.
* Make sure to not use stale ip/tcp header pointers. The ip/tcpyongari2010-10-148-1/+14
| | | | | | | | | | | header parser uses m_pullup(9) to get access to mbuf chain. m_pullup(9) can allocate new mbuf chain and free old one if the space left in the mbuf chain is not enough to hold requested contiguous bytes. Previously drivers can use stale ip/tcp header pointer if m_pullup(9) returned new mbuf chain. Reported by: Andrew Boyer (aboyer <> averesystems dot com) MFC after: 10 days
* Backout r204230. TX mbuf parser for VLAN is still required toyongari2010-10-141-7/+25
| | | | enable TX checksum offloading if VLAN hardware tagging is disabled.
* It seems some multi-port dc(4) controllers shares SROM of the firstyongari2010-10-142-0/+47
| | | | | | | | | | | | port such that reading station address from second port always returned 0xFF:0xFF:0xFF:0xFF:0xFF:0xFF Unfortunately it seems there is no easy way to know whether SROM is shared or not. Workaround the issue by traversing dc(4) device list and see whether we're using second port and use station address of controller 0 as base station address of second port. PR: kern/79262 MFC after: 2 weeks
* Support firmware download.mdf2010-10-141-1/+37
|
* Re-work the internals of adding items to the driver's scatter-gathermdf2010-10-143-90/+213
| | | | | list. Use the new internals to simplify adding transaction context elements, and in future diffs, more complicated SGLs.
* Remove dead code:bz2010-10-141-3/+1
| | | | | | assignment to a local variable not used anywhere after that. MFC after: 3 days
* Style: make the asterisk go with the variable name, not the type.bz2010-10-141-1/+1
| | | | MFC after: 3 days
* Add FreeBSD 8.2.jh2010-10-141-0/+1
| | | | | Reviewed by: ru MFC after: 3 days
* Use ifa_ifwithaddr_check() rather than ifa_ifwithaddr() as we are notbz2010-10-141-1/+1
| | | | | | | | interested in the result and would leak a reference otherwise. PR: kern/151435 Submitted by: Andrew Boyer (aboyer averesystems.com) MFC after: 3 days
* Enable the shared memory reference clock driver. The GPS devices areglebius2010-10-141-1/+1
| | | | | | | getting more and more popular, as source of precise time, and the gpsd daemon from ports is using the shared memory to synchronize with ntpd. Reviewed by: roberto
* In kern_sigtimedwait(), move initialization code out of process lock,davidxu2010-10-141-103/+86
| | | | | | | | | | | | | instead of using SIGISMEMBER to test every interesting signal, just unmask the signal set and let cursig() return one, get the signal after it returns, call reschedule_signal() after signals are blocked again. In kern_sigprocmask(), don't call reschedule_signal() when it is unnecessary. In reschedule_signal(), replace SIGISEMPTY() + SIGISMEMBER() with sig_ffs(), rename variable 'i' to sig.
* We only need to look as far as '..' to find 'test/'.obrien2010-10-131-1/+1
|
* Do not assume in growstackstr() that a "precious" character will beobrien2010-10-134-9/+34
| | | | | | | | | | | | | | | | immediately written into the stack after the call. Instead let the caller manage the "space left". Previously, growstackstr()'s assumption causes problems with STACKSTRNUL() where we want to be able to turn a stack into a C string, and later pretend the NUL is not there. This fixes a bug in STACKSTRNUL() (that grew the stack) where: 1. STADJUST() called after a STACKSTRNUL() results in an improper adjust. This can be seen in ${var%pattern} and ${var%%pattern} evaluation. 2. Memory leak in STPUTC() called after a STACKSTRNUL(). Reviewed by: jilles
* Use a safer mechanism for determining if a task is currently running,mdf2010-10-134-41/+47
| | | | | | | | that does not rely on the lifetime of pointers being the same. This also restores the task KBI. Suggested by: jhb MFC after: 1 month
* Fix a regression introduced in r213710. r213710 removed the use ofyongari2010-10-131-0/+7
| | | | | | | | | | | | | | | | | | auto polling such that it made all controllers obtain link status information from the state of the LNKRDY input signal. Broadcom recommends disabling auto polling such that driver should rely on PHY interrupts for link status change indications. Unfortunately it seems some controllers(BCM5703, BCM5704 and BCM5705) have PHY related issues so Linux took other approach to workaround it. bge(4) didn't follow that and it used to enable auto polling to workaround it. Restore this old behavior for BCM5700 family controllers and BCM5705 to use auto polling. For BCM5700 and BCM5701, it seems it does not need to enable auto polling but I restored it for safety. Special thanks to marius who tried lots of patches with patience. Reported by: marius Tested by: marius
* In the spirit of r90111, depend on c89 and remove the "STATIC" macroobrien2010-10-1321-227/+218
| | | | and its usage.
* document logging through bpfluigi2010-10-131-13/+18
|
* USB network (NCM driver):hselasky2010-10-133-26/+127
| | | | | | | | | | | | | - correct the ethernet payload remainder which must be post-offseted by -14 bytes instead of 0 bytes. This is not very clearly defined in the NCM specification. - add development feature about limiting the maximum datagram count in each NCM payload. - zero-pad alignment data - add TX-interval tuning sysctl Approved by: thompsa (mentor)
* Add more checks for resolved link speed in bge_miibus_statchg().yongari2010-10-131-6/+24
| | | | | | | Link UP state could be reported first before actual completion of auto-negotiation. This change makes bge(4) reprogram BGE_MAC_MODE, BGE_TX_MODE and BGE_RX_MODE register only after controller got a valid link.
* Keep polling at 50hz as long as link state is changing.jmallett2010-10-131-3/+15
|
* Merge ACPICA 20101013.jkim2010-10-1330-502/+904
|\
| * Import ACPICA 20101013.jkim2010-10-1341-1013/+1730
| |
* | USB Network:hselasky2010-10-135-1/+651
| | | | | | | | | | | | | | - Add new driver for iPhone tethering - Supports the iPhone 3G/3GS/4G ethernet protocol Approved by: thompsa (mentor)
* | USB WLAN:hselasky2010-10-131-0/+1
| | | | | | | | | | | | | | - Add new device ID PR: usb/150989 Approved by: thompsa (mentor)
* | USB network (UHSO):hselasky2010-10-131-1/+1
| | | | | | | | | | | | | | | | - Correct network interface flags. PR: usb/149039 Submitted by: Fredrik Lindberg Approved by: thompsa (mentor)
OpenPOWER on IntegriCloud