Commit Graph

14360 Commits

Author SHA1 Message Date
Hans Petter Selasky
d7dd13419e Add UQ_UMS_IGNORE quirk.
Wrap two long lines.
Some minor spelling correction.

PR:	usb/171721
2012-09-17 19:06:35 +00:00
Glen Barber
0cd4fb9206 Update release(7) to reflect changes from r240586 and r240587:
- Remove cvs(1) references.
 - Remove CVS* environment references.
 - Add default entries for the default SVNROOT for the Ports
   Collection, and Documentation Project.
 - While here, update 'SGML-based documentation' to 'XML-based',
   since the recent SGML->XML conversion.
 - Update an example providing SVNROOT environment usage.

Reminded by:	nwhitehorn
MFC After:	1 week
X-MFC-With:	r240586, r240587
2012-09-17 02:45:52 +00:00
Joel Dahl
9f668383b7 Remove trailing whitespace. 2012-09-16 21:17:28 +00:00
Alexander V. Chernikov
54202ab3d1 Add section describing existing filtering points.
Document byteorder behavior in AF_INET[6] hooks in new section.

MFC after:	2 weeks
2012-09-16 13:13:02 +00:00
Peter Jeremy
e6f5b72e5d - Add myself as a new src committer.
- Sort jhb's mentees
- Add grog's (ex-)mentor

Approved by:	jhb (co-mentor), grog (co-mentor)
2012-09-16 06:44:58 +00:00
Edson Brandi
c99c0499e0 Add myself, and show gabor@ as my mentor.
Approved by:    gabor (mentor)
2012-09-15 20:09:08 +00:00
Jilles Tjoelker
4ca2a3f7d4 siginfo(3): Document TRAP_DTRACE signal code.
MFC after:	1 week
2012-09-14 22:12:04 +00:00
Jilles Tjoelker
5437c0d6ea siginfo(3): Document SI_LWP signal code.
Describe SI_LWP as being generated by pthread_kill() because thr_kill() is
a private undocumented function.

MFC after:	1 week
2012-09-14 22:10:01 +00:00
Jilles Tjoelker
a4c22c274e siginfo(3): Document SI_USER and SI_KERNEL signal codes.
MFC after:	1 week
2012-09-14 22:05:09 +00:00
Eitan Adler
96240c89f0 Correct double "the the"
Approved by:	cperciva
MFC after:	3 days
2012-09-14 21:28:56 +00:00
Eitan Adler
eae8be706e Bump date missed in r202756
PR:		docs/171624
Submitted by:	bdrewery
Approved by:	gabor
MFC after:	3 days
2012-09-14 17:50:42 +00:00
Gleb Smirnoff
3b3a8eb937 o Create directory sys/netpfil, where all packet filters should
reside, and move there ipfw(4) and pf(4).

o Move most modified parts of pf out of contrib.

Actual movements:

sys/contrib/pf/net/*.c		-> sys/netpfil/pf/
sys/contrib/pf/net/*.h		-> sys/net/
contrib/pf/pfctl/*.c		-> sbin/pfctl
contrib/pf/pfctl/*.h		-> sbin/pfctl
contrib/pf/pfctl/pfctl.8	-> sbin/pfctl
contrib/pf/pfctl/*.4		-> share/man/man4
contrib/pf/pfctl/*.5		-> share/man/man5

sys/netinet/ipfw		-> sys/netpfil/ipfw

The arguable movement is pf/net/*.h -> sys/net. There are
future plans to refactor pf includes, so I decided not to
break things twice.

Not modified bits of pf left in contrib: authpf, ftp-proxy,
tftp-proxy, pflogd.

The ipfw(4) movement is planned to be merged to stable/9,
to make head and stable match.

Discussed with:		bz, luigi
2012-09-14 11:51:49 +00:00
Eitan Adler
ebce2fe6d3 Belatedly add myself
MFC after:	3 days
2012-09-14 01:23:28 +00:00
Joel Dahl
09c024e1a1 Minor mdoc fix. 2012-09-13 16:59:20 +00:00
Brooks Davis
9215d178a4 Introduce a new make variable COMPILER_TYPE that specifies what
type of compiler is being used (currently clang or gcc).  COMPILER_TYPE
is set in the new bsd.compiler.mk file based on the value of the CC
variable or, should it prove informative, by running ${CC} --version
and examining the output.

To avoid negative performance impacts in the default case and correct
value for COMPILER_TYPE type is determined and passed in the environment
of submake instances while building world.

Replace adhoc attempts at determining the compiler type by examining
CC or MK_CLANG_IS_CC with checks of COMPILER_TYPE.  This eliminates
bootstrapping complications when first setting WITH_CLANG_IS_CC.

Sponsored by:	DARPA, AFRL
Reviewed by:	Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>, imp, linimon
		(with some modifications post review)
MFC after:	2 weeks
2012-09-13 16:00:46 +00:00
Ivan Voras
ab013dbb49 Document the *_chroot, *_user, *_group and *_nice knobs for services started
by rcng.

Reviewed by:	wblock, dougb
2012-09-13 10:26:55 +00:00
Ed Schouten
4170b08388 Implement LIST_PREV().
Regular LISTs have been implemented in such a way that the prev-pointer
does not point to the previous element, but to the next-pointer stored
in the previous element. This is done to simplify LIST_REMOVE(). This
macro can be implemented without knowing the address of the list head.

Unfortunately this makes it harder to implement LIST_PREV(), which is
why this macro was never here. Still, it is possible to implement this
macro. If the prev-pointer points to the list head, we return NULL.
Otherwise we simply subtract the offset of the prev-pointer within the
structure.

It's not as efficient as traversing forward of course, but in practice
it shouldn't be that bad. In almost all use cases, people will want to
compare the value returned by LIST_PREV() against NULL, so an optimizing
compiler will not emit code that does more branching than TAILQs.

While there, make the code a bit more readable by introducing
__member2struct(). This makes STAILQ_LAST() far more readable.

MFC after:	1 month
2012-09-12 21:03:48 +00:00
David E. O'Brien
e5deeefec6 Add MK_KDUMP. 2012-09-12 14:58:07 +00:00
Gleb Smirnoff
f99a2a0c2b Document conditions for IP_SENDSRCADDR socket option.
Obtained from:	r167342 commit message
2012-09-12 10:09:34 +00:00
Kevin Lo
c25372b320 Add references to VFS_SET(9) and VOP_VPTOFH(9) 2012-09-12 03:39:32 +00:00
Jason E. Hale
8e5c2a044e - Add myself to calendar.freebsd
- Add my mentor relationships to committers-ports.dot

Approved by:	makc (mentor)
2012-09-11 13:29:50 +00:00
Andriy Gapon
947bb4a4a5 acpi.4: machdep.cpu_idle_hlt no longer exists
MFC after:	1 week
2012-09-11 06:14:03 +00:00
Eitan Adler
9a9e843eae Follow up to doc r39516:
Update the Vendor Relations Team information to reflect that
	incoming email is now handled by core@ and the Foundation.

Reviewed by:	gjb
MFC after:	3 days
2012-09-11 02:29:36 +00:00
Eitan Adler
451abc51c9 hrs has yet to create clones of himself
MFC after:	3 days
X-MFC-With:	r240318, r240294
2012-09-10 16:51:43 +00:00
Eitan Adler
24c6bb6ed1 Update a few more teams and hats with new members.
Remove explicit re${arch} teams as they are not listed anywhere else.
MFC after:	3 days
X-MFC-With:	r240294
2012-09-10 16:19:12 +00:00
Eitan Adler
372c42cf95 Keep this file relatively up to date (taken from f.b.o/adminstration)
MFC after:	3 days
2012-09-10 02:40:17 +00:00
Eitan Adler
e9ee984536 Sync access file date recommendation
Change from CVS to svn for canconical source of information

MFC after:	3 days
2012-09-10 02:40:02 +00:00
Eitan Adler
3da883efeb Minor English grammar fixes.
Specifically document that an incomplete ports tree is not supported.
Remove useless comment about sendmail.

Reviewed by:	yuri.pankov@gmail.com
Approved by:	cperciva (implicit)
MFC after:	1 week
X-MFC-With:	r240252
2012-09-09 01:22:32 +00:00
Eitan Adler
b0533126a7 Remove documentation and www cvsup files as they are no longer useful
with the switch to subversion.

Approved by:	gjb (man pages)
Approved by:	cperciva (example files, implicit)
MFC after:	1 week
2012-09-09 01:04:22 +00:00
Eitan Adler
ff31ead443 Regenerate src.conf.5 after the projects/armv6 merge
Approved by:	des
2012-09-08 21:38:05 +00:00
Eitan Adler
9a44104fb6 Revert r239049:
This is the way to assign a range, but not
a single IPv4 address.

PR:		conf/167648
Approved by:	cperciva (implicit)
2012-09-08 12:45:47 +00:00
Niclas Zeising
01361d6952 Change the link pointing to more information about the Yarrow algorithm, the
current link points to a irrelevant catchall site.

PR:		docs/171411
Submitted by:	Mark Martinec <Mark.Martinec@ijs.si> (pr), me (patch)
Approved by:	joel (mentor)
MFC after:	2 weeks
2012-09-07 16:59:30 +00:00
Gleb Smirnoff
62208ca5d2 - Move jenkins.h to jenkins_hash.c
- Provide missing function that can do hashing of arbitrary sized buffer.
- Refetch lookup3.c and do only minimal edits to it, so that diff between
  our jenkins_hash.c and lookup3.c is minimal.
- Add declarations for jenkins_hash(), jenkins_hash32() to sys/hash.h.
- Document these functions in hash(9)

Obtained from:	http://burtleburtle.net/bob/c/lookup3.c
2012-09-04 12:07:33 +00:00
Xin LI
dac366886e Update arcmsr(4) to vendor version 1.20.00.25.
Many thanks to Areca for continuing to support FreeBSD.

Submitted by:	Ching-Lung Huang <ching2048 areca com tw>
MFC after:	2 weeks
2012-09-04 05:15:54 +00:00
John Baldwin
28b5187f44 Clarify that bus_dma does not stall future load requests once a load is
deferred.  The caller is required to enforce that if that is desired.

MFC after:	2 weeks
2012-08-30 14:44:30 +00:00
Sergey Kandaurov
f2fbdacbf8 Remove a duplicated "thread". 2012-08-30 11:52:26 +00:00
Isabell Long
d45d4faaf8 Fix a dead link in sk(4).
PR:		docs/146958
Approved by:	gjb (mentor)
MFC after:	3 days
2012-08-29 15:34:31 +00:00
Sergey Kandaurov
08783659c5 Follow r239818 and remove no more relevant vslock() ENOMEM error.
Reviewed by:	zont
MFC after:	2 weeks
2012-08-29 13:00:00 +00:00
John Baldwin
5a3cebd1e8 Don't build and install the 07.lpd doc if WITHOUT_LPR is set.
MFC after:	1 week
2012-08-27 17:15:14 +00:00
Robert Watson
b9ef0960e1 Add a altera_sdcardc(4) man page link for altera_sdcard(4), as that is
the name that will appear in dmesg.

Sponsored by:	DARPA, AFRL
2012-08-26 10:38:02 +00:00
Robert Watson
ec5bd1da7d Add terasic_mtl(4), a device driver for the Terasic Multi-Touch LCD,
used with Terasic's DE-4 and other similar FPGA boards.  This display
is 800x480 and includes a capacitive touch screen, multi-touch
gesture recognition, etc.  This device driver depends on a Cambridge-
provided IP core that allows the MTL device to be hooked up to the
Altera Avalon SoC bus, and also provides a VGA-like text frame buffer.

Although it is compiled as a single device driver, it actually
implements a number of different device nodes exporting various
aspects of this multi-function device to userspace:

- Simple memory-mapped driver for the MTL 24-bit pixel frame buffer.
- Simple memory-mapped driver for the MTL control register set.
- Simple memory-mapped driver for the MTL text frame buffer.
- syscons attachment for the MTL text frame buffer.

This driver attaches directly to Nexus as is common for SoC device
drivers, and for the time being is considered BERI-specific, although
in principle it might be used with other hard and soft cores on
Altera FPGAs.

Control registers, including touchscreen input, are simply memory
mapped; in the future it would be desirable to hook up a more
conventional device node that can stream events, support kqueue(2)/
poll(2)/select(2), etc.

This is the first use of syscons on MIPS, as far as I can tell, and
there are some loose ends, such as an inability to use the hardware
cursor.  More fundamentally, it appears that syscons(4) assumes that
either a host is PC-like (i386, amd64) *or* it must be using a
graphical frame buffer.  While the MTL supports a graphical frame
buffer, using the text frame buffer is preferable for console use.
Fixing this issue in syscons(4) requires non-trivial changes, as the
text frame buffer support assumes that direct memory access can be
done to the text frame buffer without using bus accessor methods,
which is not the case on MIPS.  As a workaround for this, we instead
double-buffer and pretend to be a graphical frame buffer exposing
text accessor methods, leading to some quirks in syscons behaviour.

Sponsored by:	DARPA, AFRL
2012-08-25 22:35:29 +00:00
Dimitry Andric
d515c63db9 When using -stdlib=libc++, add the correct dependency to .depend in
bsd.prog.mk.

Submitted by:	Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
MFC after:	2 weeks
2012-08-25 19:30:15 +00:00
Brooks Davis
087d31736a Add isf(4), a driver for the Intel StrataFlash family of NOR flash parts.
The driver attempts to support all documented parts, but has only been
tested with the 512Mbit part on the Terasic DE4 FPGA board.  It should be
trivial to adapt the driver's attach routine to other embedded boards
using with any parts in the family.

Also import isfctl(8) which can be used to erase sections of the flash.

Sponsored by:	DARPA, AFRL
2012-08-25 18:08:20 +00:00
Joel Dahl
23bc6310a8 Minor mdoc fix. 2012-08-25 11:34:55 +00:00
Robert Watson
697a77c1c4 Add altera_jtag_uart(4), a device driver for Altera's JTAG UART soft core,
which presents a UART-like interface over the Avalon bus that can be
addressed over JTAG.  This IP core proves extremely useful, allowing us to
connect trivially to the FreeBSD console over JTAG for FPGA-embedded hard
and soft cores.  As interrupts are optionally configured for this soft
core, we support both interrupt-driven and polled modes of operation,
which must be selected using device.hints.  UART instances appear in /dev
as ttyu0, ttyu1, etc.

However, it also contains a number of quirks, which make it difficult to
tell when JTAG is connected, and some buffering issues.  We work around
these as best we can, using various heuristics.

While the majority of this device driver is not only not BERI-specific,
but also not MIPS-specific, for now add its defines in the BERI files
list, as the console-level parts are aware of where the first JTAG UART
is mapped on Avalon, and contain MIPS-specific address translation, to
use before Newbus and device.hints are available.

Sponsored by:	DARPA, AFRL
2012-08-25 11:30:36 +00:00
Robert Watson
d432e92a84 Add a device driver for the Altera University Program SD Card IP Core,
which can be synthesised in Altera FPGAs.  An altera_sdcardc device
probes during the boot, and /dev/altera_sdcard devices come and go as
inserted and removed.  The device driver attaches directly to the
Nexus, as is common for system-on-chip device drivers.

This IP core suffers a number of significant limitations, including a
lack of interrupt-driven I/O -- we must implement timer-driven polling,
only CSD 0 cards (up to 2G) are supported, there are serious memory
access issues that require the driver to verify writes to memory-mapped
buffers, undocumented alignment requirements, and erroneous error
returns.  The driver must therefore work quite hard, despite a fairly
simple hardware-software interface.  The IP core also supports at most
one outstanding I/O at a time, so is not a speed demon.

However, with the above workarounds, and subject to performance
problems, it works quite reliably in practice, and we can use it for
read-write mounts of root file systems, etc.

Sponsored by:	DARPA, AFRL
2012-08-25 11:19:20 +00:00
Robert Watson
cf8248866d Add altera_avgen(4), a generic device driver to be used by hard and soft
CPU cores on Altera FPGAs.  The device driver allows memory-mapped devices
on Altera's Avalon SoC bus to be exported to userspace via device nodes.
device.hints directories dictate device name, permissible access methods,
physical address and length, and I/O alignment.  Devices can be accessed
using read(2)/write(2), but also memory mapped in userspace using mmap(2).

Devices attach directly to the Nexus, as is common for embedded device
drivers; in the future something more mature might be desirable.  There is
currently no facility to support directing device-originated interrupts to
userspace.

In the future, this device driver may be renamed to socgen(4), as it can
in principle also be used with other system-on-chip (SoC) busses, such as
Axi on ASICs and FPGAs.  However, we have only tested it on Avalon busses
with memory-mapped ROMs, frame buffers, etc.

Sponsored by:	DARPA, AFRL
2012-08-25 11:07:43 +00:00
Dimitry Andric
2d12214697 Make sure bsd.dep.mk does not filter out -stdlib=xxx from CXXFLAGS,
since this determines parts of the C++ include path.

MFC after:	1 week
2012-08-23 17:03:33 +00:00
Joel Dahl
e1f3ad3730 Remove trailing whitespace. 2012-08-21 20:40:12 +00:00
John Baldwin
f2560cec70 Add a manpage for BUS_CHILD_DETACHED(). 2012-08-21 18:41:38 +00:00