Commit Graph

267 Commits

Author SHA1 Message Date
Brian Somers
2bc268486d 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
Søren Schmidt
ea5cb0b3c0 Add the acdNt# devices to the acd entry, for individual track access. 2000-08-11 09:22:34 +00:00
Brian Feldman
c32527f202 Keep urandom as a link to random (but a hard link). 2000-07-30 16:18:48 +00:00
Brian Feldman
ae7ccf4237 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
Nick Sayer
a5213f145a 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
Ruslan Ermilov
572c5e2af7 Add /dev/agpgart for AGP.
Reviewed by:	dfr
2000-07-19 09:21:14 +00:00
Warner Losh
034aee24de Apm device is now safe to be world readable, so make it so. 2000-07-19 06:35:58 +00:00
Seigo Tanimura
fb0ef52838 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
Coleman Kane
4b246ac0bd Force the link from 3dfx# -> 3dfx, so that it doesn't bail with "file
exists"
2000-06-26 15:42:48 +00:00
Mark Murray
2c00ff8434 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
Coleman Kane
bf0ad6d752 Add 3dfxN to MAKEDEV, automatically links 3dfx to the last 3dfxN made. 2000-06-24 06:36:39 +00:00
Seigo Tanimura
1f82d2d70d 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
Mike Smith
245196141c Learn how to create device nodes for the 'twe' devices. 2000-05-24 23:49:49 +00:00
John Baldwin
83f9061201 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
David E. O'Brien
1383c1a906 Fix the linking in my `sa' changes.
Submitted by:	Christian Weisgerber <naddy@mips.inka.de>
2000-05-10 02:51:36 +00:00
Peter Wemm
7a5388bfbf Fix some whitespace brokeness.. (usio and ctx) 2000-05-09 01:15:55 +00:00
Peter Wemm
324eb8fed2 Finish off replacing the rest of the duplicate mknod's with hard links. 2000-05-09 00:07:46 +00:00
Peter Wemm
8ec5a5caee 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
David E. O'Brien
ba83c9cb0d Add [en]sa devices for othoginality. 2000-05-08 21:32:24 +00:00
Jeroen Ruigrok van der Werven
22b9f6cdc7 Fix comparison of units.
Submitted by:	Maxim Sobolev <sobomax@altavista.net> on -current
2000-05-06 14:17:23 +00:00
Peter Wemm
7cb24dbb43 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 Costello
ea6e84950b 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
Nick Hibma
f288840b98 Doug Ambrisko recommends not using minor 0-127 yet (Hardware flow
control)
2000-03-26 19:48:49 +00:00
Nick Hibma
2db1dbae22 Add the entry for usio, major 138 2000-03-26 12:59:22 +00:00
Nick Hibma
05433731b6 Add the entries for urio. 2000-03-18 18:45:48 +00:00
Jonathan Lemon
064dbb0301 Correct device naming for IDA disk nodes (idad) 2000-03-08 18:14:02 +00:00
Robert Watson
9f914b5425 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
Nick Hibma
53492ec871 Add the uhid device.
Approved by:   jhk
2000-02-12 21:16:01 +00:00
Robert Watson
bfbdbfef6e 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
Bruce Evans
66cd37e02c 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
Nick Hibma
e9ea2dfc2f 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
Nick Hibma
a043eecf95 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
Jordan K. Hubbard
17ed57a625 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
Matt Jacob
e49ff0841a add SES driver 2000-01-15 21:04:13 +00:00
Guido van Rooij
0a2f446f08 Readd ipfilter devices
PR:		16093
2000-01-13 20:27:22 +00:00
David E. O'Brien
6c3acb8c18 Remove usage of chgrp(1) and wrap long lines. 2000-01-07 16:20:25 +00:00
Mike Smith
155af3ba26 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
Mike Smith
184a6f3512 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 Takenori
6fb89845b4 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
Bruce Evans
bcf269395d 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
Brian Feldman
1d1811b172 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 Wunsch
204a8f7283 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
Mike Smith
cd052235cd 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
Poul-Henning Kamp
86e88eb492 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
Nick Hibma
efb9fba1e1 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
Poul-Henning Kamp
d21c76f6ef Remove /dev/drum 1999-11-24 19:14:11 +00:00
Poul-Henning Kamp
a886b6851f Remove leftover reference to the "od" devices. 1999-11-24 19:07:31 +00:00
Nick Hibma
bdf1e3f204 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
Søren Schmidt
2e43037a03 cleanup the IDE cases a bit, add the ad driver to the all: target. 1999-11-09 12:53:01 +00:00
Nik Clayton
7444245a73 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