summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Put some static keywords in the source code.ed2011-10-316-23/+23
| | | | | | For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform better forms of optimisation and analysis.
* Pull in r143305 and r143312 from upstream clang trunk, so using "clangdim2011-10-301-3/+18
| | | | | | | | -march=native" on AMD K10 family processors no longer errors out with "unknown target CPU 'amdfam10'". This also enables use of SSE4A. Reported by: David Marec <david.marec@davenulle.org> MFC after: 3 days
* Add multiple inclusion protection.marius2011-10-301-0/+4
|
* Actually, limit to 32-bit DMA for the transfer buffers as the address ismarius2011-10-301-2/+2
| | | | written into a 32-bit register.
* Correct the DMA constraints, the LSI64854 isn't limited to 32-bit DMA.marius2011-10-301-3/+3
|
* - Use device_t rather than the NetBSDish struct device.marius2011-10-305-217/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move esp_devclass to ncr53c9x.c in order to allow different bus front-ends to use it. - Use KOBJMETHOD_END. - Remove the gl_clear_latched_intr hook as it's not needed for any of the chips nor the front-ends supported in FreeBSD and likely never will be. - Correct the DMA constraints used in the SBus front-end, the LSI64854 isn't limited to 32-bit DMA. - The ESP200 also only supports up to 64k transfers. - Don't let the DMA and SBus front-end supply a maximum transfer size larger than MAXPHYS as that's the maximum the upper layers use and we otherwise just waste resources unnecessarily. - Initialize the ECB callout and don't zero the handle when returning ECBs to the free list so that ncr53c9x_callout() actually is called with the driver lock held. - On detach the driver lock should be held across cam_sim_free() according to isp(4) and a panic received. - Check the return value of NCRDMA_SETUP(), i.e. bus_dmamap_load(9), and try to handle failures gracefully. - In ncr53c9x_action() replace N calls to xpt_done() in a switch with just one at the end. - On XPT_PATH_INQ report "NCR" rather than "Sun" as the vendor as the former is somewhat more correct as well as the maximum supported transfer size via maxio in order to take advantage of controllers that that can handle more than DFLTPHYS. - Print the number of MESSAGE (EXTENDED) rejected. - Fix the path encoded in the multiple inclusion protection of ncr53c9xvar.h. - Correct the DMA constraints used in the LSI64854 core to not exceed the maximum supported transfer size and include the boundary so we don't need to check on every setup of a DMA transfer. - Let the bus DMA map callbacks do nothing in case of an error. - Correctly handle > 64k transfers for FAS366 in the LSI64854. A new feature flag NCR_F_LARGEXFER was introduced so we just need to check for this one and not for individual controllers supporting large transfers in several places. - Let the LSI64854 core load transfer buffers using BUS_DMA_NOWAIT as the NCR53C9x core can't handle EINPROGRESS. Due to lack of bounce buffers support, sparc64 doesn't actually use EINPROGRESS and likely never will, as an example for writing additional front-ends for the NCR53C9x core it makes sense to set BUS_DMA_NOWAIT anyway though. - Some minor cleanup.
* Fix typo from r226927dougb2011-10-301-1/+1
| | | | Submitted by: scf
* Fix a few gratuitous library dependencies. Some of the ZFS utilitiesrmh2011-10-306-13/+13
| | | | | | | | | | | | | | | | | are linked with libraries they don't use: - zinject doesn't use libavl - ztest doesn't use libz - zdb uses neither libavl nor libz - zfs uses neither libbsdxml nor libm, nor libsbuf - zpool uses neither libbsdxml nor libm, nor libsbuf In addition, libzfs needs libm because it uses pow(), however it isn't linked with -lm. This went unnoticed because all its users had -lm before. Reviewed by: pjd, mm Approved by: kib (mentor) MFC after: 1 week
* For processes with no controlling terminal, display "-" in the TTY columntrasz2011-10-302-4/+8
| | | | | | instead of "?". Submitted by: arundel
* Add missing PF_UNLOCK in pf_testkevlo2011-10-301-1/+5
| | | | Reviewed by: bz
* Fix a misplaced parenthesis.brueffer2011-10-301-1/+1
| | | | | | PR: 162164 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 1 week
* Eliminate vm_phys_bootstrap_alloc(). It was a failed attempt atalc2011-10-306-57/+76
| | | | | | | | | | | | | | | | | eliminating duplicated code in the various pmap implementations. Micro-optimize vm_phys_free_pages(). Introduce vm_phys_free_contig(). It is fast routine for freeing an arbitrary number of physically contiguous pages. In particular, it doesn't require the number of pages to be a power of two. Use "u_long" instead of "unsigned long". Bruce Evans (bde@) has convinced me that the "boundary" parameters to kmem_alloc_contig(), vm_phys_alloc_contig(), and vm_reserv_reclaim_contig() should be of type "vm_paddr_t" and not "u_long". Make this change.
* Add birth date for Ken Thompsondougb2011-10-301-1/+5
| | | | | | | | Add birth and death dates for Steve Jobs Update birth and add death date for Dennis Ritchie PR: bin/162157 Submitted by: Niclas Zeising <niclas.zeising@gmail.com>
* Revert rev. 226893: subr_syscall.c is being included from C files andmarcel2011-10-303-9/+14
| | | | | on amd64 with FREEBSD32 enabled, this means that systrace_probe_func gets defined twice.
* Add a reminder about quarterly status report due datesdougb2011-10-291-0/+4
| | | | Reviewed by: danger
* remove trailing whitespace...jmg2011-10-291-3/+3
| | | | MFC after: 1 week
* error if /boot/mbr is empty... This can happen on a system like armjmg2011-10-291-0/+2
| | | | | | | that doesn't have a /boot/mbr, and you touch it to get past the previous error message... MFC after: 1 week
* Improve USB mass storage quirk auto detection.hselasky2011-10-292-1/+30
| | | | MFC after: 3 days
* Add some new ath(4) debugging bits, from my if_ath_tx 11n TX branch.adrian2011-10-291-0/+5
|
* Fix the text and attribution of the poem "Youth" by Samuel Ullman.dougb2011-10-291-19/+31
| | | | | | | | Our copy was a bastardization of the "older" (probably original?) and shorter version of the poem; and the "newer" version that is better known, and arguably more popular. Standardize on the latter. Cf. http://www.bartleby.com/73/2099.html
* Fix an implicit dependency between the MFI driver and CAM that had grown duescottl2011-10-291-1/+18
| | | | | | | | | to an API change in CAM. It's once again possible to link a static kernel with 'mfi' without requiring 'scbus' as well. Ditto for KLD loading. Submitted by: kib Reviewed by: ken MFC after: 3 days
* Reword '}' description to sound more clear.ache2011-10-291-1/+1
| | | | | Submitted by: dougb MFC after: 7 days
* Define systrace_probe_func in subr_syscall.c where it's used, insteadmarcel2011-10-293-14/+9
| | | | of defining it in MD code. This eliminates porting to other architectures.
* sh: Add test for exit status of for loop without items.jilles2011-10-281-0/+4
| | | | | | POSIX says the exit status of a for loop without any items shall be 0. There are no exceptions if the exit status of the previous command was not 0 or if the item list contains a command substitution with non-zero exit status.
* Use "u_long" instead of "unsigned long".alc2011-10-282-5/+4
|
* Update '}' description to reflect reality (and POSIX)ache2011-10-281-1/+1
| | | | | | PR: 96236 Submitted by: "Andreas Kohn" <andreas@syndrom23.de> MFC after: 7 days
* Add a few improvements to utf-8 -> cp436 console maprmh2011-10-281-5/+15
| | | | | | | | | | | | | | (mostly with Catalan characters in mind, but it probably benefits other languages). The new mappings are as follows: ▮ -> █ ÀÈÍÏÓÒÚ -> AEIIOOU ŀ / Ŀ -> l / L Reviewed by: ed Approved by: kib (mentor)
* Don't expose a constant array into global namespace.delphij2011-10-282-2/+1
| | | | | Reported by: Ruslan Yakovlev <quazi bk ru> via yongari MFC after: 3 days
* Include the tid when printing out crypto replay errors.adrian2011-10-281-2/+2
| | | | | | I found this useful when trying to debug the AR9160 STA RX filter issue - I'd get crypto reply errors but it wasn't entirely clear which TID it was for.
* When punting frames to the RX tap, free the mbufs since we've tampered withadrian2011-10-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | their length. Without this, an error frame mbuf would: * have its size adjusted; * thrown at the radiotap code; * then since it's never consumed, the rxbuf/mbuf is then re-added to the RX descriptor list with the small size; * .. and the hardware ends up (sometimes) only DMA'ing part of a frame into the small buffer, chaining RX frames together (setting the more flag). I discovered this particular issue when doing some promiscuous radiotap testing; I found that I'd occasionally get rs_more set in RX descriptors w/ the first frame length being very small (sub-100 bytes.) The driver handles 2-descriptor RX frames (but not more), so this still worked; it was just odd. This is suboptimal and may benefit from being replaced with caching the m_pkthdr_len and m_len fields, then restoring them after completion.
* Fix arguments list for proc:::signal-discard DTrace probe.pluknet2011-10-281-1/+1
| | | | | Reported by: Anton Yuzhaninov <citrin citrin ru> MFC after: 1 week
* Add the XSI option -b to show date of the last reboot.pluknet2011-10-282-8/+31
| | | | | | | That required to increase the LINE field to fit the output of -b. While here, change the row() function to take a const argument. In collaboration with: ed
* Our geom withering function could take some time before geom with itsae2011-10-281-0/+4
| | | | | | | | providers and consumers will be destroyed. Before take some actions with a geom, check that it is not destroyed at the moment. Tested by: nwhitehorn MFC after: 1 week
* Fix handling of rc_force in /etc/rc.d/dhclientrea2011-10-281-4/+13
| | | | | | | | | | Variable 'rc_force' is accessible only at the time of rc_run_command, so it can't be examined from the script's main code. Spotted by: hrs Reviewed by: hrs, des Approved by: des MFC after: 2 weeks
* Disable updating InputDiscards counter for BCM5717, BCM5718,yongari2011-10-281-2/+24
| | | | | BCM5719 A0 and BCM5720 A0 and add comment why driver does not try to read it.
* Add initial BCM5720 support.yongari2011-10-282-29/+87
| | | | | | | Many thanks to Broadcom for continuing support of FreeBSD. Submitted by: Geans Pin at Broadcom (initial version) H/W donated by: Broadcom
* Recognize BCM5720C PHY.yongari2011-10-282-0/+2
|
* When add a new remote address using sctp_add_remote_addr(),tuexen2011-10-271-3/+3
| | | | | | return the correct net if requested. MFC after: 3 days.
* Send out control chunks which have no specific destination.tuexen2011-10-271-12/+36
| | | | MFC after: 3 days.
* Define BGE_FW_HB_TIMEOUT_SEC and remove one more magic value.yongari2011-10-272-1/+4
| | | | | | | | | | | | | bge(4) sends BGE_FW_CMD_DRV_ALIVE command to firmware every 2 seconds. BGE_FW_CMD_DRV_ALIVE command requires 4 bytes data. This data contains timeout value in seconds until the next BGE_FW_CMD_DRV_ALIVE command. Broadcom recommends driver set the value 3 times longer than the interval that it sends BGE_FW_CMD_DRV_ALIVE. Currently bge(4) uses 3 seconds so probably we have to increase it in future and use different ALIVE command(e.g. BGE_FW_CMD_DRV_ALIVE3). No functional changes.
* Rename hard-coded value 1 << 14 with BGE_RX_CPU_DRV_EVENT.yongari2011-10-272-3/+7
| | | | | | | | | | | | | | This bit(SW event 7 in publicly available data sheet) is used to make RX CPU handle a firmware command and the bit is automatically cleared after RX CPU completed the command. Generally firmware command takes the following steps. 1. Write BGE_SRAM_FW_CMD_MB with a command. 2. Write BGE_SRAM_FW_CMD_LEN_MB with the length of the command in bytes. 3. Write BGE_SRAM_FW_CMD_DATA_MB with actual command data. 4. Generate BGE_RX_CPU_EVENT and let firmware handle the command. 5. Wait for the ACK of the firmware command. No functional changes.
* Increase default scrub threshold from 30 days to 5 weeks. Usingdelphij2011-10-272-3/+3
| | | | | | | whole weeks makes it easier to predicate when the scrub would happen. MFC after: 1 week
* Rename BGE_FW_DRV_ALIVE/BGE_FW_PAUSE to BGE_FW_CMD_DRV_ALIVE/BGE_FW_CMD_PAUSE.yongari2011-10-272-4/+10
| | | | | Also add more firmware commands(not used yet). No functional changes.
* Fix svnversion for svn 1.7.x by not looking for .svn in ${SYSDIR} (sincedougb2011-10-271-3/+7
| | | | | | | | it no longer exists). Instead, run svnversion if we can find the binary and test that the output looks like a version string. Reviewed by: discussion on -current@ Tested by: rodrigc for non-svn case (thanks!)
* Remove example for linking /dev/vga to /dev/ttyv0, this hasn't beengavin2011-10-271-3/+0
| | | | | | | | required since X version 4.3.0. PR: conf/161847 Submitted by: eadler MFC after: 2 weeks
* Remove redundant space.pjd2011-10-271-1/+1
| | | | MFC after: 3 days
* Update the example rules in devfs.conf to reflect the changes since ATA_CAM.gavin2011-10-271-1/+2
| | | | | | | While here, add another example rule, as many applications these days expect to find /dev/dvd instead. MFC after: 3 days
* Implement 'async' mode for HAST.pjd2011-10-273-55/+81
| | | | MFC after: 3 days
* Minor cleanups.pjd2011-10-271-1/+2
| | | | MFC after: 3 days
* Reduce indentation.pjd2011-10-271-24/+24
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud