summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a short man page describing how to run a.out binaries on thekib2012-08-152-0/+147
| | | | | | current kernels. MFC after: 1 week
* Add a sysctl kern.pid_max, which limits the maximum pid the system iskib2012-08-157-9/+49
| | | | | | | allowed to allocate, and corresponding tunable with the same name. Note that existing processes with higher pids are left intact. MFC after: 1 week
* Fix buildkib2012-08-151-2/+2
|
* Revert r239178 and implement two new functions, namelyhselasky2012-08-1525-227/+256
| | | | | | | | | | | "device_free_softc()" and "device_claim_softc()", to allow USB serial drivers refcounting the softc. These functions are used to grab the softc from auto-free and to free the softc back to the correct malloc type, respectivly. Discussed with: jhb MFC after: 2 weeks
* Add new USB device quirk.hselasky2012-08-152-0/+6
| | | | | Submitted by: Kra OTN MFC after: 2 weeks
* Regenerate.kib2012-08-154-10/+10
|
* Provide 32bit compat for truncate(2) and ftruncate(2).kib2012-08-151-2/+3
| | | | MFC after: 1 week
* Don't include opt_ddb.h & <ddb/ddb.h> twice.obrien2012-08-151-2/+0
|
* Some BIOSes return incorrect number of sectors, make checks lessae2012-08-151-0/+4
| | | | | | strictly, to do not lost some partitions. Reported by: swills@
* Rework r239232 to unbreak ZFS detection on MBR slices.ae2012-08-151-10/+18
|
* Explicitly terminate the string after strncpy(3).ae2012-08-151-0/+1
|
* Unbreak ATMEL kernel buildgonzo2012-08-151-0/+1
|
* Extend the non-aggregate TX descriptor chain routine to be aware of:adrian2012-08-151-9/+49
| | | | | | | | | | | | | | | | | | | | | | | * the descriptor ID, and * the multi-buffer support that the EDMA chips support. This is required for successful MAC transmission of multi-descriptor frames. The MAC simply hangs if there are NULL buffers + 0 length pointers, but the descriptor did have TxMore set. This won't be done for the 11n aggregate path, as that will be modified to use the newer API (ie, ath_hal_filltxdesc() and then set first|middle| last_aggr), which will deprecate some of the current code. TODO: * Populate the numTxMaps field in the HAL, then make sure that's fetched by the driver. Then I can undo that hack. Tested: * AR9380, AP mode, TX'ing non-aggregate 802.11n frames; * AR9280, STA/AP mode, doing aggregate and non-aggregate traffic.
* Bump up the rate control table size to incorporate 3 stream entries.adrian2012-08-151-3/+3
|
* Remove this comment, it's no longer relevant.adrian2012-08-151-1/+0
|
* Extend the duration calculations to work with three and four streamadrian2012-08-151-12/+19
| | | | rates.
* Add a missing comma.adrian2012-08-151-1/+1
| | | | Pointy hat to: me, for not doing a 'clean' build first.
* Add 3 stream rates to the sample rate control module.adrian2012-08-151-1/+47
|
* Extend the sample mask from 32 bits to 64 bits.adrian2012-08-152-19/+23
| | | | | | | | This is required to support > MCS15 as more than 32 bit rate entries are suddenly available. This is quite messy - instead of doing typecasts at each mask operation, this should be migrated to use a macro and have that do the typecast.
* Specify architecture for assemblergonzo2012-08-151-0/+2
|
* Implement a sequential descriptor ID value and stuff it in the ath_buf.adrian2012-08-152-0/+10
| | | | | This will be used by the EDMA TX code to assign descriptor IDs in order to provide some debugging.
* Merging of projects/armv6, part 10gonzo2012-08-1566-0/+19775
| | | | | | | | | | - Support for Texas Instruments SoCs: - AM335x - OMAP4 - Kernel configs, DTS for Beaglebone and Pandaboard Submitted by: Ben Gray, Damjan Marion
* Merging of projects/armv6, part 9gonzo2012-08-156-0/+1114
| | | | | | Very basic support for Nvidia Tegra2: timer, interrupts, UART. Submitted by: Damjan Marion <dmarion@freebsd.org>
* Merging of projects/armv6, intermissiongonzo2012-08-153-0/+202
| | | | | | Add configs missed in previous commits: - ARMADA XP - Embedded Artists EA3250
* Merging of projects/armv6, part 8gonzo2012-08-1525-5/+7865
| | | | | | | | | | | | | | | | | | | | r235162: Initial LPC32x0 support. Includes DTS file for Embedded Artists EA3250 board. Peripherals currently supported: - Serial ports - Interrupt controller - Timers - Ethernet - USB host - Framebuffer (in conjunction with SSD1289 LCD controller) - RTC - SPI - GPIO Submitted by: Jakub Wojciech Klama <jceel@freebsd.org>
* Merging of projects/armv6, part 7gonzo2012-08-1520-185/+1675
| | | | | | Add Marvell ARMADA XP support Obtained from: Marvell, Semihalf
* Merging of projects/armv6, part 6gonzo2012-08-152-25/+85
| | | | | | | r229271: Import files needed to build ARMADA XP kernel. Submitted by: Grzegorz Bernacki
* Merging of projects/armv6, part 5gonzo2012-08-159-3/+2319
| | | | | | | - Driver for SMSC LAN95XX and LAN8710A ethernet controllers - Driver for LAN8710A PHY Submitted by: Ben Gray, Damjan Marion, Tim Kientzle
* Merging of projects/armv6, part 4gonzo2012-08-155-49/+70
| | | | | | | | | | | | | | | | | r233822: Remove useless and wrong piece of code in fdt_get_range() which i overwrites passed phandle_t node. Modify debug printf in fdt_reg_to_rl() to be consistent (that is, print start and end *virtual* addresses). r230560: Handle "ranges;" Make fdt_reg_to_rl() responsible for mapping the device memory, instead on just hoping that there's only one simplebus, and using fdt_immr_va as the base VA. r230315 Add a function to get the PA from range, instead of (ab)using fdt_immr_pa, and use it for the UART driver
* Merging of projects/armv6, part 4gonzo2012-08-151-2/+5
| | | | | r232281: Fix byte order.
* Merging of projects/armv6, part 3gonzo2012-08-1520-22/+59
| | | | | | | | | | | | | | | | | | | | | | | | r238211: Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb This adds a new TARGET_ARCH for building on ARM processors that support the ARMv6K multiprocessor extensions. In particular, these processors have better support for TLS and mutex operations. This mostly touches a lot of Makefiles to extend existing patterns for inferring CPUARCH from ARCH. It also configures: * GCC to default to arm1176jz-s * GCC to predefine __FreeBSD_ARCH_armv6__ * gas to default to ARM_ARCH_V6K * uname -p to return 'armv6' * make so that MACHINE_ARCH defaults to 'armv6' It also changes a number of headers to use the compiler __ARM_ARCH_XXX__ macros to configure processor-specific support routines. Submitted by: Tim Kientzle <kientzle@freebsd.org>
* Merging of projects/armv6, part 2gonzo2012-08-152-0/+10
| | | | Handle TLS for ARMv6 and ARMv7
* Merging of projects/armv6, part 2gonzo2012-08-151-1/+13
| | | | Handle TLS for ARMv6 and ARMv7
* Merging of projects/armv6, part 2gonzo2012-08-151-1/+14
| | | | Handle TLS for ARMv6 and ARMv7
* Merging projects/armv6, part 1gonzo2012-08-1564-692/+9940
| | | | | | | | | Cummulative patch of changes that are not vendor-specific: - ARMv6 and ARMv7 architecture support - ARM SMP support - VFP/Neon support - ARM Generic Interrupt Controller driver - Simplification of startup code for all platforms
* The size of the buffers in an Ethernet freelist has to be higher than thenp2012-08-151-5/+15
| | | | | | | | | | interface's MTU. Initialize such freelists with correct values. This wasn't a problem for common MTUs (1500 and 9000) as the buffers (2048 and 9216 in size) happened to have enough spare room. I ran into it when playing around with unusual MTUs. MFC after: 2 weeks
* Assume INET, INET6, and TCP_OFFLOAD when the driver is built out of tree andnp2012-08-142-0/+25
| | | | | | KERNBUILDDIR is not set. MFC after: 2 weeks
* Dump out the TX FIFO depth.adrian2012-08-141-2/+3
|
* Break out the TX completion code into a separate function, so it can beadrian2012-08-142-35/+67
| | | | | | | | | re-used by the upcoming EDMA TX completion code. Make ath_stoptxdma() public, again so the EDMA TX code can use it. Don't check for the TXQ bitmap in the ISR when doing EDMA work as it doesn't apply for EDMA.
* Add an assertion to check that the given TXQ is _not_ locked.adrian2012-08-141-1/+4
|
* Rename command defines to match names used in the datasheet, in order togavin2012-08-141-54/+57
| | | | | | | | | | make maintaining this driver from the documentation easier in the future. This is a mostly mechanical change. In uslcom_param(), move the zeroing of the final two fields of the flowctrl structure outside of the "if CRTSCTS" section - not only were they being zeroed in both the clauses, but these two fields have nothing to do with hardware flow control anyway.
* if_iqdrops should include frames truncated within the chip.np2012-08-141-1/+2
| | | | MFC after: 2 weeks
* Convert some fixed parameters to tunables (with reasonable defaultnp2012-08-142-15/+94
| | | | | | | | | | | | values). - cong_drop specifies what to do on congestion: nothing, backpressure, or drop. - fl_pktshift specifies the padding before Ethernet payload. - fl_pad specifies the boundary upto which to pad Ethernet payload. - spg_len controls the length of the status page. MFC after: 2 weeks
* Reserve room for the terminating NUL when setting or getting kerneljh2012-08-141-6/+6
| | | | | environment variables. KENV_MNAMELEN and KENV_MVALLEN doesn't include space for the terminating NUL.
* As discussed on -current, remove the hardcoded default maxswzone.des2012-08-143-27/+20
| | | | MFC after: 3 weeks
* Fix multichannel input signals tracing on some CODECs like ALC260.mav2012-08-141-5/+4
| | | | | Reported and tested by: Slawa Olhovchenkov <slw@zxy.spb.ru> MFC after: 1 month
* Pospone the DF_1_NODELETE processing until object DAG is fully loaded.kan2012-08-141-7/+27
| | | | | | | | | Trying to up the reference from the load loop risks missing dependencies that have not been loaded yet. MFC afer: 1 week Reported by: nox Reviewd by: kib
* Add a hackish debugging facility to provide a bit of information aboutkib2012-08-141-2/+20
| | | | | | | | | | | | | | reason for generated trap. The dump of basic signal information and 8 bytes of the faulting instruction are printed on the controlling terminal of the process, if the machdep.uprintf_signal syscal is enabled. The print is the only practical way to debug traps from a.out processes I am aware of. Because I have to reimplement it each time I debug an issue with a.out support on amd64, commit the hack to main tree. MFC after: 1 week
* Real hardware, as opposed to QEMU, does not allow to have a call gatekib2012-08-142-6/+27
| | | | | | | | | | | | in long mode which transfers control to 32bit code segment. Unbreak the lcall $7,$0 implementation on amd64 by putting the 64bit user code segment' selector into call gate, and execute the 64bit trampoline which converts the return frame into 32bit format and switches back to 32bit mode for executing int $0x80 trampoline. Note that all jumps over the hoops are performed in the user mode. MFC after: 1 week
* For old mmap syscall, when executing on amd64 or ia64, enforce thekib2012-08-141-0/+7
| | | | | | | | | | | | PROT_EXEC if prot is non-zero, process is 32bit and kern.elf32.i386_read_exec syscal is enabled. This workaround is needed for old i386 a.out binaries, where dynamic linker did not specified PROT_EXEC for mapping of the text. The kern.elf32.i386_read_exec MIB name looks weird for a.out binaries, but I reused the existing knob which already has the needed semantic. MFC after: 1 week
OpenPOWER on IntegriCloud