summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Update regarding the support for SBus GEM added in r194763.marius2009-06-231-9/+25
| | | | - Improve the description a bit and add a reference to vlan(4).
* - Initialize the ifnet structure, especially if_dname, before probingmarius2009-06-237-317/+575
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the PHYs as some PHY drivers use it (but probably shouldn't). How gem(4) has worked with brgphy(4) on powerpc without this so far is unclear to me. - Introduce a dying flag which is set during detach and checked in gem_ioctl() in order to prevent active BPF listeners to clear promiscuous mode which may lead to the tick callout being restarted which will trigger a panic once it's actually gone. - In gem_stop() reset rather than just disable the transmitter and receiver in order to ensure we're not unloading DMA maps still in use by the hardware. [1] - The blanking time is specified in PCI clocks so we should use twice the value when operating at 66MHz. - Spell some 2 as ETHER_ALIGN and a 19 as GEM_STATUS_TX_COMPLETION_SHFT to make the actual intentions clear. - As we don't unload the peak attempts counter ignore its overflow interrupts. - Remove a stale setting of a variable to GEM_TD_INTERRUPT_ME which isn't used afterwards. - For optimum performance increment the TX kick register in multiples of 4 if possible as suggested by the documentation. - Partially revert r164931; drivers should only clear the watchdog timer if all outstanding TX descriptors are done. - Fix some debugging strings. - Add a missing BUS_DMASYNC_POSTWRITE in gem_rint(). - As the error paths in the interrupt handler are generally unlikely predict them as false. - Add support for the SBus version of the GEM controller. [2] - Add some lock assertions. - Improve some comments. - Fix some more or less cosmetic issues in the code of the PCI front-end. - Change some softc members to be unsigned where more appropriate and remove unused ones. Approved by: re (kib) Obtained from: NetBSD (partially) [2], OpenBSD [1] MFC after: 2 weeks
* Add a limit for child jails via the "children.cur" and "children.max"jamie2009-06-234-28/+93
| | | | | | parameters. This replaces the simple "allow.jails" permission. Approved by: bz (mentor)
* - Fix bug where device would loose promisc setting when reset.gallatin2009-06-231-2/+2
| | | | - Allow all rss hash modes to be chosen
* Modify most routines returning 'struct ifaddr *' to return referencesrwatson2009-06-2334-204/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than pointers, requiring callers to properly dispose of those references. The following routines now return references: ifaddr_byindex ifa_ifwithaddr ifa_ifwithbroadaddr ifa_ifwithdstaddr ifa_ifwithnet ifaof_ifpforaddr ifa_ifwithroute ifa_ifwithroute_fib rt_getifa rt_getifa_fib IFP_TO_IA ip_rtaddr in6_ifawithifp in6ifa_ifpforlinklocal in6ifa_ifpwithaddr in6_ifadd carp_iamatch6 ip6_getdstifaddr Remove unused macro which didn't have required referencing: IFP_TO_IA6 This closes many small races in which changes to interface or address lists while an ifaddr was in use could lead to use of freed memory (etc). In a few cases, add missing if_addr_list locking required to safely acquire references. Because of a lack of deep copying support, we accept a race in which an in6_ifaddr pointed to by mbuf tags and extracted with ip6_getdstifaddr() doesn't hold a reference while in transmit. Once we have mbuf tag deep copy support, this can be fixed. Reviewed by: bz Obtained from: Apple, Inc. (portions) MFC after: 6 weeks (portions)
* Add some sysctl info so that we can see what is going on with vblanks.rnoland2009-06-231-0/+24
| | | | MFC after: 3 days
* Now that we have UARTs running with fast interrupt handlers the atasam2009-06-232-35/+208
| | | | | | | | | | | | | driver's i/o ops must be locked to avoid chaos. Extend the cambria bus tag to support ata and add a spin lock. The ata driver is hacked to use that instead of it's builtin hack for ixp425. Once the ata driver is fixed to not be confused about byte order we can generalize the cambria bus tag code and make it generally useful. While here take advantage of our being ixp435-specific to remove delays when switching between byte+word accesses and to eliminate the 2us delay for the uarts (the spin lock overhead looks to do this for us).
* use consistent stylesam2009-06-231-1/+1
|
* Revert most of 193311 so as to track mxge transmit statsgallatin2009-06-232-1/+22
| | | | | | | on a per-ring basis and avoid racy (and costly) updates to the ifp stats via drbr by defining NO_SLOW_STATS Discussed with: kmacy
* Include sys/lock.h before sys/rwlock.h. If anything used to bring it for uscognet2009-06-231-0/+1
| | | | before, it does not anymore.
* Only release irq resources if we were actually using them.rnoland2009-06-231-4/+7
| | | | MFC after: 3 days
* Using signals for vblank events is prone to issues. There have neverrnoland2009-06-232-59/+1
| | | | | | | been any consumers and likely will never be. Furthermore, we have never enabled the code for it, so just get rid of it. MFC after: 3 days
* Update mxge firmware from 1.4.39 to 1.4.43. Changes include:gallatin2009-06-234-32615/+32936
| | | | | | | | | | | | | - Support for 10G-PCIE*-8B*-C (dual-port CX4) NICs - For dual-port NICs, f/w failover is now a few microsecs instead of a few millisecs. - On failover, f/w sends RARP broadcast to make the change immediately known to the network - Fixed a bug observed on IBM X3 architecture where some spurious ecrc errors would be reported when OS enabled ecrc support. Sponsored by: Myricom Inc.
* Given that vblanks generally occur 60 times a second, waiting 3 secondsrnoland2009-06-231-1/+1
| | | | | | seems rather excessive. MFC after: 3 days
* vblank[crtc].last represents the hardware counter while request.sequencernoland2009-06-231-1/+0
| | | | | | represents the software counter. Don't currupt things here. MFC after: 3 days
* Implement minimal set of changes suggested by bz to makegallatin2009-06-234-11/+25
| | | | mxge no longer depend on INET.
* Hold the lock while we save/restore register for suspend/resume.rnoland2009-06-231-0/+6
| | | | MFC after: 3 days
* After cleaning up rt_tables from vnet.h and cleaning up opt_route.hbz2009-06-2327-27/+3
| | | | | a lot of files no longer need route.h either. Garbage collect them. While here remove now unneeded vnet.h #includes as well.
* Fix build with ACPI_DEBUG.rpaulo2009-06-231-1/+1
| | | | MFC after: 2 weeks
* Fix double path issue and other nits.rpaulo2009-06-232-376/+1
| | | | MFC after: 2 weeks
* In r194702 I meant to remove vnet.h which is no longer needed, not route.h.bz2009-06-231-1/+1
|
* Whitespace fix.jamie2009-06-231-1/+1
| | | | Approved by: bz (mentor)
* Remove obsolete comment describing how the command line isjamie2009-06-231-5/+0
| | | | | | no longer parsed. Approved by: bz (mentor)
* Remove unnecessary/redundant includes.jamie2009-06-232-2/+0
| | | | Approved by: bz (mentor)
* Code cleanup by moving some repetitive code into an ndis_get_bssid_listcokane2009-06-231-37/+39
| | | | | | helper function. Also, add ieee80211_announce() call for bootverbose case. Submitted by: Paul B. Mahol <onemda@gmail.com>
* Fix a typo in the same comment, one line below.ed2009-06-231-1/+1
| | | | Submitted by: bf1783 googlemail com
* Remove unneeded stdlib directories.ed2009-06-234-12/+0
| | | | | | | It's not necessary to add stdlib directories for each architecture, even if the architecture doesn't implement any files of its own. Submitted by: Christoph Mallon
* Simplify. We can just use .sinclude here.ed2009-06-231-3/+1
| | | | Submitted by: Christoph Mallon
* in6_rtqdrain() has been unused. Cleanup.bz2009-06-231-23/+0
| | | | As this was the only consumer of net/route.h left remove that as well.
* * Driver for ACPI WMI (Windows Management Instrumentation)rpaulo2009-06-2314-3/+3109
| | | | | | | | | * Driver for ACPI HP extra functionations, which required ACPI WMI driver. Submitted by: Michael <freebsdusb at bindone.de> Approved by: re MFC after: 2 weeks
* Remove duplicate #include <net/route.h> from the middle of the file.bz2009-06-231-1/+0
|
* Mark ng_ether node hooks as HI_STACK. It is usually the last point whenmav2009-06-231-1/+1
| | | | | netgraph may unroll the call stack, and I have found that in some cases 2K guarantied there for i386 may be not enough for NIC driver and BPF.
* vn_open_cred() needs a non NULL ucred pointerpho2009-06-231-1/+1
| | | | Reviewed by: kib
* Fix typo in comment.ed2009-06-231-1/+1
| | | | Submitted by: Christoph Mallon
* Remove hand-written labs/abs implementations. GCC is smart enough.ed2009-06-233-95/+1
| | | | | | | It turns out GCC generates code that's a couple of bytes big bigger, but performs no branching whatsoever. Submitted by: Christoph Mallon
* Fix what seems to be an obvious typo preventing the body of therdivacky2009-06-231-1/+1
| | | | | | if statement to ever be executed. Approved by: ed (mentor)
* o Fix usage() prototype [1] and correct its call.maxim2009-06-231-2/+2
| | | | Submitted by: ed [1]
* - Add a new cpuset macro, CPU_FILL(), for setting the set to all 1s.jeff2009-06-231-0/+6
|
* time_t does not always fit into long, for instance on arm. So rather castjhay2009-06-231-3/+3
| | | | it intmax_t and use %j in printf.
* Connect ng_pipe to the default build.zec2009-06-235-0/+10
| | | | Approved by: julian (mentor)
* Fix a typeo in the frame len function to unbreak the build, make it shorterthompsa2009-06-237-10/+10
| | | | while I am here.
* o style(9) usage() definition: it doesn't need an argument.maxim2009-06-231-3/+2
|
* o Remove unneeded argument in fprintf(3) call in usage().maxim2009-06-231-1/+1
| | | | Submitted by: Pawel Worach
* Add cpufreq support on the PowerPC G5, along with a skeleton SMU drivernwhitehorn2009-06-235-4/+629
| | | | | in order to slew CPU voltage during frequency changes. The OpenBSD SMU driver was an extremely helpful reference for this.
* Fix copy/paste typo in last revision. PMC0 control should be shifted 8nwhitehorn2009-06-231-1/+1
| | | | bits, not 6, on the PPC 970.
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-23124-3345/+4892
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* Add files missed in r194674.thompsa2009-06-235-0/+2861
| | | | | | | | | | | | | | | Add libusb 1.0 support which is compatible with the latest revision on Sourceforge. Libusb 1.0 is a portable usb api released December 2008 and supersedes the original libusb released 10 years ago, it supports isochronous endpoints and asynchronous I/O. Many applications have already started using the interfaces. This has been developed as part of Google Summer of Code this year by Sylvestre Gallon and has been cribbed early due to it being desirable in FreeBSD 8.0 Submitted by: Sylvestre Gallon Sponsored by: Google Summer of Code 2009 Reviewed by: Hans Petter Selasky
* Describe the new algorithm for handling __FreeBSD_version, specificallykensmith2009-06-231-2/+3
| | | | | the 'R' value now being allowed to take on more values than 0 or 1 and permitting more than 100 version bumps in pre-release branches.
* Add libusb 1.0 support which is compatible with the latest revision onthompsa2009-06-235-799/+1227
| | | | | | | | | | | | | | Sourceforge. Libusb 1.0 is a portable usb api released December 2008 and supersedes the original libusb released 10 years ago, it supports isochronous endpoints and asynchronous I/O. Many applications have already started using the interfaces. This has been developed as part of Google Summer of Code this year by Sylvestre Gallon and has been cribbed early due to it being desirable in FreeBSD 8.0 Submitted by: Sylvestre Gallon Sponsored by: Google Summer of Code 2009 Reviewed by: Hans Petter Selasky
* kill left over cruftsam2009-06-221-2/+0
|
OpenPOWER on IntegriCloud