Commit Graph

17007 Commits

Author SHA1 Message Date
imp
4df667ccde Use rmand_get_bus{tag,handle} rather than hard wiring things to
I386_BUS_SPACE_IO.  Compiles now on the Alpha, but likely will not
work due to bus space address <-> virtual address mapping bogons that
work for i386 but not alpha.
1999-09-28 19:59:41 +00:00
pb
72cd73b7a8 In sbflush(), don't exit the while loop too early: this can cause
an empty mbuf to stay in the queue, then causing a needless panic
because sb_cc == 0 and sb_mbcnt != 0.

But we still need to panic rather than endlessly looping if, for
some reason, sb_cc == 0 and there are non-empty mbufs in the queue.

PR:		kern/11988
Reviewed by:	fenner
1999-09-28 12:59:18 +00:00
phk
d997f0dcfb Introduce ttyread() and ttywrite() which do the canonical thing.
Use them in many tty drivers.

Reviewed by: julian, bde
1999-09-28 11:45:31 +00:00
dfr
7b127491ee Add another ID for the AWE64. 1999-09-28 08:25:08 +00:00
kato
a403c029e7 Sync w/ sys/i386/isa/pcaudio.c revision 1.54. 1999-09-28 08:19:53 +00:00
kato
d82d4159d3 Removed aha driver. 1999-09-28 08:16:37 +00:00
kato
41031f3311 Sync w/ sys/i386/conf/files.i386 revision 1.274. 1999-09-28 08:07:42 +00:00
peter
04c0709927 Reconnect 'bktr' now that world won't (I hope) break again from it.
'make depend' was falling over in it before.
1999-09-28 07:28:59 +00:00
peter
b4b32a20dd Make the bktr module build. The Makefile was badly mangled, including
leaving the ".c" out of most of the SRCS= source files.
1999-09-28 07:23:59 +00:00
dillon
f2044b9d8f Make sure file after VOP_OPEN is VMIO'd when transfering control from
a lower layer to an upper layer.  I'm not sure how necessary this is
    for reading.

    Fix bug in union_lookup() (note: there are probably still several bugs
    in union_lookup()).  This one set lerror as a side effect without
    setting lowervp, causing copyup code further on down to crash on a null
    lowervp pointer.  Changed the side effect to use a temporary variable
    instead.
1999-09-28 05:48:39 +00:00
mjacob
99447cd07b Ooops- forgot to commit this.
PR:		14009
Submitted by:	jreynold@primenet.com
1999-09-28 05:14:52 +00:00
steve
ffbbaa364e Fix breakage caused by last commit. Also accommodate the new interfaces
to the bpf* routines so this driver has a fighting chance of actually
working once it's compiled.

Silently approved by:	freebsd-alpha@freebsd.org
1999-09-28 03:42:32 +00:00
imp
5d24c80442 /tmp/cvswGS523 1999-09-28 02:45:34 +00:00
imp
99f05a97b3 Newbusification of aha. dfr sent me the first cut, and I made it
work.  Be more verbose when one cannot allocate IRQ, et al since this
is a common configuration problem.  The cards have the IRQ soft wired
into their BIOS and do not try to do collision detection.  This can
cause problems when this IRQ is the same as another card/device.

The PNP hasn't been tested.  My PNP board is in a deployed system.
I'll sneak in testing of it sometime later.  I've been able to mount
the 3.3R cdrom that arrived today and access files off it.

Submitted by: dfr
1999-09-28 02:39:45 +00:00
ru
4f02a83d7a Properly handle the case when either the aliasing or source address of
the link are equal to the default aliasing address.  Do not zero them!

This will fix the problem with non-working links added with the source
and/or aliasing address equal to the default aliasing address, but the
default aliasing address is set later, after the link has been set up,
like both natd(8) and ppp(8) do (for objective reasons).

Reviewed by:	Brian Somers <brian@FreeBSD.org>,
		Eivind Eklund <eivind@FreeBSD.org>,
		Charles Mott <cmott@srv.net>
1999-09-27 08:40:36 +00:00
roger
ef1ea14ee8 Add auto-detection for Askey Dynalink Magic TView and
Leadtek Winfast 2000 cards.
No audio support yet, just the card make is reported.

Submitted by:	 Craig <crh@outpost.co.nz>
Submitted by:	 Peter Wemm <peter@netplex.com.au>
1999-09-27 08:04:55 +00:00
kato
fc85798285 ed driver re-activated. 1999-09-27 03:39:15 +00:00
kato
6aae311e12 Removed pc98 code. 1999-09-27 03:37:36 +00:00
kato
10f59853f0 Make ed driver work again.
isa_compat.c
  Copied from sys/i386/isa/isa_compat.c.  It includes
  sys/pc98/pc98/isa_compat.h instead of sys/i386/isa/isa_compat.h.

isa_compat.h
  Copied from sys/i386/isa/isa_compat.c.  The ed driver is registered
  in this file until pc98's ed driver is converted into new-bus style.

files.pc98
  Use sys/pc98/pc98/isa_compat.c instead of sys/i386/isa/isa_compat.c.

if_ed.c
  - Fixed the location of the include file.
  - Disalbed pnp support.
1999-09-27 03:35:41 +00:00
nyan
c428777d32 Merge from sys/isa/fd.c revision 1.146, 1.153, 1.154 and 1.159. 1999-09-27 03:32:31 +00:00
kato
b7a0e72094 Move if_ed.c back to files.i386 since pc98 has a special ed driver.
Reviewed by:	peter
1999-09-27 03:11:36 +00:00
billf
8f9fbd50da Spell 'timecounter' correctly. 1999-09-27 02:13:38 +00:00
imp
96c78412e8 Revert non-aha changes. They weren't supposed to go in. 1999-09-27 02:07:12 +00:00
peter
05c88d2152 Seperate pcaudio from isa/snd and isa/sound - it's not worth this breaking
each time there is a change.
1999-09-27 01:52:37 +00:00
grog
b0ca6dcf7c Correct typo in comment. putccdbuf() releases a buffer, it doesn't allocate one. 1999-09-27 01:51:42 +00:00
imp
3b6be5abb1 Move aha driver to dev/aha like the other drivers.
Code relocation only, no code changes.
1999-09-27 01:51:18 +00:00
peter
196c728eea Zap some unused echo "#define NFOO 1" > foo.h style defunct stuff. 1999-09-27 01:04:44 +00:00
peter
086dd27985 Don't set an unused make(1) variable (NBPF) 1999-09-27 01:00:20 +00:00
peter
49bc544122 bktr (as a module) doesn't build. 1999-09-27 00:56:32 +00:00
peter
8a4bcd3d98 Zap #include "tun.h" (for NTUN) - which isn't used anymore. 1999-09-27 00:55:29 +00:00
peter
48ceca8b34 zap #include "streams.h" (for NSTREAMS) - which isn't used. 1999-09-27 00:54:20 +00:00
peter
372cb290b6 Zap #include "vn.h" - it's not used 1999-09-27 00:53:24 +00:00
peter
318252d20d Don't generate 'bpf.h' since it's not used. 1999-09-27 00:39:29 +00:00
peter
e1ae1d55d9 Don't generate 'bpf.h' since it's not used. 1999-09-27 00:34:02 +00:00
dillon
ad3c1d0d50 If the request crosses EOF and bp->b_bcount is not a multiple of
the sector size, the new value for bp->b_bcount was incorrectly
    calculated.  Fixed.

Submitted by: 	Tor.Egge@fast.no
1999-09-27 00:27:32 +00:00
dillon
523693333b Fix process p_locks accounting. Conversions of the owner to LK_KERNPROC
caused p_locks to be improperly accounted.

Submitted by:	Tor.Egge@fast.no
1999-09-27 00:21:43 +00:00
dillon
246b6169a5 Buffer locking code failed to use BUF_KERNPROC and BUF_UNLOCK and
BUF_LOCKFREE a buffer prior to physically freeing it.  While these
    bugs did not cause a crash, they might in the future.

    Added eof handling for unlabeled partitions.

Submitted by:	Tor.Egge@fast.no
1999-09-27 00:12:36 +00:00
peter
a189a151d4 Bid a fond farewell to these files, they live on various forms in
dev/pcm/* and dev/pcm/isa/*
1999-09-26 22:20:29 +00:00
peter
81c97c4267 These files live on in sys/dev/pcm/pci/es1370* 1999-09-26 22:15:49 +00:00
roger
81e772d48a Update to use new Bt848 driver 1999-09-26 22:13:06 +00:00
roger
372d59aebd Add new Bt848 driver files 1999-09-26 22:08:55 +00:00
roger
cc0259e9ae Split the Bt848 driver into seperate files for
audio, tuner, card make, os dependent code and core bt848/i2c code.

Also, rewrite tuner code for FM Radio to make the code cleaner.
1999-09-26 22:06:20 +00:00
imp
d3e4b3d76d *** empty log message *** 1999-09-26 21:52:43 +00:00
imp
7d666fd176 Kill printf warnings. 1999-09-26 21:24:36 +00:00
dillon
43bc357508 This is a major fixup of unionfs. At least 30 serious bugs have been
fixed (many due to changing semantics in other parts of the kernel and not
    the original author's fault), including one critical one: unionfs could
    cause UFS corruption in the fronting store due to calling VOP_OPEN for
    writing without turning on vmio for the UFS vnode.

    Most of the bugs were related to semantics changes in VOP calls, lock
    ordering problems (causing deadlocks), improper handling of a read-only
    backing store (such as an NFS mount), improper referencing and locking
    of vnodes, not using real struct locks for vnode locking, not using
    recursive locks when accessing the fronting store, and things like that.

    New functionality has been added:  unionfs now has mmap() support, but
    only partially tested, and rename has been enhanced considerably.

    There are still some things that unionfs cannot do.   You cannot
    rename a directory without confusing unionfs, and there are issues
    with softlinks, hardlinks, and special files.  unionfs mostly doesn't
    understand them (and never did).

    There are probably still panic situations, but hopefully no where near
    as many as before this commit.

    The unionfs in this commit has been tested overlayed on /usr/src
    (backing /usr/src being a read-only NFS mount, fronting /usr/src being
    a local filesystem).  kernel builds have been tested, buildworld is
    undergoing testing.  More testing is necessary.
1999-09-26 20:52:41 +00:00
peter
55af9092c0 GC bdbtofsb() 1999-09-26 19:05:39 +00:00
peter
6cabfcc222 bdbtofsb() appears to have been unused for quite some time, if ever.
Appears to be a 4.4Lite relic.
1999-09-26 18:56:43 +00:00
n_hibma
17aec38e28 Change explicit use of the queue fields into use of the definitions
in queue.h.

Change the name of two variables for consistency.

Reviewed-By:	peter
1999-09-26 18:48:53 +00:00
peter
9a4c2b966a Minor tidy up of PPP_FILTER and NBPF stuff. Don't generate bpf.h in the
module and don't #include "bpf.h".
1999-09-26 18:44:29 +00:00
wpaul
6f1f6d0fe1 Update the Starfire driver comments and man page to include the URL of
the AIC-6915 Programmer's Manual which I finally found online at Adaptec's
site.
1999-09-26 18:35:30 +00:00