Commit Graph

38376 Commits

Author SHA1 Message Date
dt
d17fc0888d Don't use nblkdev. 1999-05-31 20:44:11 +00:00
dt
52ba14a81a Remove declaration of the nblkdev and nchrdev variables. 1999-05-31 20:42:41 +00:00
dfr
cadbcf7ce3 * Change include file locations.
* Fix some misunderstandings about the return value of resource_int_value().
* Make it build on alpha (doesn't work yet...)
1999-05-31 18:39:17 +00:00
dfr
1fc0ec64f0 Remove fd driver from its old home and change files which include rtc.h
to account for its new location.
1999-05-31 18:36:14 +00:00
dfr
7435fd956d The fd driver has moved from i386/isa to isa. 1999-05-31 18:33:24 +00:00
phk
6a5dc97620 Simplify cdevsw registration.
The cdevsw_add() function now finds the major number(s) in the
struct cdevsw passed to it.  cdevsw_add_generic() is no longer
needed, cdevsw_add() does the same thing.

cdevsw_add() will print an message if the d_maj field looks bogus.

Remove nblkdev and nchrdev variables.  Most places they were used
bogusly.  Instead check a dev_t for validity by seeing if devsw()
or bdevsw() returns NULL.

Move bdevsw() and devsw() functions to kern/kern_conf.c

Bump __FreeBSD_version to 400006

This commit removes:
        72 bogus makedev() calls
        26 bogus SYSINIT functions

if_xe.c bogusly accessed cdevsw[], author/maintainer please fix.

I4b and vinum not changed.  Patches emailed to authors.  LINT
probably broken until they catch up.
1999-05-31 11:29:30 +00:00
phk
881e263683 You'll see them eventually :-) 1999-05-31 07:43:44 +00:00
phk
ad85d13d8a The PPSAPI group defines the polarity in draft 3, we guessed it wrong. 1999-05-31 06:57:31 +00:00
billf
d6b7b90dd4 Add the 'advocacy' category, sort this document. 1999-05-30 23:59:36 +00:00
billf
5de50b4d37 procedure, not proceedure. 1999-05-30 21:31:18 +00:00
wpaul
51acffbe06 Add support for SiS 900 chipset (PCI ID 0x1039/0x0900), which appears to
be yet another rebadged RealTek 8139.
1999-05-30 18:55:20 +00:00
n_hibma
83ddff966f Enable attachment of multiple drivers to a single device. 1999-05-30 18:49:17 +00:00
n_hibma
26fb913de5 Notify CAM of the removed device on detach. 1999-05-30 18:46:04 +00:00
wpaul
c45bbfd551 Whoops, forgot to update xl_mediacheck() to account for the 3c905C. 1999-05-30 18:11:47 +00:00
wpaul
19bbf48969 Head for the hills friends and neighbors, 3Com has yet another 3c90X
chipset. First you thrilled to the 3c905, then you trembled at the
3c905B, now gaze in wonder at: the 3c905C! This appears to be another
3c90X series chip called the Tornado (PCI ID 0x10B7/0x9200) and should
be equivalent (from the driver API perspective) to the 3c905B, so all
we have to do is add the PCI ID to the list.
1999-05-30 18:09:17 +00:00
hoek
3fa611e83e General code cleanup [incomplete]. Make the arrow keys work. 1999-05-30 18:06:58 +00:00
phk
7e4a9dced9 This commit should be a extensive NO-OP:
Reformat and initialize correctly all "struct cdevsw".

        Initialize the d_maj and d_bmaj fields.

        The d_reset field was not removed, although it is never used.

I used a program to do most of this, so all the files now use the
same consistent format.  Please keep it that way.

Vinum and i4b not modified, patches emailed to respective authors.
1999-05-30 16:53:49 +00:00
phk
dfa3967ffa Don't bogusly define a d_reset_t function. 1999-05-30 14:55:24 +00:00
n_hibma
d13d00dd20 1) Add URL for printer class specification
2) Change name of UE_IN to UE_DIR
3) Enable printing of the Printer Id string
4) Clean up debugging output while we are at it.
1999-05-30 13:03:00 +00:00
n_hibma
6dc9d0ed10 - When aborting an interrupt pipe, just wait for 1ms for the completion
of the current interrupt trasaction.
- Do not schedule the next interrupt transaction if the pipe is being
aborted or the last round of the interrupt transaction ended with error.

Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1999-05-30 12:49:39 +00:00
n_hibma
678ee57ac4 When the mouse is being disconnected, do the followings:
- Call ums_disable() to abort the pipe.
- Do not wake up processes which has been waiting or polling for mouse
  data.  It won't be available anymore.

Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1999-05-30 12:48:49 +00:00
dfr
89255a036a Simplistic pnp support. Needs more ids to be added. 1999-05-30 11:14:39 +00:00
dfr
9246fc0c80 No support for pnp yet. 1999-05-30 11:12:30 +00:00
dfr
5c03878b71 No support for pnp devices yet. 1999-05-30 11:10:10 +00:00
dfr
1978cc5b90 Allow up to 8 ports, 4 memory regions and two irqs and drqs. 1999-05-30 11:05:39 +00:00
dfr
21de0868b3 * Use ISA_DELETE_RESOURCE to cancel memory resource if driver clears maddr.
* Don't allow new-style isapnp devices through the compat interfaces.
1999-05-30 11:04:31 +00:00
dfr
cc731817af Don't include isa_dma.h if we have already seen isavar.h 1999-05-30 11:03:10 +00:00
dfr
3372b64e9d * Add ivars for ISA pnp.
* Move isa_dma* declarations to isavar.h.
* Add a method ISA_DELETE_RESOURCE() to the ISA interface.
* Tidy up include protection defines.
1999-05-30 11:02:17 +00:00
dfr
5e6c0b7363 In pci_alloc_resource() only check start and end to see if its a default. 1999-05-30 10:54:31 +00:00
dfr
8a8d1b8c17 Activate/deactivate resources by calling the method, not through the
resource manager automatic handling of RF_ACTIVE.
1999-05-30 10:50:57 +00:00
dfr
024249e17e Use resource allocation apis to get ports. 1999-05-30 10:49:25 +00:00
dfr
0681bc77d8 Typo: "can't boot 'boot'" should be "can't boot 'kernel'" 1999-05-30 10:45:03 +00:00
dfr
6aee1a4704 * Add a function devclass_create() which looks up the named devclass and
creates it if it doesn't exist.
* Rename resource_list_remove() to resource_list_delete() for consistency.
1999-05-30 10:27:11 +00:00
alc
a20319a2ae Addendum to 1.155. Verify the existence of the object before checking
its reference count.
1999-05-30 01:12:19 +00:00
gallatin
58ba6a68ef When memory mapping a PCI device (like XFree86 does) on an XP1000, we must
use ALPHA_PHYS_TO_K0SEG(offset) rather than just plain offet.  I've verified
that this does not break other platforms (I've tested an AlphaStation 200
and a Personal Workstation 500au with this patch).

As to why this works, well.. Its black magic as far as I know.  I obtained
this hack from Myricom, who in turn, obtained it from Compaq engineers.
Without this hack, XFree86 cannot talk to a PCI graphics card.

Reviewed by:	Doug Rabson <dfr@nlsystems.com>
Obtained from:  feldy@myri.com (Bob Felderman)
1999-05-29 19:47:51 +00:00
phk
d6f941931f Fix my DOC2k CHRDEV goof 1999-05-29 19:36:55 +00:00
gallatin
ec6b8177b1 A small change to allow automatic detection of the boot
disk on Compaq XP1000's where Disk zero is dka0.0.0.6.1,
eg bus #1, slot #6.

Reviewed by:	Doug Rabson <dfr@nlsystems.com>
1999-05-29 19:23:20 +00:00
nik
d34376d0e4 "Tn DNS" -> ".Tn DNS"
PR:             docs/10474
Submitted by:   Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
1999-05-29 13:08:54 +00:00
nik
f6d67ae319 Fix a couple of typos related to wfd.
PR:             docs/10624
Submitted by:   Joe Abley <jabley@buddha.clear.net.nz>
1999-05-29 13:08:12 +00:00
nik
61311c22af Fix typo which causes an unnecessary line break.
PR:             docs/11561
Submitted by:   Norihiro Kumagai <kuma@nk.rim.or.jp>
1999-05-29 13:02:00 +00:00
nik
02c236ef75 Description of LOCKLEAF said "inode" when it should have said "vnode".
PR:             docs/11596
Submitted by:   Robert Watson <robert@fledge.watson.org>
1999-05-29 13:00:40 +00:00
nik
a076fb6f6e Note that using the dirent.d_type member is non-portable, and might
fail on some filesystems.

PR:             docs/11645
Submitted by:   Harold Gutch <logix@foobar.franken.de>
1999-05-29 12:59:51 +00:00
nik
a8223f5303 Fix the typos, and add new entries (like the /etc/periodic/ and /etc/mail/
directories).

PR:             docs/11695
Submitted by:   Chris Costello <chris@calldei.com>
1999-05-29 12:58:44 +00:00
kris
659ebc8fe9 $Header$ -> $Id$
Manpage formatting/grammatical fixes.
Check return value of malloc()
Add sccsid[], other minor source code cleanups

Submitted by:	Philippe Charnier
1999-05-29 08:16:34 +00:00
kris
f05e990fab Xref mountd in text.
Submitted by:	Philippe Charnier
1999-05-29 08:14:00 +00:00
kris
bd85d67256 Manpage cleanup, move $Id$ to #ifndef lint, remove unused includes,
grammatical fixes.

Submitted by:	Philippe Charnier
1999-05-29 08:12:38 +00:00
phk
f0e4180b10 Stop the TSC from being used as timecounter on K5/step0 machines. 1999-05-29 06:57:55 +00:00
jkh
932326ab45 Don't put CVS files in ports. It's kinda useful for cvs updating
a ports tree which was installed initially with the system later,
but this is probably not the general case (user CVSups the repository
rather than the checked-out bits) and it's penalizing everyone else
with excessive inode consumption.
1999-05-29 00:42:05 +00:00
wpaul
fa6fffc6ff Fix support for the PNIC II. Earlier I had assumed that the PNIC II was
similar to the PNIC I (supported by the pn driver). In fact, it's really
a Macronix 98715A with wake on LAN support added. According to LinkSys,
the PNIC II was jointly developed by Lite-On and Macronis. I get the
feeling Macronix did most of the work. (The datasheet has the Macronix
logo on it, and is in fact nearly identical to the 98715 datasheet, except
for the extra wake on LAN registers.) In any case, the PNIC II works just
fine with the Macronix driver.

The changes are:

- Move PCI ID for the PNIC II from the pn driver to the mx driver.
- Mention PNIC II support in mx.4.
- Mention PNIC II support in RELNOTES.TXT and HARDWARE.TXT.
1999-05-28 18:43:25 +00:00
bde
639d459251 Fixed glitches (jumps) of about 1/HZ seconds for the i8254 timecounter.
The old version only worked right when the time was read strictly
more often than every 1/HZ seconds, but we only guarantee reading
it every (1/HZ + epsilon) seconds.  Part of rev.1.126-1.127 attempted
to fix this but didn't succeed.  Detect counter rollover using the
heuristic from the old version of microtime() with additional
complications for supporting calls from fast interrupt handlers.
This works provided i8254 interrupts are not delayed by more than
1/(2*HZ) seconds.

This needs more comments, and cleanups for the SMP case, and more
testing of the SMP case before it is merged into RELENG_3.

Tested by:		jhay
1999-05-28 14:08:59 +00:00