Commit Graph

170 Commits

Author SHA1 Message Date
mbalmer 199f668519 Rename the 'gpio' group to '_gpio' as new group names should start with an
underscore.  While here, fix the awk script to properly expand such group
names.
2013-05-20 11:37:02 +00:00
mbalmer d84ba6e3bc Add a group 'gpio' and create gpio(4) device nodes under /dev with
mode 664 and group ownership set to 'gpio'.  This allows controlled access
to specifically enabled gpio pins to members of the gpio group.  See
gpioctl(8), and, gpio(4) for details.
2013-05-19 16:09:04 +00:00
kiyohara 4aba7d3a0d Support to build for epoc32 userland. 2013-05-01 13:11:59 +00:00
rkujawa cb2a012804 Add spiflash device to MAKEDEV template and MAKEDEV config on evbarm.
Obtained from Marvell, Semihalf.
2013-04-20 11:41:51 +00:00
martin e290c24aa3 Add a makedisk_p12high, used by VAX now after unbumping MAXPARTITIONS from
16 down to 12.
2013-04-11 19:13:46 +00:00
jmcneill 12a7d7c6ad create /dev/vchiq 2013-03-08 12:33:25 +00:00
christos 5e078c9e58 missing comment 2013-02-28 03:04:12 +00:00
christos ef9b0fbc8a node for dtrace 2013-02-28 02:00:27 +00:00
christos 84874dc42c always use ${MKNOD} for consistency 2013-02-10 14:54:33 +00:00
apb 162b6b9919 The console major number is not always 0; when creating a temporary
console while populating a memory disk, use %CONSOLE_CMAJOR% instead
of 0, and let MAKEDEV.awk substitute the appropriate machine-dependent
major number.

This fixes a bug that I introduced in revision 1.82 dated 2007-03-11.
2013-01-26 18:44:21 +00:00
skrll 5c014ba1cf Create a plcom0 device node for RaspberryPI 2013-01-10 13:38:37 +00:00
bouyer f2b31f39d0 Add a pass-through ioctl for mfi(4), allowing userland to send raw commands
to the controller. This is compatible with the linux and FreeBSD
implementations.
Add the needed conversion for mfi ioctls in COMPAT_LINUX
Allocate a character major number, and create /dev/mfi0 by default
on amd64 and i386.
This allows (along with a hand-created /emul/linux/proc/devices file)
to run the MegaCLI linux binary provided by LSI.
2012-09-19 21:24:28 +00:00
martin 647d3a97c1 Make the "init" target create optys as well - those were removed from "all",
but we still need them in emergency setups and some install media.
Should fix PR install/46902.
2012-09-05 08:25:53 +00:00
christos a0fa559338 Don't create BSD style pty nodes by default anymore since ptyfs is mounted
by default. Mention that this is a security issue, since it allows pty access
through the old style node.
2012-08-13 08:30:51 +00:00
tsutsui ac2c5cf13a Invoke MAKEDEV.local via $HOST_SH (default ${HOST_SH:=sh}) instead of
hardcoded "sh" to avoid unexpected errors on cross build hosts in
src/distrib/common/Makefile.makedev etc.

Should fix PR toolchain/46537, ok apb@
2012-06-05 13:20:01 +00:00
riz 3debe0af82 Create /dev/iscsi0 as part of 'all'. 2012-05-26 00:36:15 +00:00
christos 05e9a23818 give wedges to everyone 2012-04-07 17:22:10 +00:00
shattered 4e4e8d92ec Quoting sys/dev/vme/files.vme commit log: "vmegeneric never saw the
light of the source tree.  After 7 years, I guess nobody missed it."

OK by wiz@
2012-02-25 10:55:27 +00:00
tron 7b6c3db855 Four instances of atabus(4) are not enough for modern systems as the
system will report one instance for each SATA port. Create eight
device nodes by default.
2012-02-25 09:19:30 +00:00
nakayama 6d92376f3a Remove "spif[0-9]*" case from ports other than sparc{,64} by using
%stty_chr% and %sbpp_chr%.

Fix "MAKEDEV: bpp: unknown device" error on sparc{,64}, which is
observed in PR toolchain/45620 but not the fix.

Approved by releng.
2012-02-10 20:54:11 +00:00
christos 6fb39d18da add a tpm driver from bsssd.sourceforge.net 2012-01-22 06:44:28 +00:00
isaki 43fa5f922b Clean up pow(4) (which I had removed in Nov 2011). 2012-01-21 02:52:50 +00:00
agc a5b83a6434 grab major 203 for the iSCSI communications device (between kernel
driver and /sbin/iscsid)
2011-11-19 16:41:55 +00:00
apb bbc5f4100a The previous change made "nooutput -2" discard both stdout and
stderr, whereas it should discard only stderr.  This commit
should fix that problem.
2011-11-08 19:36:30 +00:00
apb 97355391d0 In the nooutput function, don't mess with file descritor 4
at the outer level; do it inside a subshell context so as not
to interfere with a different use of fd 4 by the caller.

This should fix PR 45590.
2011-11-08 19:11:19 +00:00
apb bddc18304e Change the pattern for matching ttys to allow any number of digits,
(tty[0-9]*).  This should fix PR 45514.
2011-10-26 09:02:20 +00:00
apb a844ed90bd Exit with non-zero status when asked to create an unrecognised device. 2011-10-12 20:57:55 +00:00
jmcneill ab747348b5 Install dev/i2c/i2c_io.h and implement the API in the iic(4) driver.
Obsolete the I2C_SCAN option as this can now be done from userland.
2011-10-02 16:39:45 +00:00
apb 99fac48d4f MAKEDEV dk<n> should create only the dk<n> device, but it previously
looped creating everything from dk0 to dk<n>.
Reported by M. Levinson.

Also add comments to cases where MAKEDEV loops creating multiple
devices.
2011-09-06 13:34:44 +00:00
apb 4bf21f27b6 In most case patterns, change foo*) to foo[0-9]*). There are also
a few where foo*) changes to foo|foo[0-9]*) or some other slightly
more complex pattern.

This should prevent "MAKEDEV foobar0" from accidentally matching
the foo* pattern when it should really give an error, and it
should make the order of the patterns less critical.
2011-09-06 10:54:03 +00:00
jmcneill abbd5e9f62 add -u flag that causes the MAKEDEV script to only create a device node if it
doesn't exist
2011-08-06 12:29:39 +00:00
jmcneill 3b0709c8e2 create /dev/dvb/adapterN/* devices for dtv 2011-07-09 14:49:28 +00:00
ahoka 2b6ee22130 Import the Flash and NAND subsytem code contributed by the University
of Szeged, Hungary.

The commit includes:
 - Flash layer, which gives a common API to access flash devices
 - NAND controller subsystem for the flash layer
 - An example OMAP driver which is used on BeagleBoard or alike ARM boards
2011-02-26 18:07:13 +00:00
pooka 5f7e80a834 Add support for the Extensible MIPS ("eMIPS") platform. The
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the
Giano system simulator.

eMIPS is a platform developed at Microsoft Research for researching
reconfigurable computing.  eMIPS allows dynamic loading and scheduling
of application-specific circuits for the purpose of accelerating
computations based on the current workload.

NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research
by Alessandro Forin and Neil Pittman.  Microsoft Corporation has
donated full copyright to The NetBSD Foundation.

Platform support for eMIPS is the first part of Microsoft's
contribution.  The second part includes the hardware accelerator
framework and will be proposed on tech-kern soon.
2011-01-26 01:18:43 +00:00
jakllsch ae196f9835 Make pci(4) device nodes root:wheel 0640 by default.
Mortals do not need to be able to generate PCI Configuration Space
read transactions, which are not entirely without side effect, as
reported in PR#16300.
2010-09-19 20:52:23 +00:00
rmind 2e6f2099c6 Import NPF - a packet filter. Some features:
- Designed to be fully MP-safe and highly efficient.

- Tables/IP sets (hash or red-black tree) for high performance lookups.

- Stateful filtering and Network Address Port Translation (NAPT).
  Framework for application level gateways (ALGs).

- Packet inspection engine called n-code processor - inspired by BPF -
  supporting generic RISC-like and specific CISC-like instructions for
  common patterns (e.g. IPv4 address matching).  See npf_ncode(9) manual.

- Convenient userland utility npfctl(8) with npf.conf(8).

NOTE: This is not yet a fully capable alternative to PF or IPFilter.
Further work (support for binat/rdr, return-rst/return-icmp, common ALGs,
state saving/restoring, logging, etc) is in progress.

Thanks a lot to Matt Thomas for various useful comments and code review.
Aye by: board@
2010-08-22 18:56:18 +00:00
pooka e5f02a189b Also create ugen[123] by default -- my laptop attaches 2 ugens
already with just the builtin devices.
2010-04-19 04:34:42 +00:00
jakllsch 4af989b1cc Make device node for altq JoBS.
Should fix palindromic PR/43034.
2010-03-23 19:22:41 +00:00
plunky cb3859a13e include ttyHS0 in usbs target [for uhso(4)] 2010-03-06 21:33:20 +00:00
plunky 800cedea24 Add uhso(4) driver and manpage for Option N.V. Wireless WAN modems 2010-03-06 21:05:36 +00:00
mrg 00c85a89af add drm to the big comment at the top 2009-09-25 06:06:04 +00:00
christos d7866d8f52 fix dri/drm confusiog 2009-09-24 14:53:36 +00:00
sborrill b88195cfa1 hdaudio(4) is a standards-compliant driver for Intel High Definition Audio.
It will replace azalia(4) after testing.

To use, comment out azalia in your kernel configuration and uncomment the
hdaudio and hdafg lines so it reads:

# Intel High Definition Audio
hdaudio*	at pci? dev ? function ?
hdafg*		at hdaudiobus?

You should also:
cd /dev
sh MAKEDEV audio
2009-09-06 17:25:55 +00:00
mrg c4166bec0e fix previous to actually pay attention to the unit number.
noted by drochner.
2009-07-05 21:35:16 +00:00
mrg 74a0f508b7 create a /dev/dri/card0. fixes PR#40952. 2009-07-03 06:33:56 +00:00
christos 7d8bcc8fa4 makedir for real this time. 2009-06-14 21:34:15 +00:00
christos cf38d7e34a Use makedir, from M. Levinson. 2009-06-14 20:01:04 +00:00
christos 3b863a2f5d absolute paths are not allowed here. from Anon Ymous 2009-06-14 13:18:02 +00:00
ad 63e35cb9ab Create /dev/zfs and /dev/zpool/. 2009-05-23 22:29:14 +00:00
elad a31136d3d3 verified executable -> Veriexec. 2009-05-10 14:19:28 +00:00