Commit Graph

16569 Commits

Author SHA1 Message Date
bde
2115d51480 Converted the silly SAFTEY option into a new-style option by renaming it to
DIAGNOSTIC.

Fixed an English style bug in the panic messages controlled by SAFETY.
1999-08-30 07:08:04 +00:00
peter
a523787b0f If using GNUC and ELF, make __IDSTRING() expand into an inline asm
statement to put the rcsid into the .comment section.  This allows
the comments (ie:version id's of compiler, headers, source, etc) to be
stripped out with the standard tools (strip/objcopy).  SVR4 has a
tool called 'mcs' (manipulate comment section) which allows you to
add/remove/compact strings.  Removing duplicate strings helps a lot
if the headers generate them.
Using __attribute__((section(".comment"))) would probably also work,
but that still leaves the RCSID occupying C name space somewhere.
1999-08-30 03:57:47 +00:00
bde
88ae865d14 "Fixed" my recent world breakage (umap_subr.c now includes opt_ddb.h).
Fixed some style bugs, especially the bogus definition of UMAPFS.
1999-08-30 03:26:45 +00:00
jdp
f1d29df71c Add STAILQ_FOREACH. 1999-08-30 01:01:19 +00:00
billf
0a8146a286 Add $FreeBSD$ and spell Eklund properly.
Approved by:	brian (well, he approved adding $Id$)
1999-08-29 23:17:04 +00:00
obrien
1e6f13115f Remove extra indenting of `break' statements introducted in rev 1.89,
plus wrap some long lines from that revision.

While here, wrap some other long lines.
1999-08-29 21:59:03 +00:00
kato
32578c4daf - Removed COMPAT_ATDISK from option because it is pseudo-device now.
- Fixed arguments of atcompat_dsinit() in diskslice_machdep.c.
1999-08-29 21:28:47 +00:00
iwasaki
d9c1a7ecec ident GENERIC -> ident PCCARD
Okayed by:	hosokawa
1999-08-29 16:58:40 +00:00
wpaul
a7cde9673c Convert the 3Com XL driver to miibus. This one is a little tricky
due to the fact that there are non-MII cards supported by the same
driver and I don't have all of the cards available for testing. There's
also the 3c905B-COMBO which has MII, AUI and BNC media ports all in one
package. Supporting the COMBO is difficult because we have to add the
10base5 and 10base2 media types to the same ifmedia struct as the
MII-attached types, however there is no way to force the miibus and
child PHYs into existence before xl_attach() completes, so there is
no ifmedia struct available in xl_attach(). What we do inistead is
use the mediainit method as a callback: when a child PHY is attached,
it calls the miibus mediainit routine which selects a default media.
This routing also calls the NIC driver's mediainit method (if it
implements one) at which point we can safely add the other media
types.
1999-08-29 15:52:19 +00:00
wpaul
7cdd93ef08 Regenerate miidevs.h. 1999-08-29 15:44:07 +00:00
wpaul
c880bbe674 The ASIC on the 3c905C appears to be manufactured by Broadcom (previous
ones were made by Lucent). The Broadcom chip also appears to use an
internal PHY made by Broadcom which uses the Broadcom OUI. This is different
from previous ASICs which always returned 0 in the PHY ID registers.
To account for this, I added the necessary ID values for the Broadcom
PHY so that it can be detected and attached using the 3Com PHY driver
instead of defaulting to the generic one.
1999-08-29 15:42:04 +00:00
roger
e343cf1961 Add Voodoo 3 identification.
pciconf on my Vodoo3 2000 also shows sub-system vendor id/model with
card=0x0030121a
1999-08-29 15:11:22 +00:00
phk
cb7382d12c Remove unneeded "maj" variable.
Give up if we have already started dumping once before.

Print name of dumpdev.
1999-08-29 14:54:11 +00:00
phk
fa702b9bb3 Remove unneeded slice element. 1999-08-29 14:52:02 +00:00
phk
ee7265381c Convert to use the new "disk" layer.
A few cleanups while here.
1999-08-29 13:29:29 +00:00
phk
df39983a63 Add micro "disk" layer which should enable us to pull all the slice/label
stuff out of the device drivers.
1999-08-29 13:28:55 +00:00
des
453dfe962a Include the correct header for the IPSTEALTH option. 1999-08-29 12:18:39 +00:00
n_hibma
3f9d33731f Only NetBSD needs sys/device.h. 1999-08-29 11:56:49 +00:00
n_hibma
ba35feab32 Only NetBSD uses sys/device.h
Error-reported-by:	phk
1999-08-29 11:49:22 +00:00
marcel
b192ab5a4b Fix a braino: Linux minor device numbers are 8 bits wide and not 10. 1999-08-29 11:47:01 +00:00
bde
8a602972cf Fixed printf format errors (don't assume that ntohl() returns u_long;
it returns u_int on i386's and in_addr_t (u_int32_t) on alphas).
1999-08-29 10:28:10 +00:00
bde
615716acb7 Oops, I missed a cast in rev.1.119. 1999-08-29 10:23:13 +00:00
bde
9ff03382d8 Removed dysfunctional/defunct options KERNFS_DIAGNOSTIC,
UMAPFS_DIAGNOSTIC and UNION_DIAGNOSTIC.  Uncommented NULLFS_DIAGNOSTIC.
It is as bogus as the above three but since it is already a new-style
option it is easier to use it than to fix it.
1999-08-29 10:14:59 +00:00
bde
0d1e5d1ef7 Changed old-style option UNION_DIAGNOSTIC to DEBUG and fixed printf
format errors exposed by this.  It has nothing to do with diagnostics
since it does little more than control tracing of normal operation.
Actual diagnostics for the union file system are still controlled by
the DIAGNOSTIC option.
1999-08-29 10:03:35 +00:00
bde
b0ec7e8758 Changed old-style options UMAPFS_DIAGNOSTIC and UMAP_DIAGNOSTIC to DEBUG
or DDB and fixed printf format errors exposed by this.  The options had
little to do with diagnostics; they mostly controlled tracing of normal
operation.
1999-08-29 09:54:17 +00:00
bde
b2ea6809d4 Changed old-style option KERNFS_DIAGNOSTIC to DEBUG and fixed printf
format errors exposed by this.  It has nothing to do with diagnostics
since it does little more than control tracing of normal operation.
1999-08-29 09:38:25 +00:00
phk
9f769de84a Merge alpha and pc98 changes into i386 MBR handling code and replace all
three copies with one copy in MI land.
1999-08-29 09:12:54 +00:00
phk
e4ee171004 initialize si_bsize_phys from what the drive told us. 1999-08-29 09:10:05 +00:00
phk
244faf2e1b Add dev_t freeing code. Controlled by sysctl debug.free_devt, default
is off.
1999-08-29 09:09:12 +00:00
bde
b40f30707d Don't restrict our requests for contiguous memory to addresses >= 1MB.
This fixes, at least, panics in ncr_attach() on i386's with about 5MB
of memory.  The restriction was a hack to leave some low memory for ISA
DMA, but on i386's we now allocate pages from the top down, so all the
restriction did was cause our allocations to fail when there is no free
memory above 1MB.
1999-08-29 09:03:58 +00:00
marcel
a932c8483a Fix a missing '-1' in the size argument of copyout in getgroups. Spotted while
reviewing the MFC in -stable.
1999-08-29 08:52:38 +00:00
phk
62f99fc1fd Sort the easy part of this file. It should be all sorted. 1999-08-29 08:44:18 +00:00
kato
bd14e46d74 Changed from dname into devtoname(bp->b_dev) in the function dsinit(). 1999-08-29 05:05:27 +00:00
gehenna
e8b91e712a o fix typo 1999-08-29 02:05:12 +00:00
grog
1bd06cee6e Initialize the si_bsize fields of the new dev structure. This fixes
some swapper problems analogous to those experienced with ccd.

This fix is a kludge: since we currently don't track the "sector size"
in a volume label, we guess a worst case (4 kB, as used by vnode
devices).  If the concept of sector size is here to stay, I'll make
some changes to track the "sector size" of a volume.  This will
probably be the maximum of the sector sizes of all component drives,
but things could get ugly if we start allowing non-standard sector
sizes such as 524 bytes.

Unkludged-version-submitted-by:	phk
1999-08-29 01:41:53 +00:00
gehenna
74bac52783 o synchronisation with NetBSD
Reviewed by:	Hick Hibma
Obtained from:	NetBSD
1999-08-29 01:18:32 +00:00
n_hibma
4ded1b999f Correct URL's and change ifdef to if defined (following rest of style in
file)
1999-08-28 20:10:46 +00:00
n_hibma
00a145f477 Remove NetBSD specific code. USB part is trivial, and the rest is not
shared anyway.
1999-08-28 20:09:34 +00:00
phk
ad3452e25a Fix various trivial warnings from LINT 1999-08-28 19:44:07 +00:00
phk
f6c7768ee9 Put a brief comment on a couple of #defines. 1999-08-28 19:21:36 +00:00
phk
d311a0563b remove unused variables. 1999-08-28 19:21:03 +00:00
phk
27712fb22b #include <sys/queue.h> 1999-08-28 19:20:07 +00:00
jhay
c4958328e0 Get rid of the old XNS checksum code and implement it the IPX way.
PR:		13374
Submitted by:	Boris Popov <bp@butya.kz>
1999-08-28 18:21:55 +00:00
nyan
f98ac3b4e9 Merge missing changes from sys/i386/conf/GENERIC. 1999-08-28 16:49:58 +00:00
nyan
de07d79e72 Fix ordering. 1999-08-28 16:20:53 +00:00
nyan
48f819b5a4 - The old printer driver is renamed 'olpt'.
- Added the gdc driver.
1999-08-28 15:17:25 +00:00
kato
e696937c35 Added MII bus support.
Reminded by:	phk
1999-08-28 15:04:27 +00:00
lile
67d7802c27 It is much easier to arp if you don't truncate your arp-reply's.
[affects token-ring only]
1999-08-28 14:57:12 +00:00
phk
9c72381e09 We don't need to pass the diskname argument all over the diskslice/label
code, we can find the name from any convenient dev_t
1999-08-28 14:33:44 +00:00
hm
a261857e2d add MAINTAINER for the kernel part of i4b 1999-08-28 13:35:00 +00:00