Commit Graph

17563 Commits

Author SHA1 Message Date
tanimura
51c9fe3356 The unit of sndstat is fixed to zero. 1999-11-06 05:31:47 +00:00
archie
b974ee813c Fix several bugs found in the first bit of testing. 1999-11-06 02:09:17 +00:00
obrien
350a8a1d2e Fix the style of some options. 1999-11-05 20:41:09 +00:00
obrien
66d0a1c7e3 Style lint LINT.
mostly this was fixing options to be "options<sp>^IOPTION", along with
	many <sp> replaced by ^I to be consistant.
1999-11-05 20:40:01 +00:00
obrien
e70e0328d7 Change some wdX entries from "disk" to "device". These got missed in the
rev 1.665 commit.
1999-11-05 20:37:23 +00:00
obrien
9411fcc3f5 Style sync with GENERIC. 1999-11-05 20:06:38 +00:00
julian
aa2c36581b Re-add this till I can fix netstat to not need it. 1999-11-05 20:04:00 +00:00
msmith
f2d8ea6d8e Guard against freeing NULL if vfs_mountroot_try is called with NULL
as an argument (this is legal to make other code simpler).
1999-11-05 19:28:07 +00:00
shin
7efc91cadc KAME related header files additions and merges.
(only those which don't affect c source files so much)

Reviewed by: cvs-committers
Obtained from: KAME project
1999-11-05 14:41:39 +00:00
gallatin
660a7daead Remove calls to alpha_register_pci_scsi(). After Mike's recent boot
changes, it no longer exists and is preventing alpha kernels from building.

reviewed by: msmith
1999-11-05 13:10:39 +00:00
roberto
3ebec0e7c8 Add a forgotten source file.
Approved by:	bp
1999-11-05 12:00:36 +00:00
msmith
07b89ba5ca Expand the sscanf buffer to 32 bytes to make room for the expanded
pattern, with some space left over to avoid this mistake next time it's
improved.

Submitted by:	luoqi
1999-11-05 02:45:50 +00:00
julian
f3be8b4e84 Add the option for a socket node to shut down when the last hook
to an adjoining node is removed. Also move file scope definitions back
within the file, and remove un-needed include file.
1999-11-05 02:18:08 +00:00
alc
034b0d2ccc Remove an unnecessary alignment check from osigreturn and sigreturn. (The
data is copyin()'ed to a properly aligned buffer.)

Return EFAULT rather than EINVAL if the sigcontext is inaccessible,
as specified by the documentation.

Submitted by:	bde
1999-11-04 23:23:13 +00:00
msmith
039680b91d Allow vfs names to include the digits 0-9 as well as the letters a-z.
This should let 'cd9660' filesystems be allowed.

Submitted by:	ghelmer
1999-11-04 17:48:11 +00:00
nyan
d3b5b37927 Sync with sys/i386/isa/spkr.c revision 1.44. 1999-11-04 11:20:46 +00:00
dfr
607d5ec791 Fix the atomic arithmetic primitives for address where (p&7) >= 4.
Reviewed by: gallatin
1999-11-04 09:55:07 +00:00
alc
876db944a5 Eliminate two useracc(..., VM_PROT_READ) calls that immediately precede
copyin() calls.

Submitted by:	bde
1999-11-04 07:21:41 +00:00
msmith
bd93bea682 Re-implement the handing of RB_CDROM in a machine-independant fashion.
We currently only search SCSI and IDE CDROMs; if there's felt to be a
need for supporting the very old and rare soundcard etc. drives for this
application they can be trivially added.
1999-11-04 01:40:18 +00:00
gallatin
bcba2990f6 now that a map's base addr is 64-bits, the alpha multi-hose hack needs
to be cast to 64-bits in pci_add_map.  This should allow XP1000s and
DS20s to boot -current again.
1999-11-03 22:43:03 +00:00
archie
fcbe1d0da9 Fix bug in BIOCGETIF ioctl() where it would return a bogus interface
name if the interface unit number was greater than 9.
1999-11-03 21:32:28 +00:00
dfr
48a805cdec Add back netboot since it compiles just fine. Note that you need a full
source tree to build netboot since it depends on headers from libstand.
1999-11-03 20:19:30 +00:00
dfr
3e24456222 * Don't wait forever for the boot2 filename if the PCC wraps.
* If the user presses return, load boot2 immediately.
1999-11-03 20:18:12 +00:00
grog
c30c23e035 Emergency fix to stop world breakage.
Broken-by:	archie
1999-11-03 20:04:00 +00:00
phk
704f2192e3 Move strto{u}[ql]() into their own libkern files.
Urged by:	bde
1999-11-03 18:20:59 +00:00
phk
487a9d07d6 Move isfoo() and friends to the newly created sys/ctype.h.
Urged by:       bde
1999-11-03 17:54:26 +00:00
mdodd
d16bedd42a Fix bus_setup_intr(); I changed exintr() to take a pointer to ex_softc
but didn't change bus_setup_intr() to pass the softc in.

Submitted by:	Warner Losh <imp@village.org>
1999-11-03 15:45:14 +00:00
phk
aa6c012138 Remove compat cruft. 1999-11-03 14:15:18 +00:00
bde
d60ac1963e Quick fix for breakage of ext2fs link counts as reported by stat(2) by
the soft updates changes: only report the link count to be i_effnlink
in ufs_getattr() for file systems that maintain i_effnlink.

Tested by:	Mike Dracopoulos <mdraco@math.uoa.gr>
1999-11-03 12:05:39 +00:00
msmith
219fe6842a Make MFS work with the new root filesystem search process.
In order to achieve this, root filesystem mount is moved from
SI_ORDER_FIRST to SI_ORDER_SECOND in the SI_SUB_MOUNT_ROOT sysinit
group.  Now, modules which wish to usurp the default root mount
can use SI_ORDER_FIRST.

A compiled-in or preloaded MFS filesystem will become the root
filesystem unless the vfs.root.mountfrom environment variable refers
to a valid bootable device.  This will normally only be the case when
the kernel and MFS image have been loaded from a disk which has a
valid /etc/fstab file.  In this case, the variable should be manually
overridden in the loader, or the kernel booted with -a.  In either
case "mfs:" should be supplied as the new value.

Also fix a typo in one DFLTROOT case that would not have compiled.
1999-11-03 11:02:47 +00:00
nyan
e6e04fd013 Cosmetic changes. 1999-11-03 10:08:15 +00:00
nyan
35858ecbf7 Support RSA-98III PnP mode. 1999-11-03 09:13:16 +00:00
nyan
95cb80cbf8 Sync with sys/isa/sio.c revision from 1.269 to 1.273. 1999-11-03 09:02:23 +00:00
nyan
8ffdd77380 Remove unnecessary file. 1999-11-03 08:45:16 +00:00
nyan
54e335c704 Sync with sys/i386/conf/GENERIC revision 1.199. 1999-11-03 08:43:11 +00:00
nyan
b95da9010f Sync with sys/i386/isa/clock.c revision 1.146. 1999-11-03 08:36:17 +00:00
nyan
3415a19e36 Sync with sys/boot/i386/btx/btx/btx.s revision 1.13. 1999-11-03 08:32:03 +00:00
nyan
8b1b01b07c Sync with sys/i386/i386/machdep.c revision 1.371. 1999-11-03 08:25:40 +00:00
nyan
e9b6ffaaf2 Sync with sys/boot/i386/libi386/Makefile revision 1.15. 1999-11-03 08:23:57 +00:00
nyan
40827ed058 Sync with sys/dev/syscons/syscons.c revision 1.326. 1999-11-03 08:19:35 +00:00
tanimura
c72b8f101c Fix for multiple pcm devices. 1999-11-03 08:10:49 +00:00
gallatin
cc3fdb5fc5 Add a second direct map window to increase the maximum RAM this platform
can deal with from 1GB to 2GB.   I have no way to test with >1GB because I
don't have high enough density memory to get any one box over 1GB.  However, I
have tested it on xp1000 & ds10 with < 1GB of memory & have verified that it
does no harm.
1999-11-03 01:16:11 +00:00
archie
ef92fd8274 Add statistics counters to "tee" netgraph node type. 1999-11-02 23:31:49 +00:00
archie
a481e1e52b Simplify checking/parsing of strings using strtoul(), isdigit(), etc. 1999-11-02 23:18:01 +00:00
archie
379a856804 Consolidate some of the various ctype(3) macros in one location. 1999-11-02 22:50:34 +00:00
archie
71ff24eb06 Change structure field named 'toupper' to 'to_upper' to avoid conflict
with the macro of the same name.  Same thing for 'tolower'.
1999-11-02 22:46:42 +00:00
archie
52125b012d Change isspace() macro name to avoid conflict. 1999-11-02 22:42:56 +00:00
archie
76720085df Remove unused macro definition. 1999-11-02 22:40:15 +00:00
archie
5de08d7a34 Add new options NETGRAPH_PPP and NETGRAPH_PPPOE, plus NETGRAPH_SOCKET which
was missing from before.
1999-11-02 22:38:50 +00:00
archie
c350e3297b Add options NETGRAPH_PPP and NETGRAPH_PPPOE. 1999-11-02 22:36:09 +00:00
archie
628b90e4ea Fix typo in previous commit. 1999-11-02 22:24:41 +00:00
jhb
57783992cd Remove the prototypes for two functions that were removed when the
CD9660_ROOT option was axed.
1999-11-02 19:38:27 +00:00
msmith
db4ab99c0c Cut out some extra dead code that I missed last time around. I think
this will fix the alpha kernel build now (MFS excluded).
1999-11-02 19:29:20 +00:00
phk
595779d84c Add mn0 in the netgraph section. 1999-11-02 14:25:04 +00:00
phk
2a0f554a8b New driver: Nx64kbit/s E1/T1 cards based on Munich32x&Falc54.
This is a netgraph driver.
1999-11-02 14:23:14 +00:00
phk
6208a5013f Remove two private copies of strtoul()
Spotted by:	bde
1999-11-02 09:34:09 +00:00
green
890342f440 Unbreak this build. 1999-11-02 04:16:17 +00:00
msmith
bc581235b4 Correctly compute the block count. In reality, it seems that the
controller will never return the command if it's not exactly a multiple
of a block in size.

Cosmetic formatting for RAID level output.
1999-11-02 03:25:24 +00:00
msmith
0581a055e6 Don't print the chipset value; it's not useful.
Now we know what some of the state values are, print the current array
state.
1999-11-02 03:24:09 +00:00
jmb
c4b43b216f fix misordering of two lines in this file. 1999-11-02 02:19:24 +00:00
msmith
c36e70686e Newline-terminate the complaint message about not being able to find
the root vnode pointer.
1999-11-01 23:57:28 +00:00
msmith
2ba600f767 Call bootpc_init before we try to mount an NFS root, if we're configured
to use BOOTP for NFS root discovery.

The entire interface setup inside nfs_mountroot is evil, and should die.
1999-11-01 23:55:38 +00:00
msmith
fd0aded94f Move a couple of globals here where they are initialised, rather than
orphaning them in vfs_conf.c
1999-11-01 23:54:07 +00:00
msmith
6270a8f009 swapinit isn't called from vfs_mountroot, so don't complain about it in
a #if 0'ed comment.

Call the machine-dependant cpu_rootconf functions from sysinits in their
respective areas, don't do it from a stub here.
1999-11-01 23:53:27 +00:00
msmith
4584f23d75 This is a complete rewrite of vfs_conf.c, which changes the way the root
filesystem is discovered.  Preference is given to using the kernel
environment variable vfs.root.mountfrom, which is set by the loader
according to the contents of /etc/fstab.  Changes in the MD code
provide fallback mechanisms for systems not using the loader.

A more robust fallback path is also provided, with the last recourse
being to prompt on the console for a root device.

These changes drastically simplify the machine-dependant parts of
the root configuration process.  In addition, support for CDROM root
devices has been removed; it was a nasty hack and didn't work.
1999-11-01 23:51:00 +00:00
nsouch
bfcfa15e68 Sync with RELENG_3. 1999-11-01 23:15:29 +00:00
eivind
b38bca6cdc Elminiate the (unused) TUNE_1542 option. 1999-11-01 22:50:52 +00:00
archie
4ede940c75 Fix some bugs in MP allocation routine when links are non-equivalent. 1999-11-01 19:44:28 +00:00
imp
43c3eb51c4 Put more explict warning that this file should not be used if you want
a working kernel
1999-11-01 17:50:29 +00:00
wpaul
8d2c4ffdd2 Do some more work on the mxphy pseudo-driver to make it better at media
detection and remove the long delays that I had used previously. Everything
should be handled by timeouts now.
1999-11-01 17:10:26 +00:00
phk
f60588ab28 Add strtol & strtoul to kernel. Derived from libc versions. 1999-11-01 15:04:04 +00:00
phk
d4a4beb863 New function:
m_print(struct mbuf *);
hexdumps a mbuf.
1999-11-01 15:03:20 +00:00
tanimura
9876a339ec Call make_dev() to shut up the warning.
Pointed out by:	Donn Miller <dmmiller@cvzoom.net>
1999-11-01 14:29:07 +00:00
julian
1de6d3eca0 Use typedefs for node methods. 1999-11-01 10:18:36 +00:00
julian
e20b3a8a98 User netgraph typedefs for methods 1999-11-01 10:09:34 +00:00
julian
3127cac2f7 Add typedefs for node methods
Suggested by phk.
1999-11-01 10:00:40 +00:00
dcs
054afb0053 Changes prompt to "ok". This line is actually commented out, and serves only
as an example and to reflect the builtin default.
1999-11-01 08:07:04 +00:00
dcs
d408c6e54d Changes the default prompt to "ok".
Mike says the whole idea of a current device was a bad idea in first place,
and will be doing away with currdev.

Anyway, people are not supposed to even notice this. :-)
1999-11-01 08:05:22 +00:00
julian
e105baa7c1 braino in sample code.
picked up by phk.
1999-11-01 05:27:44 +00:00
julian
88e6664e72 Most modern OSs have the ability to flag certain mounts as ones to
be ignored by default by the df(1) program.  This is used mostly to
avoid stat()-ing entries that do not represent "real" disk mount
points (such as those made by an automounter such as amd.)  It is
also useful not to have to stat() these entries because it takes
longer to report them that for other file systems, being that these
mount points are served by a user-level file server and resulting in
several context switches.  Worse, if the automounter is down
unexpectedly, a causal df(1) will hang in an interruptible way.

PR:		kern/9764
Submitted by:	Erez Zadok <ezk@cs.columbia.edu>
1999-11-01 04:57:43 +00:00
mjacob
8761356627 correct moronic typo 1999-11-01 04:39:52 +00:00
peter
fca471ec42 Merge the alpha and x86 majors files together. There appear to be
only two conflicts, cdev #98 and cdev #99.  These should be fixed.
MAKEDEV should probably be merged as well.
Static majors are (hopefully) going away one day soon.
This file is informational and not machine parsed by anything any more.
1999-11-01 04:12:42 +00:00
peter
ff69a3419a Update examples using 'disk' and 'tape' - they used to have magic meaning
to config(8) for static device tables that have not existed for quite
some time.  They have been aliases for 'device' for a while, and "tape"
went away entirely as it wasn't used anywhere (except in an example
in LINT.. "fixed").
1999-11-01 04:02:58 +00:00
phk
52c0213f3b Remove specfs::vop_lookup() There is no code path which can call it. 1999-11-01 02:53:38 +00:00
jmb
ae96c3770f rearrange order of tests for NE1000, NE2000, and Linksys
cards.   previous order caused computers with NE2000 cards
        to hang during boot.
1999-11-01 01:16:56 +00:00
jmb
0a038d2ffd rearrange order of tests for NE1000, NE2000, and Linksys
cards.   previous order caused computers with NE2000 cards
	to hang during boot.
1999-11-01 00:53:12 +00:00
julian
ab5e99c98f bpf need no longer be an option 1999-11-01 00:48:06 +00:00
julian
58e6bf41a6 Start making the contents of the generic framework opaque to the nodes.
This step: IDs are no-longer the address of the node.
Reviewd by: Archie@freebsd.org
1999-11-01 00:31:14 +00:00
alc
61bba49fd7 The useracc() calls in osigreturn() and sigreturn() should specify
VM_PROT_READ rather than VM_PROT_WRITE.  (This mistake predates
the B_READ/B_WRITE -> VM_PROT_READ/VM_PROT_WRITE change.)

Submitted by:	bde
1999-10-31 19:39:51 +00:00
bp
5053068e49 Bump version number to sync with ncplib 1.3.3 1999-10-31 15:11:43 +00:00
bp
033d938fca Bump internal version number with next release of ncplib. 1999-10-31 15:01:47 +00:00
nyan
fc563ce1d4 Change Linksys registers base/offset.
On NEC PC-98, asic_addr != nic_addr + 0x10.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1999-10-31 09:05:20 +00:00
tanimura
42ae38ffd6 The total uiomoved size is accumulated in c, not tmp. 1999-10-31 08:58:51 +00:00
nyan
8a99813670 - Sync with sys/i386/isa/if_ed.c revision 1.163.
- Supported Networld EC/EP-98X.
- Rewrite NE2000 PCMCIA (LPC-T) on old 98Note.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
1999-10-31 08:24:18 +00:00
bp
c763e1b076 Add support for C++ in the headers. Some style cleanup.
Pointed by:	bde
1999-10-31 03:39:03 +00:00
ken
b57c214bcc Fix Bus Device Resets from userland, and specifically from camcontrol.
camcontrol was setup to use the old scheme of going through the xpt(4)
device, which never worked properly (and has been disabled for a while).

camcontrol now sends BDRs through the pass(4) device, and XPT_RESET_DEV
CCBs are put on the device queue in the transport layer, as they should be.

Submitted by:	luoqi
Reviewed by:	ken
1999-10-31 02:39:44 +00:00
mpp
c71a76fec4 Fix some spelling errors. 1999-10-30 20:30:19 +00:00
mjacob
be6c08329b Organize things to cope with the (possible) lack of downloadable
firmware a bit better.
1999-10-30 19:35:11 +00:00
mjacob
55f0eea5b6 Remove firmware from tree until a better copyright from Qlogic is forthcoming. 1999-10-30 19:33:45 +00:00
mjacob
63c5b1f786 Use pointer to f/w in md structure as to whether f/w exists or not.
If firmware length isn't specified, extract from the 4th short into
the firmware.
1999-10-30 19:32:44 +00:00