Commit Graph

323 Commits

Author SHA1 Message Date
sos
079fd646f5 Add the ATA RAID (ar) device 2000-10-24 14:31:24 +00:00
markm
9b1951c2c4 Make the [u]random device's permissions match those in the matching
make_dev() call.

At the moment, it is an error for anyone but root to write to this
device (EPERM), and the permissions don't suggest that. Soon, however,
anyone will be able to write here, but only root will cause an implicit
reseed.
2000-09-14 17:48:47 +00:00
msmith
cc6a9bf43e Teach MAKEDEV about 'aac'. 2000-09-13 05:03:02 +00:00
iwasaki
c74760cac8 Add /dev/acpi for ACPI. 2000-08-29 20:20:54 +00:00
jhb
75cc887d03 - Break the acd track devices out into a seperate target acdXt[Y]. The
X field is treated the same as the unit number for acdX.  The optional
  Y parameter specifies the number of track devices to create starting at
  track 1.  If Y is not specified, it defaults to 100.
- Add the acd0t target to the all target to preserve previous behavior.
- Don't add the acd0t target to the fixit target, thus keeping the fixit
  floppy from running out of i-nodes.
2000-08-28 23:14:44 +00:00
brian
652c71251a Fix the urio and ugen devices (I meant unit2minor, not minor2unit)
Problem pointed out by: markm
2000-08-18 07:01:19 +00:00
brian
a0648803e0 Add unit2minor() and use it where appropriate so that we handle
units > 255 properly.

Fix usio while I'm there
2000-08-16 16:42:50 +00:00
sos
1768ef16d8 Add the acdNt# devices to the acd entry, for individual track access. 2000-08-11 09:22:34 +00:00
green
240d3d93b9 Keep urandom as a link to random (but a hard link). 2000-07-30 16:18:48 +00:00
green
0245f1b8ff Since the driver supports both (and may have different semantics for
both soon...), create urandom instead of the link to random.  It's
also what makes sense according to the make_dev(9)'s in random(4).
2000-07-30 03:15:11 +00:00
nsayer
92a13c19ec Add the tap driver.
The tap driver is used to present a virtual Ethernet interface to the
system. Packets presented by the network stack to the interface are
made available to a character device in /dev. With tap and the bridge
code, you can make remote bridge configurations where both sides of
the bridge are separated by userland daemons.

This driver also has a special naming hack to allow it to serve a similar
purpose to the vmware port.

Submitted by:	myevmenkin@att.com, vsilyaev@mindspring.com
2000-07-20 17:01:10 +00:00
ru
5eaa310707 Add /dev/agpgart for AGP.
Reviewed by:	dfr
2000-07-19 09:21:14 +00:00
imp
fdb4620ebf Apm device is now safe to be world readable, so make it so. 2000-07-19 06:35:58 +00:00
tanimura
4b24af17f5 Finally merge newmidi.
(I had been busy for my own research activity until the last weekend)

Supported devices:

SB Midi Port			(sbc + midi)
SB OPL3				(sbc + midi)
16550 UART			(midi, needs a trick in your hint)
CS461x Midi Port		(csa + midi)

OSS-compatible sequencer	(seq)

Supported playing software:

playmidi			(We definitely need more)

Notes:

/dev/midistat now reports installed midi drivers. /dev/sndstat reports
only pcm drivers. We need the new name(pcmstat?).

EMU8000(SB AWE) does not sound yet but does get probed so that the OPL3
synth on an AWE card works.

TODO:

MSS/PCI bridge drivers
Midi-tty interface to support general serial devices
Modules
2000-07-11 11:49:33 +00:00
cokane
8a1ba138c0 Force the link from 3dfx# -> 3dfx, so that it doesn't bail with "file
exists"
2000-06-26 15:42:48 +00:00
markm
0cb90f0e22 Clean up all the old setup code for the old /dev/random. This will be
revisited when the new /dev/random is done.
2000-06-25 10:55:23 +00:00
cokane
7c12974292 Add 3dfxN to MAKEDEV, automatically links 3dfx to the last 3dfxN made. 2000-06-24 06:36:39 +00:00
tanimura
c9bc541ebb 1. Update Comtrol RocketPort driver(rp) to version 3.02.
2. Newbusify the driver.
3. Build as a module.

4. Use correct minor numbers when creating device files.
5. Correctly lock control characters.
6. Return ENXIO when device not configured.
Submitted by:	Tor Egge	<Tor.Egge@fast.no>

7. Fix the baud_table.
Submitted by:	Elliot Dierksen	<ebd@oau.org>

Note:
- the old driver still lives in src/sys/i386/isa, so that you can
  revert to it if something goes wrong.
- The module does not detach very well. Attaching works fine.
2000-06-11 06:43:16 +00:00
msmith
e7e55dee5e Learn how to create device nodes for the 'twe' devices. 2000-05-24 23:49:49 +00:00
jhb
62d996c563 Add kbd1 to MAKEDEV's all) target so that we support using kbdcontrol
to switch keyboards out of the box.
2000-05-12 02:56:31 +00:00
obrien
67d918cccd Fix the linking in my `sa' changes.
Submitted by:	Christian Weisgerber <naddy@mips.inka.de>
2000-05-10 02:51:36 +00:00
peter
5d47a897e4 Fix some whitespace brokeness.. (usio and ctx) 2000-05-09 01:15:55 +00:00
peter
09f116183e Finish off replacing the rest of the duplicate mknod's with hard links. 2000-05-09 00:07:46 +00:00
peter
c4fc8b07be Use printf (shell builtin) instead of cut - cut isn't in /bin.
This should fix the ttyA* and cuaA* up to the maximum possible 128 nodes.
2000-05-08 22:56:17 +00:00
obrien
37c368d91c Add [en]sa devices for othoginality. 2000-05-08 21:32:24 +00:00
asmodai
3529108e96 Fix comparison of units.
Submitted by:	Maxim Sobolev <sobomax@altavista.net> on -current
2000-05-06 14:17:23 +00:00
peter
c3346fdb5a Fix a couple of easy cases where we make two identical devices.. one
/dev/xxx and one /dev/rxxx.  This changes them to a hard link so that
less inodes are consumed and so that the permissions are always in sync.
There are lots more of these still.
2000-05-01 10:43:06 +00:00
chris
4f569299da Replace the /dev/stdin, /dev/stdout, and /dev/stderr nodes with
symlinks to fd/0, fd/1, and fd/2 respectively.  This will make
things easier for upcoming changes to fdesc (and does not break
anything for the current state of things) and hopefully its
position as the replacement for our existing static /dev/fd nodes.

Suggested (and reviewed) by:	phk
2000-04-26 06:12:42 +00:00
n_hibma
f0ab09536f Doug Ambrisko recommends not using minor 0-127 yet (Hardware flow
control)
2000-03-26 19:48:49 +00:00
n_hibma
1cdca787f4 Add the entry for usio, major 138 2000-03-26 12:59:22 +00:00
n_hibma
16f629fdf5 Add the entries for urio. 2000-03-18 18:45:48 +00:00
jlemon
0979b5871c Correct device naming for IDA disk nodes (idad) 2000-03-08 18:14:02 +00:00
rwatson
e4a1c89708 Modify MAKEDEV to create four bpf devices instead of one when doing a
MAKEDEV all, making DHCP on multiple interfaces happier, and allowing use
of tcpdump to to debug DHCP, without creating more devices.
(we need devfs)

Modify MAKEDEV to create four tun devices in MAKEDEV all as well, since
we're being gratuitous with network pseudo-devices.
(we need devfs)

Approved by:	The Hubbard
2000-02-18 05:49:08 +00:00
n_hibma
fcc93e7ad6 Add the uhid device.
Approved by:   jhk
2000-02-12 21:16:01 +00:00
rwatson
5634cb3a64 Remove /dev/console from the jail /dev environment. It's probably not
strictly a security hole, but neither is it a very good idea.  Replace
it with a symlink to /dev/null to happify programs that expect it.

It is suggested that users of the jail environment modify the jail's
syslog.conf to not send stuff to /dev/console, but instead syslog
it somewhere else.  Such as a loghost, potentially even to the host
environment's syslog.

Approved by:	jkh
2000-02-09 22:08:12 +00:00
bde
ab3fb70182 Fixed chgrp lossage in rev.1.233. Most floppy devices and all slices for disk
devices because accessible by group wheel instead of group operator.

Didn't fix fishy group for rsa*.ctl.  This device should have group operator
if that is safe, or mode 600 and group wheel.

Removed ssc and uk*.

Removed bogus (redundant) chmod's to 600.
2000-01-29 10:32:49 +00:00
n_hibma
f51b95863f Add the unlpt\d+ device to MAKEDEV. It is the same as ulpt\d+, except
that it does not reset the printer when opened. This fixes the problem
of printing a document almost till the end and then resetting the
printer when the next print job is started.

Submitted by:   Christopher Masto <chris@netmonger.net>

Also, remove all but the ums0 device from the fixit target 'to save
precious i-nodes on the fixit floppy'.
2000-01-23 11:40:10 +00:00
n_hibma
773e2fe411 Group of usb and usb\d+ is now operator and permissions are 0660.
Might need to be revisted to make it 0640 and limit the access to usb
and usb\d+ (in sys/dev/usb/usb.c) to 'retrieve info' only for operator.
2000-01-21 09:42:20 +00:00
jkh
66b23c5bda Add device entries for new parallel port radio clock driver.
We were supposed to get these in far earlier and didn't, hence
the commit after feature freeze.  A promise is a promise. :)

Submitted by:	Sascha Schumann <sascha@schumann.cx>
2000-01-19 18:16:24 +00:00
mjacob
e616da95d1 add SES driver 2000-01-15 21:04:13 +00:00
guido
36d83679ca Readd ipfilter devices
PR:		16093
2000-01-13 20:27:22 +00:00
obrien
9e8abc434d Remove usage of chgrp(1) and wrap long lines. 2000-01-07 16:20:25 +00:00
msmith
a5f46a6fca Now that chown is no longer available, we shouldn't try to use it.
Improve the internal mknod() to understand being passed an (optional)
user:group specification.

Don't apply root:wheel to nodes explicitly anywhere, it's the default.

Remove an odd looking uucp:wheel assignment, as it's inconsistent with
all the other tty?? devices.
2000-01-06 10:56:46 +00:00
msmith
40c6344b78 Add support for building the 'mlx?' devices, which will be used by the
upcoming 'mlxcontrol' utility.
1999-12-29 01:11:29 +00:00
kato
545a968a67 Added following modes:
5in     HD 2 heads, 77 cylinders, 8 sectors/track, 1024 bytes/sector
 5/3.5in DD 2 heads, 80 cylinders, 8 sectors/track, 512 bytes/sector

Meanings of the rogrammer-readeble fd name were explained by Brian
Fundakowski Feldman and Peter Wemm in hackers list and NOKUBI
Hirotaka.

Reviewed by:	nyan
1999-12-28 07:38:38 +00:00
bde
ceacc2b896 Moved $FreeBSD$ to its usual place after the CSRG id.
Fixed some style bugs for cam (superflous umask and missing newline).

Fixed bogons for apm.  The pattern "apm*" matched too many things; apm
and apmctl were both made twice by `MAKEDEV all'.  Hopefully no one
depends on `MAKEDEV apm0' making apm or on `MAKEDEV apm' making apmctl.
1999-12-26 15:24:58 +00:00
green
d98ad03089 Remove all vestiges of /usr programs (awk, sed, grep...) from MAKEDEV.
MAKEDEV can now run (with /sbin/chown and /bin/chgrp, still) without
any /usr.  The default PATH for MAKEDEV is now "/sbin:/bin" to prevent
against further spammage of /usr programs in MAKEDEV.  In the event
of an emergency, the variable "MAKEDEVPATH" can be used to replace
PATH, but I don't know what that emergency could be.
   Let me know if you have any problems.  I've tested it as well as
I could, which basically means everything except for RocketPorts.

Reviewed in principle by:	peter
1999-12-19 09:42:15 +00:00
joerg
656e28d1ce The target `all' evoluted into a kitchen-sink these days... It's no
longer really suitable as a default to create the various /dev nodes
to be contained on the fixit floppy, since all our proud new devide
nodes finally made the fixit floppy run over...

So instead create a new target titled `fixit' which creates just the
dev nodes for a single unit per each default driver; whoever needs
more of them is free to create whatever he needs, perhaps after
killing unused nodes before.  There were more than 700 /dev nodes on
the floppy before that action, and it's still around 350 now.  I doubt
all the various /dev/ugen* entries are really useful on such a tool,
so people, please check, and if you feel like more could be eliminated
from that floppy, kill'em.

While i was at it, removed traces of ft(8) that still survived even
though the driver has long since been dead.

That's step #1.  #2 will follow...
1999-12-14 22:36:03 +00:00
msmith
448c63f1c6 As promised long ago, remove the last evidence of the 'sd' driver.
SCSI disks are only known as 'da' now.
1999-11-27 21:17:02 +00:00
phk
643d628c4e Do not create bdev nodes anymore. Instead create cdev nodes with the
same names:

        rover# ls -l /dev/*wd0a
        crw-r-----  1 root  operator    3,   0 Nov 26 20:20 /dev/rwd0a
        crw-r-----  1 root  operator    3,   0 Nov 26 20:20 /dev/wd0a

Notice: Over time, no earlier than FreeBSD 5.0, the "r*" names may
be discontinued.  A fair number of programs and scripts need to
(un)learn some tricks before then.

This will take no effect until you either run MAKEDEV by hand or
reinstall your system.

WARNING:  Kernels older than approx November 22 will not be happy
about a /dev created with MAKEDEV after this commit.  Please update
your /kernel.good etc.
1999-11-26 20:45:26 +00:00
n_hibma
5416edb18d Make the devices for the endpoints 0-15, not only for 0. This creates
ugen0 and ugen0.1 - ugen0.15, not only ugen0 (control endpoint).
1999-11-24 21:05:59 +00:00
phk
4b987051c3 Remove /dev/drum 1999-11-24 19:14:11 +00:00
phk
9a9ac7ac38 Remove leftover reference to the "od" devices. 1999-11-24 19:07:31 +00:00
n_hibma
98aaa8213c Add the entry for usb (as opposed to usb<number>). It's minor is equivalent
to usb255 and will be used for the event queue of the usb daemon.
1999-11-17 23:02:34 +00:00
sos
81f3e4aaef cleanup the IDE cases a bit, add the ad driver to the all: target. 1999-11-09 12:53:01 +00:00
nik
e75beec342 Document the ch* devices.
PR:             docs/14401
Submitted by:   Crist J. Clark <cjc@cc942873-a.ewndsr1.nj.home.com>
1999-11-01 19:45:59 +00:00
obrien
106737d047 Fix ownership of /dev/fd/*. We still had a bin:bin hangover from pre-3.0.
Noticed by:	bde
1999-10-30 07:00:13 +00:00
brian
c4373c3df9 Fix ``MAKEDEV acd''
Spotted by: Mark Knight <mkn@FreeBSD.org.uk>
1999-10-15 16:20:58 +00:00
gibbs
8f15cc158d Remove references to the od driver. These devices are no attached by
the da driver and using the same major/minor scheme with the old name
only leads to confusion.

PR: misc/14279
1999-10-12 15:51:58 +00:00
peter
3966124417 remove ipl hooks 1999-10-10 15:13:48 +00:00
msmith
cd234440f8 Add entries for the 'amrd' and 'mlxd' disk nodes used by the AMI MegaRAID
and Myles drivers respectively.
1999-10-07 02:37:04 +00:00
phk
eb86b33ffd Add support for md driver.
sort some comments
1999-09-21 11:11:26 +00:00
bde
9cb681ee43 Fixed some disordering (mainly of case lists for disks).
Fixed bitrot in the `wcd*)' case.
1999-09-13 16:15:58 +00:00
sheldonh
7ca175b31f Apply a consistent style to most of the etc scripts. Particularly, use
case instead of test where appropriate, since case allows case is a sh
builtin and (as a side-effect) allows case-insensitivity.

Changes discussed on freebsd-hackers.

Submitted by:	Doug Barton <Doug@gorean.org>
1999-09-13 15:44:20 +00:00
peter
cdad5bae8c $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
gehenna
d1f4b00143 added usb0 to 'all' target for usbd(8) 1999-08-21 18:01:42 +00:00
sheldonh
096c0bd647 Use a colon (:) instead of a period (.) to distinguish the group name
from the user name when using chown(8).

PR:	13157
Reported by:	Patrick Powell <papowell@astart.com>
1999-08-16 16:00:23 +00:00
iwasaki
bf9c0b3fd0 Put apmd configuration and rc files in /etc.
Update some files for apmd.
1999-07-10 18:02:42 +00:00
phk
b5ad902d30 Add a pseudo target called "jail" which DTRT for a jail(2)'ed /dev 1999-07-09 21:35:17 +00:00
sheldonh
22d33aa12a Fix typo in previous commit.
Reported by:	bde
1999-07-09 13:37:59 +00:00
sheldonh
ca0f58d9e2 Add the pps (Pulse per second timing interface) device.
PR:	12568
Submitted by:	Craig Leres <leres@ee.lbl.gov>
1999-07-09 12:52:04 +00:00
bde
8a8914c836 Removed bogus quotes in descriptions of disk devices. Only "Winchester"
disk devices are so-called.
1999-07-07 12:00:42 +00:00
msmith
034fa9e4b7 Add support for the 'ida' driver. 1999-07-05 09:18:57 +00:00
jkh
810f72ad85 Bump the number of vtys created to compensate for new demands created
by /etc/ttys.

Forgotten by:   des
1999-07-05 08:39:00 +00:00
phk
32fdedec4d Fix my DOC2k CHRDEV goof 1999-05-29 19:36:55 +00:00
hm
47fc12ed9a Fix i4bteld entry, the section of the sh case for "i4teld*)" should be
BEFORE the case for "i4tel*)". (match the longest prefix first!)
Recognized by: Harry Starr
1999-05-24 18:01:03 +00:00
hm
87c7b1e12a upgrade isdn4bsd from version 0.71 to the just released version 0.81 1999-05-20 10:14:57 +00:00
hosokawa
75155a6001 added card1 and card2 to 'all' target.
(for machines with more than two PC-card slots)
1999-05-04 17:03:58 +00:00
peter
8c74242ac5 Zap default creation of /dev/lkm - it doesn't point to anything anymore 1999-04-24 20:57:39 +00:00
msmith
f9e763c08c Make the USB devices by default, comment them. 1999-04-08 21:23:18 +00:00
sos
3269be1a6b Rewert the atapi CDROM driver's name to wcd.
This is to avoid confusion with the new system.
Also provide real entires in MAKEDEV for the new system.
1999-03-16 13:34:03 +00:00
gibbs
eb3e0db2ff Add targ.ctl, a device node for allocating and configuring instances
of the "targ" processor target target mode emulator.
1999-03-05 23:08:45 +00:00
roger
a5964a2cce Put back the bktr update to generate /dev/vbi
which I managed to delete yesterday.
1999-03-02 16:04:27 +00:00
roger
6074428d82 Updated the bktr entry to generate bktr*, tuner* and now vbi*
/dev/vbi will allow vbi capture from the bt848 card for software
teletext decoding.
1999-03-01 12:13:24 +00:00
roger
aecd33a5ae Updated the bktr entry to add vbi*
bktr now makes bktr, tuner and vbi
1999-02-26 16:14:22 +00:00
n_hibma
0735633a14 Change to a proper numbering scheme for the ugen device. It requires
a unit and endpoint number. This is combined into a minor number.
The naming of the devices in /dev is now /dev/ugen<unit>.<endpoint>
1999-02-18 21:17:16 +00:00
jkh
cdf88166f8 DTRT for acd/wcd backwards compatibility 1999-02-14 19:41:36 +00:00
mjacob
a3890169be Bruce gently nudged me into doing this right 1999-02-05 22:54:37 +00:00
mjacob
9f1cd7bbda add back ctl for sa and add more units 1999-02-04 20:35:07 +00:00
markm
e4f8293510 Replace a bunch of "ln foo bar"'s with "ln -f foo bar".
This means that if(when) you go "sh MAKEDEV all" in /dev
the devices get remade; you don't get errors.
A lot of the changes are for info only; they are commented out.

Not exactly shot to pieces by:	bde
1999-01-24 13:51:26 +00:00
n_hibma
83794badc1 Take cdev major # 114 for ugen 1999-01-12 01:31:13 +00:00
n_hibma
eb0ecf19d5 Added file handling to ulpt (USB printer) driver 1999-01-11 00:03:59 +00:00
hm
4bf4780617 add generation of ISDN (i4b) devicefiles 1999-01-08 16:03:57 +00:00
yokota
0c096ac99c Added kbd*. 1999-01-06 16:18:05 +00:00
n_hibma
2f8fa3c9c9 Corrected the major number for usb and added ums as major 111 1999-01-03 16:48:03 +00:00
nsouch
9cada5b4b1 Arrg, ppi*) corrected 1998-11-12 22:48:16 +00:00
nsouch
926c6ce8a2 Add ppi*) iic*) and smb*) 1998-11-12 22:45:24 +00:00
obrien
4368978c4d Backout rev 1.175. 1998-10-31 05:27:02 +00:00
obrien
6ab12fbef8 ``MAKEDEV ccd3'' is now consistant with many of the other devices in that
*ccd{0,1,2}* will be created.
1998-10-30 06:02:48 +00:00
obrien
13c6a196b0 ``MAKEDEV bpf3'' is now consistant with many of the other devices in that
bpf{0,1,2} will be created.
1998-10-29 22:16:29 +00:00