Commit Graph

15384 Commits

Author SHA1 Message Date
marck
0051467f2a MFC: Make BSD tree more contemporary-looking.
This is actually batch of MFCs from the beginning of stable/10 branch.
2014-08-21 11:48:37 +00:00
loos
e4ebeceadb MFC r267021:
FreeBSD, historically, has always used 8-bit addresses for i2c devices
  (7-bit device address << 1), always leaving the room for the read/write
  bit.

  This commit convert ti_i2c and revert r259127 on bcm2835_bsc to make them
  compatible with 8-bit addresses.  Previous to this commit an i2c device
  would have different addresses depending on the controller it was attached
  to (by example, when compared to any iicbb(4) based i2c controller), which
  was a pretty annoying behavior.

  Also, update the PMIC i2c address on beaglebone* DTS files to match the
  new address scheme.

  Now the userland utilities need to do the correct slave address shifting
  (but it is going to work with any i2c controller on the system).

  Discussed with:	ian

MFC r267834:

  Clarify the expected usage of I2C 7-bit slave addresses on ioctl(2)
  interface.

  While here add the cross reference to iic(4) on iicbus(4).

  CR:		D210
  Suggested by:	jmg
2014-08-20 19:37:05 +00:00
loos
f091b317e3 MFC r266960:
Configure the analog input 7 which, on BBB, is connected to the 3V3B rail
  through a voltage divisor (R163 and R164 on page 4 of BBB schematic).

  Add a note about this on ti_adc(4) man page.  The ti_adc(4) man page will
  first appear on 10.1-RELEASE.

  Suggested by: Sulev-Madis Silber (ketas)
  Manual page reviewed by:      brueffer (D127)
2014-08-20 18:10:12 +00:00
ian
c4195049f5 MFC r266473,267331,267511:
Use an intermediate target to associate with _SUBDIR which is marked .MAKE
  this allows make -n to do tree walks as expected without
  doing anything else (as intended).
  Use prefix _sub. to help avoid conflict with any real target.

  Put the test suite in its own tests.txz distribution file.
  Force all the contents of /usr/tests to go into a separate distribution
  file so that users of binary releases can easily choose to not install

  Create a mechanism for providing fine-grained build order dependencies
  during SUBDIR_PARALLEL builds.  This augments the coarse .WAIT mechanism,
  which is still useful if you've got a situation such as "almost everything
  depends on A and B".
2014-08-19 23:33:51 +00:00
bz
fe69d82910 MFC r264601,264646,265766,267918,267919,267920:
Merge if_nf10bmac(4), a driver to support an NetFPGA-10G Embedded
 CPU Ethernet Core.

 The current version operates on a simple PIO based interface connected
 to a NetFPGA-10G port.

 To avoid confusion: this driver operates on a CPU running on the FPGA,
 e.g. BERI/mips, and is not suited for the PCI host interface.

 Adjust the register layout to allow for 64bit registers in the
 future for nf10bmac(4).  Also, add support for and enable RX interrupts.

 Allow switching between 32bit and 64bit bus width data access at compile
 time by setting NF10BMAC_64BIT and using a REGWTYPE #define to set correct
 variable and return value widths.

 Adjust comments to indicate the 32 or 64bit register widths.

Relnotes:	yes
Sponsored by:	DARPA/AFRL
2014-08-16 14:30:46 +00:00
rpaulo
caf7689615 MFC r268300 r268541 r268544 r268565 r269775 r269838 r269839 r269840
r269842 r269844 r269899:

BSD make support for generating and compiling USDT DTrace probes.
2014-08-13 16:11:57 +00:00
gavin
5940066af7 Merge r268725 from head:
Since r202933, kthread_suspend_check() takes no arguments.  Update the
  example to match.
2014-08-13 12:41:31 +00:00
gavin
3d15d9c9c1 Merge r267867 from head:
Remove example cvsup config files.
2014-08-13 12:32:52 +00:00
emaste
e822669a55 MFC cleanup of libusb20 example
r257779 by hselasky:

  - Use libusb20_strerror() function instead of custom usb_error() one.
  - Rename "aux.[ch]" to "util.[ch]" which is a more common name for
  utility functions and allows checkout on some non-FreeBSD systems
  where the "aux.*" namespace is reserved.
  - Fix some compile warnings while at it.

r257796 by glebius:

  Finish r257779.

PR:		183728
2014-08-12 14:53:02 +00:00
gjb
1cf6163349 MFC r269289, r269290, r269291, r269292, r269293:
r269289:
  sort(1): Remove trailing '.' from See Also section.

r269290:
  acpi_wmi(4): Remove trailing comma from standalone Xref.

r269291:
  hptiop(4): Remove trailing comma from ending Xref.

r269292:
  pf.conf(5): Remove trailing comma from ending Xref.

r269293:
  kernel_mount(9): Remove trailing comma from ending Xref.

Sponsored by:	The FreeBSD Foundation
2014-08-04 03:59:48 +00:00
jhb
ba879dc5f5 MFC 256657,257423,264837,267559:
Sync vmrun.sh with HEAD:
- Add -e option to vmrun.sh passed to bhyveload(8) to set loader
  environment variables.
- Stop passing unused -I option to bhyve(8).
- Reformat the usage to fit in 80 colums and other cleanups.
- Add -C option to specify the console device.
- Add -H option to pass a host path to bhyveload(8).
- Support for multiple disk and tap devices.
2014-08-01 21:00:18 +00:00
truckman
d1eb948ff0 MFC r268780
Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the
code.  The consensus on arch@ is that this feature might have been useful
in the distant past, but is now just unnecessary bloat.

The int_rman_activate_resource() and int_rman_deactivate_resource()
functions become trivial, so manually inline them.

The special deferred handling of RF_ACTIVE is no longer needed in
reserve_resource_bound(), so eliminate the associated code at the
end of the function.

These changes reduce the object file size by more than 500 bytes on i386.

Update the rman.9 man page to reflect the removal of the RF_TIMESHARE
feature.
2014-08-01 15:04:46 +00:00
rpaulo
815311c5b9 MFC r268300:
bsd.dep.mk: add support for generating DTrace header files from .d
 files.
2014-07-31 07:27:59 +00:00
kib
a1ca36e775 MFC r269160:
Remove man page for non-existent VOPs.

MFC r269240 (by pluknet):
Add VOP_GETVOBJECT.9 to obsolete files, un-xref.
2014-07-30 04:03:59 +00:00
kib
68a7483c94 MFC r269159:
Correct the locking statement.

MFC r269161:
Explicitely mention that inactivated or reclaimed vnode is locked
exclusively.
2014-07-30 04:00:23 +00:00
markj
1f52ac9340 MFC r264363:
Update the SDT(9) example to reflect the removal of the sname parameter
in r258622.
2014-07-29 20:37:22 +00:00
ian
0adc7b49f4 MFC r263373, r268402
Add a way to apply CFLAGS only when building the given architecture.  This
  is useful primarily on a system used for cross-building, when you have a
  set of flags to apply to the TARGET_ARCH being cross-built but don't want
  those settings applied to building the cross-tools or other components that
  run on the build host machine.

  Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS.  This allows different
  C++ options for toolchain versus target when cross-building.
2014-07-25 23:21:36 +00:00
bdrewery
87624b1433 MFC r268715,r268722:
Document the 'show bio' command added in 2009.
    Also link 'show bio' to g_bio(9.)
2014-07-22 00:33:41 +00:00
emaste
9cdf3487e3 MFC syscons(4) man page updates:
r268050: Add a vt(4) cross reference to syscons(4)

r268169: Clarify the setting of syscons driver flags

  Submitted by:	wblock

r268215: Describe kern.vty sc/vt tunable in syscons(4)

  Reviewed by:	wblock
2014-07-21 16:21:17 +00:00
emaste
6e5d5c120c MFC r267603 by trasz: Add polish vt(4) keymap.
Sponsored by:	The FreeBSD Foundation
2014-07-21 13:51:29 +00:00
jhb
cf1a222326 MFC 260847,264055,264867:
- Add a very simple virtio_random(4) driver for FreeBSD guests to harvest
  entropy from hypervisors.
- Add support to bhyve for the virtio RNG entropy-source device to provide
  entry to bhyve guests.
2014-07-21 00:21:56 +00:00
gavin
1932275fef Merge r267866 from head:
Drop references to updating over csup from build(7).
2014-07-16 12:51:29 +00:00
gavin
712abcae84 Merge r267865 from head:
Drop example variables for updating over csup.  These have not functioned
  since r251084
2014-07-16 12:49:56 +00:00
wblock
48cb0b5107 MFC r268187:
Improve markup, change references to nonexistent vt_vga(4), remove some
language redundancy, and move the examples so sections are in the
standard order.
2014-07-16 00:36:55 +00:00
jhb
1a3e3125d0 MFC 267963:
The latest versoin of file/libmagic identifes a filesystem image
is identified as "DOS/MBR boot sector" as opposed to "x86 boot sector".

This trips up vmrun.sh when using the new file(1) and makes it want to boot
into the installer instead.

Fix this by just looking for "boot sector" instead.
2014-07-13 17:49:27 +00:00
emaste
0a0b590be9 Regen src.conf(5) after r268399 2014-07-08 14:11:28 +00:00
emaste
a2e24081b1 MFC r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT
The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.
2014-07-08 14:04:36 +00:00
ray
74b8e10dc8 267622 Log:
Rename vt(4) vga module to dismiss interference with syscons(4) vga module.
267623 Log:
  Remove stale link to deleted vt(4) xboxfb driver.
267624 Log:
  syscons(4) and vt(4) can be built together now.
267625 Log:
  Allow to disable syscons(4) if "hw.syscons.disable" kenv is set.
267626 Log:
  Suspend vt(4) initialization if "kern.vt.disable" kenv is set.
267965 by emaste@ Log:
  Use a common tunable to choose between vt(4)/sc(4)
  With this change and previous work from ray@ it will be possible to put
  both in GENERIC, and have one enabled by default, but allow the other to
  be selected via the loader.
  (The previous implementation had separate kern.vt.disable and
  hw.syscons.disable tunables, and would panic if both drivers were
  compiled in and neither was explicitly disabled.)
268175 by emaste@ Log:
  Fix vt(4) detection in kbdcontrol and vidcontrol
  As sc(4) and vt(4) coexist and are both enabled in GENERIC, the existence
  of a vt(4) sysctl is not sufficient to determine that vt(4) is in use.
  Reported by:  Trond Endrestøl
268045 by emaste@ Log:
  Add vt(4) to GENERIC and retire the separate VT config
  vt(4) and sc(4) can now coexist in the same kernel.  To choose the vt
  driver, set the loader tunable kern.vty=vt .

Sponsored by:	The FreeBSD Foundation
2014-07-07 14:16:05 +00:00
kib
62024097ea MFC r267651 (by attilio):
Add the possibility to specify ecx when performing cpuid calls.

MFC r267673:
Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID.

MFC r267814:
Make cpuctl_do_cpuid() and cpuctl_do_cpuid_count() return void.
2014-07-02 13:09:26 +00:00
marius
618ac05759 MFC: r267978
In order to get vt(4) a bit closer to the feature set provided by sc(4),
implement options TERMINAL_{KERN,NORM}_ATTR. These are aliased to
SC_{KERNEL_CONS,NORM}_ATTR and like these latter, allow to change the
default colors of normal and kernel text respectively.
Note on the naming: Although affecting the output of vt(4), technically
kern/subr_terminal.c is primarily concerned with changing default colors
so it would be inconsistent to term these options VT_{KERN,NORM}_ATTR.
Actually, if the architecture and abstraction of terminal+teken+vt would
be perfect, dev/vt/* wouldn't be touched by this commit at all.

Reviewed by:	emaste
Sponsored by:	Bally Wulff Games & Entertainment GmbH
2014-06-30 09:59:23 +00:00
kib
fa72c237e4 MFC r267854:
Add fpu_kern.9 man page to the install.
2014-06-30 09:55:29 +00:00
kib
82a0e5601a MFC r267768:
Add documentation for the fpu_kern(9) interfaces.

MFC r267785 (by brueffer):
Several small fixes.
2014-06-30 09:54:08 +00:00
marius
ff62446f90 MFC: r267967, r267968
- SC_NO_SYSMOUSE isn't currently supported by vt(4), so nuke it from vt.4.
- vt_vga(4) is a driver rather than a function so reference it accordingly.
- Uncomment HISTORY section given that vt(4) will first appear in 9.3.

Reviewed by:	emaste (modulo last part)
Sponsored by:	Bally Wulff Games & Entertainment GmbH
2014-06-30 09:38:14 +00:00
bdrewery
f6034d31b7 MFC r267599:
- Add a LOCAL_ITOOLS to allow adding additional tools required for the
    installworld and distributeworld targets

PR:		179562
2014-06-24 15:57:48 +00:00
emaste
6632b872a3 MFC r267124, r267582:
Install VT support files

  They can be disabled by setting WITHOUT_VT_SUPPORT=yes in src.conf.
2014-06-23 13:50:02 +00:00
gavin
e44b7f112f Merge r267482,r267483,r267486,r267577,r267671,r267672 from head:
Remove send-pr and fix up all references to it.  Replace it with a
  stub send-pr directing people towards the web site.
2014-06-22 16:48:21 +00:00
ray
e3bd23da81 MFC: 266838 266841 267194
Add gallant vt(4) font as an example of font loading for vt(4).
  Add Ukranian vt(4) keymaps as an example.

Sponsored by:	The FreeBSD Foundation
2014-06-16 12:37:10 +00:00
brueffer
05d5b8b9d8 MFC: r267185
Minor improvements.
2014-06-13 12:01:55 +00:00
wblock
3a37604e59 MFC r267090:
Correct the document date for last change.
2014-06-12 15:46:24 +00:00
bjk
bc20a2fb62 MFC r266416:
------------------------------------------------------------------------
    r266416 | bjk | 2014-05-18 17:05:54 -0400 (Sun, 18 May 2014) | 14 lines

    Document some user-settable make variables in ports.7

    This is not a comprehensive list, as the variables themselves are spread
    out over multiple files, but it is a start.

    Add a section to make.conf noting that variables may be set there that
    affect ports builds, but refer to ports.7 and elsewhere for the actual
    listing; any listing in make.conf.5 would likely become out of date
    fairly quickly.

    PR:             docs/189199
    Reviewed by:    bdrewery (previous version)
    Approved by:    hrs (mentor)

    ------------------------------------------------------------------------

PR:		189199
Approved by:	hrs (mentor)
2014-06-09 23:11:50 +00:00
gjb
9e92aee6cf MFC r267160:
Dereference portaudit(1), as it is now deprecated and its
  functionality exists in pkg-audit(8).

Sponsored by:	The FreeBSD Foundation
2014-06-09 01:24:53 +00:00
marck
36860d519d MFC r266859:
Change examples to have master skew above 0 to have ability to overwrite this
  from the slave (for example, when master is failing on disk IO and could not be
  logged into or execute cronjob).

  Commented out examples changed too to simplify future merging.

  Idea by:        kaa@zvuki.ru
  Discussed with: glebius
2014-06-05 11:48:36 +00:00
wblock
b1be605bc6 MFC r266828:
Correct the description of characters allowed.  Based on pw_checkname in
usr.sbin/pw/pw_user.c.  Modified version of patch submitted by
venture37.
2014-06-05 01:20:25 +00:00
brueffer
51dec3635e MFC: r266709
Language cleanup.

Reviewed by:	mav, bcr, wblock
2014-06-03 19:25:39 +00:00
brueffer
3382a08e56 Catch up supported hardware obmitted in r265269, now that this branch has support
for it.
2014-05-26 11:16:28 +00:00
wblock
5f2cd9316d MFC r265798, r265815, r266091
Add a man page for the new vt.4 device.
2014-05-25 17:52:34 +00:00
hselasky
2975fdd0c2 MFC r257543, r264912, r264972, r264982 and r266472:
- Add preliminary support for the Realtek RTL8188EUS and RTL8188ETV chipsets.
- Add device ID for 'Sanoxy 802.11N' USB
- Initialize rssi variable.
- Fix gcc build, initialize off variable.
- The DELAY() should not be used in USB drivers.
- The usb_pause_mtx() function takes ticks and not milliseconds as last argument.
2014-05-23 06:47:47 +00:00
gavin
e38b7d8add Merge r266261 from head:
USB endpoints are almost always single-digits, fix the path in the man
  page to be clearer.

PR:		docs/175560
Submitted by:	Andreas Gustafsson <gson gson.org>
2014-05-22 21:08:32 +00:00
ian
9f4d42e0d5 MFC 264019, 264041, 264048, 264049, 264050, 264051
Add support for event timers whose clock frequency can change while running.

  Apparently all ARM configs build kern_et.c, but only a few of them also
  build kern_clocksource.c, un-break the build by not referencing functions in
  kern_clocksource if NO_EVENTTIMERS is defined.

  Add variable-frequency support to the arm mpcore eventtimer driver.

  mpcore_timer: Disable the timer and clear any pending bit, then setup the
  new counter register values, then restart the timer.  Also re-nest the parens
  properly for casting the result of converting time and frequency to a count.
2014-05-17 20:10:12 +00:00
loos
7e79287631 Adds the ADC driver for TI AM3xxx SoC family.
The ADC has a 12bit resolution and its raw output can be read via sysctl(8)
interface.

The driver allows the setup of ADC clock, samples average and open delay
(the number of clock cycles to wait before start the conversion).

The TSC_ADC module is set in the general purpose mode (no touchscreen
support).

Tested on Beaglebone-black.

Written based on AM335x TRM.
2014-05-17 19:06:46 +00:00