gwr
51815fdcd6
Kill a mis-matched and unnecessary declaration.
1996-02-28 01:48:48 +00:00
cgd
2e86958f9b
make PCI bus match/attach and sub-device attachment machine-independent,
...
add definition of 'ppb' (PCI-PCI bridge) device.
1996-02-28 01:47:06 +00:00
cgd
47e551efff
Preliminary support for PCI-PCI bridges. Recognize a PCI-PCI bridge
...
and attach the secondary pci bus as a 'pci' device. Note that this support
is incomplete and will not yet work for ports other than that i386. (The
i386 can rely on the PCI interrupt 'line' information to determine
interrupt mapping, which is not necessarily possible on other systems.)
1996-02-28 01:46:32 +00:00
cgd
f1f9317dfb
make PCI bus match/attach and sub-device attachment machine-independent.
1996-02-28 01:44:41 +00:00
gwr
92d99153a3
Kill two mis-matched and unnecessary declarations.
1996-02-28 01:44:17 +00:00
cgd
3ca5707161
make ISA bus match/attach, and sub-device configuration machine-independent.
1996-02-28 01:43:45 +00:00
cgd
927a47d0d3
add isabus and pcibus attributes, for attachment of isa and pci busses
1996-02-28 01:42:42 +00:00
gwr
b1305e88db
dir => dirent
1996-02-28 01:41:25 +00:00
thorpej
ee8a2c002f
Copyright assigned to The NetBSD Foundation.
1996-02-28 01:01:17 +00:00
jtc
bfbc5fb90c
Copyright assigned to the NetBSD Foundation
1996-02-27 22:39:39 +00:00
cgd
311a14c618
add a comment (XXX) about eisa's attachment.
1996-02-27 22:39:28 +00:00
jonathan
467a64a327
Replace tc.c and ds-tc-conf.c with a re-written tc_subr.c. tc_subr.c
...
works with the revamped machine-independent TC code in sys/dev/tc.
A name change is necessary to avoid a name clash with sys/dev/tc/tc.c,
which also creates a tc.o.
1996-02-27 22:35:05 +00:00
jtc
8bd51c47b9
Copyright assigned to the NetBSD Foundation
1996-02-27 22:28:09 +00:00
jonathan
776c58e187
TurboChannel bus auto-configuration tables, and TurboChannel pre-autoconfig
...
probe functions for console framebuffers, rewritten to work with the
machine-independent TC support in sys/dev/tc.
1996-02-27 22:28:08 +00:00
scottr
f08c9ffa5a
make this compile again, since CONUNIT is no longer defined for us.
...
per Jason.
1996-02-27 22:11:44 +00:00
thorpej
edf9d66f32
First-cut support for P4 framebuffers. Currently supports P4 variants
...
of bwtwo, cgfour, cgsix, and cgeight. Includes support for attaching
the overlay plane of the cgfour and cgeight as a bwtwo instance (a'la
SunOS).
P4 register descriptions, cgfour driver, and cgeight driver partially
derived from OpenBSD.
This code may still need polishing.
1996-02-27 22:09:14 +00:00
cgd
4e07b4b16f
eisabus attribute moved to conf/files
1996-02-27 22:00:25 +00:00
cgd
cb8f484a57
tcbus attribute moved to conf/files
1996-02-27 22:00:04 +00:00
cgd
d45c3d85a4
Move eisabus, tcbus attributes here. Attributes that "machine-independent"
...
bus support want to attach to should be declared in conf/files, so that
hairy ordering constraints on the inclusions of busses' "files" files
in files.{MACHINE} are avoided. isabus, pcibus attributes will go here later.
The problem is, for instance, that there are some devices in files.isa
currently which require that 'pci' be defined, but there are some PCI
devices (e.g. 'sio' on the Alpha) that provide isabus interfaces, i.e.
'isa' busses attach to them. Unless the the bus-attachment attributes
are here, it's impossible to declare the busses' files and attribute
dependencies in a machine-independent way.
1996-02-27 21:59:14 +00:00
cgd
a21351b381
use config_found_sm(), rather than config_search+config_attach()+glue, to
...
attach subdevices.
1996-02-27 21:48:52 +00:00
cgd
c6a9e56518
Replace config_found() with config_found_sm(), which adds a cfmatch_t to the
...
argument list. This allows easy 'submatching', which will eliminate a fair
bit of slightly tricky duplicated code from various busses. config_found()
is now a #define in sys/device.h, which invokes config_found_sm().
1996-02-27 21:45:46 +00:00
gwr
5688147b3a
Eliminate dependency on /usr/include/*
1996-02-27 20:54:43 +00:00
pk
fe5a56ec9d
Be sure to malloc() in page-sized units.
1996-02-27 13:17:01 +00:00
pk
70eee90be3
remove a printf
1996-02-27 09:10:24 +00:00
mycroft
5cdb5e8ebe
Map SIOCGIFFLAGS and SIOCGIFADDR (et al).
1996-02-27 08:18:16 +00:00
mycroft
9fa7b98204
Emulate OSIOCGIFADDR, et al, if COMPAT_LINUX is defined.
1996-02-27 08:17:08 +00:00
mycroft
a252a2e3b8
Handle OSIOCGIFCONF if COMPAT_LINUX is defined.
1996-02-27 07:28:38 +00:00
mycroft
48ec0383a3
Use OSIOCGIFCONF in previous.
1996-02-27 07:25:34 +00:00
cgd
3f2d99e7a2
fix first args in tcprint() invocations. Fix for this (and several previous
...
commits) from Jonathan. This is why one (I) shouldn't commit code w/o
having any sane way to test it.
1996-02-27 07:07:26 +00:00
mycroft
4b2741c436
Map SIOCGIFCONF.
1996-02-27 05:51:05 +00:00
jonathan
e7ef034c05
Add NTP kernel precision timekeeping from Dave Mill's xntp distribution
...
and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than
xntp 3.4y or 3.5a, but contains newer kernel source fragments.
This commit adds support for a new kernel configuration option, NTP.
If NTP is selected, then the system clock should be run at "HZ", which
must be defined at compile time to be one value from:
60, 64, 100, 128, 256, 512, 1024.
Powers of 2 are ideal; 60 and 100 are supported but are marginally less
accurate.
If NTP is not configured, there should be no change in behavior relative
to pre-NTP kernels.
These changes have been tested extensively with xntpd 3.4y on a decstation;
almost identical kernel mods work on an i386. No pulse-per-second (PPS)
line discipline support is included, due to unavailability of hardware
to test it.
With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp
3.5a user-level code need minor changes. xntp's prototype for
syscall() is correct for FreeBSD, but not for NetBSD.
1996-02-27 04:20:30 +00:00
jonathan
7c6f017cab
Import sys/timex.h from xntp 3.5a: NTP precision timekeeping definitions.
1996-02-27 03:55:49 +00:00
briggs
92c6f5f0ee
Get rid of some unneeded constants.
1996-02-27 03:29:16 +00:00
briggs
6ec37fa3df
Use IOBase instead of INTIOBASE.
1996-02-27 03:25:47 +00:00
briggs
db2f33c640
Clean out some unneeded constants.
1996-02-27 03:23:42 +00:00
cgd
8c79f5dd54
one more minor oops; print our name, not parent's, when doing unconfigured dev
1996-02-27 03:22:44 +00:00
cgd
09c7841a66
fix bug in previous commits. also, do submatch checking for all devices,
...
not just option slot devices.
1996-02-27 03:19:43 +00:00
briggs
1dcd5f9d15
For a bus error in nofault, if it's an 040, load the address from the
...
correct frame offset. This is required for the 5380 driver to work
properly.
1996-02-27 03:17:00 +00:00
cgd
ecc22fbecd
use #defines for bus speed constants, print speed on attach
1996-02-27 01:37:32 +00:00
cgd
3c43b4317d
alphabetize device list
1996-02-27 01:31:33 +00:00
pk
9216cf3276
Drain rev 1 chips in dma_reset().
1996-02-27 00:36:11 +00:00
pk
2c646f8da5
`bwtworeg' is just about the same as the generic `fbcontrol'.
1996-02-27 00:32:34 +00:00
cgd
7f4f1d2406
be consistent when talking about eisa_attach_args
1996-02-27 00:31:30 +00:00
cgd
4bd7608739
Better EISA autoconfiguration, per PR 1959.
1996-02-27 00:20:54 +00:00
cgd
e4a3b7650e
oops; remove extraneous #if/#endif pair
1996-02-27 00:15:23 +00:00
pk
6b5eb65b21
bt_reg => fbcontrol.
1996-02-27 00:14:17 +00:00
cgd
570976f77c
change previously-useless config_rootfound() for the EISA bus so that
...
it provides what the new MI EISA code expects.
1996-02-27 00:13:45 +00:00
pk
8628f94179
Use `video enable' bit in framebuffer control.
1996-02-27 00:11:14 +00:00
pk
2fe54615fb
Define a couple more framebuffer control bits.
1996-02-27 00:09:23 +00:00
cgd
188cda224f
Trim some comments relating to EISA configuration that are no longer relevant.
1996-02-27 00:08:29 +00:00
cgd
440b3cbc94
update for new EISA autoconfiguration: there can now be an eisa0 at root,
...
and ahb attaches to eisa, not isa. Also, ahb* at eisa?... is now supported,
so you can get all ahb's configured easily.
1996-02-27 00:06:42 +00:00
cgd
897baa5642
machine-generated files
1996-02-26 23:47:18 +00:00
cgd
9b53b5770d
list of all EISA devices that we know about (for smarter 'unconfigured'
...
printing if 'options EISAVERBOSE'), and files to turn the list into c source.
From my PR (1959).
1996-02-26 23:46:17 +00:00
thorpej
0adab4d779
Avoid accidentally lowering a devices console priority.
1996-02-26 23:40:29 +00:00
cgd
c0251e2a9d
(1) rename some structures & structure members, for consistency with
...
planned changes in other sections of code.
(2) expands the use of config_found() in tcattach() in-line, so that
tcsubmatch can be invoked there, rather than being invoked by
individual drivers.
(3) tcbus_attach_args now includes a turbochannel speed flag.
(4) compare a string in tcbus_attach_args against tc bus driver name,
to better allow attachment of multiple busses to the same parent.
1996-02-26 23:38:38 +00:00
jonathan
ff27dbbcf9
Revert pmax stdarg.h and varargs.h to versions from 1995-11-13. Those
...
versions work correctly; at some point between then and the immediately
preceding revisions, the "stylistic" changes to one (or both) stdarg.h
and varargs.h broke passing doubles to printf().
1996-02-26 23:29:05 +00:00
mrg
32cdb91fa3
two more local addr changes, all done differently now (idea from charles)
1996-02-26 23:16:42 +00:00
gwr
056810ed99
Make this code independent of <sys/nfs> now that we use very little
...
from there anyway, so we can ignore changes in the NFS code...
1996-02-26 23:05:14 +00:00
scottr
4005c5fd09
Fix typo (PR 2123, from Michael VanLoon)
1996-02-26 22:48:32 +00:00
thorpej
cf93780656
Adjust for the new console code; CONSCODE is now a kernel option, not
...
a dca-specific constant. For now, hardwire standalone DCA console
at select code 9 (which is what the old constant expanded to). Really
should make the way the bootblock console is probed look just like how
the kernel console is probed.
1996-02-26 21:51:25 +00:00
scottr
6a0803ca9a
Make these build again in the wake of the v3 changes
1996-02-26 21:50:07 +00:00
scottr
c24557134f
Needed for NFS booting; we aren't likely to use v3 here any time soon.
1996-02-26 21:49:34 +00:00
pk
517988b940
Interims:
...
Comment out `STATINT' checking; this is apparently unreliable on some
ESP revisions.
Deal with target initiated synch re-negotiation.
1996-02-26 14:48:30 +00:00
mrg
86b9b4d6be
if we are connecting *to* an address of any local interface, default the
...
local address of the socket to the same address.
1996-02-26 08:25:47 +00:00
mycroft
2ce52ae489
Define build programs with `?=', so they can be overridden with `makeoptions'.
1996-02-26 02:53:20 +00:00
cgd
5a1e1bb682
don't need isa/isareg.h or pci/pci{reg,var}.h.
1996-02-25 22:56:30 +00:00
pk
a3ab0e81da
Use CPU-type macros.
1996-02-25 22:03:20 +00:00
pk
3d182fe265
Use CPU-type macros
1996-02-25 21:53:49 +00:00
pk
ba0eb7ea59
Use CPU-type macros.
1996-02-25 21:45:53 +00:00
fvdl
3821dd940b
Oops. Do previous fix on the right line this time.. (thanks Charles)
1996-02-25 17:47:26 +00:00
fvdl
1f20fc9fc2
Call soreserve() with the right size for receives (from pk).
1996-02-25 15:30:01 +00:00
pk
95d7594df0
If NFS `rsize' is specified, set `readdirsize' too.
1996-02-25 13:27:01 +00:00
ragge
1376f92db9
Add routine to convert phys device number to kernel unit number.
...
Allow to set disklabel area writable.
1996-02-24 21:22:54 +00:00
ragge
f2aaea55c2
Make setroot() grok where we boot from even if it is hp disks.
1996-02-24 21:20:01 +00:00
cgd
6be793f659
use mono_time, rather than time, to keep track of timeouts. time can change
...
unpredictably.
1996-02-24 21:09:38 +00:00
chopps
6ab6c3037d
remove floating point expressions. gen_cvtab.c generates a conversion
...
table to replace a specific floating point expression in grf_cv.c
1996-02-24 20:13:00 +00:00
ragge
df5a5e9485
Remove __FORK_BRAINDAMAGE, and the reason to why it was there.
1996-02-24 15:17:35 +00:00
briggs
6969bbbc1c
Add ns_cksum.c.
1996-02-24 12:59:47 +00:00
chopps
830ceda65d
remove generic scsi stuff and use ../../../scsi/files.scsi
1996-02-24 08:59:21 +00:00
chopps
c6768054a9
cleanup, add (commented-out) serial buffer and lev6_defer options
1996-02-24 08:58:37 +00:00
chopps
1bf748f356
use newly allocated ethernet address ( fixes #2117 )
1996-02-24 07:47:36 +00:00
chopps
d1d39c63d4
remove local strncmp ( fixes #2115 )
1996-02-24 07:44:06 +00:00
chopps
d22df43756
cast to arg to caddr_t ( fixes #2114 )
1996-02-24 07:43:14 +00:00
mycroft
40d57df71a
Switch byte order of ID and configuration registers for 14f and 34f.
1996-02-24 05:27:49 +00:00
thorpej
fa7bee29a5
Completely rework how the console is probed. Console probing no longer
...
requires pre-autoconfigured devices. Fix up some prototypes. Part of the
long journey towards new config. (GETTING THERE!)
1996-02-24 00:54:53 +00:00
mark
c1b23518d2
ARM FPE is now secure i.e. user processes cannot use FP instructions
...
to access kernel memory.
1996-02-23 22:20:43 +00:00
mark
a01675725c
Added #ifdef FPE guard.
1996-02-23 18:50:56 +00:00
ragge
2294cbd022
Fixed bug causing DMA to user stack from Massbus disks to give segfaults.
1996-02-23 17:54:33 +00:00
ragge
2aa22f8fbf
Allow rewriting of disk label after newfs.
1996-02-23 17:29:01 +00:00
thorpej
1a5d5e25c6
Add an "sw_options" patchable global so that folks can still live life
...
on the edge (of sw DMA uncertainty) with pre-built kernels.
1996-02-23 16:29:34 +00:00
briggs
568f862aeb
PR 2111: Do not update system clock until we can keep more accurate time.
1996-02-23 12:40:37 +00:00
thorpej
ef3500b579
Attempt to work around a hardware bug that screws up DMA on the 4/100.
...
Apparently, some early 4/100 DMA controllers do illegal memory access on
large ( >= NBPG ) transfers at the end of the transfer. This appears
as SI_CSR_DMA_BUS_ERR in the csr. To work around this, we simply
transfer the (up to 3) missing bytes from the bpr. We were doing this
anyway, so the work-around is to ignore the bus error.
BUT! I goofed when I implemented the "left-over byte" code for the sw!
It *should* be correct now. Keep metrics (acceeible via DDB) on the number
of 1, 2, and 3 byte clean-ups, as well as the number of "clean" transfers,
just so we can get a clearer picture.
Thanks to Andrew Gillham <gillham@whirlpool.com> for noticing this!
1996-02-23 07:24:45 +00:00
scottr
738faf922f
Add ^^ and ^_ codes to default keyboard layout
1996-02-23 05:43:48 +00:00
mycroft
ad355be572
Add a SDEV_AUTOSAVE quirk for the DEC RZ55.
1996-02-22 23:37:27 +00:00
gwr
946696f064
Add m68k/db_memrw.c
1996-02-22 23:35:07 +00:00
mycroft
291267e40c
Implement SDEV_AUTOSAVE.
1996-02-22 23:35:04 +00:00
mark
905de8df55
Remove prototype for strcmp() as this is in libkern.h
1996-02-22 23:31:51 +00:00
mark
c3833aaabe
Opps, what was a delay() prototype doing here.
1996-02-22 23:25:10 +00:00
gwr
19d5694f93
Remove the hack that faked up an "ssp" value. It is now up to
...
locore.s to put the right sp in the frame. Also move memory
access code into db_memrw.c so it can be taken separately.
1996-02-22 23:23:23 +00:00
mark
88be357d42
Fixed declaration of a debugging variable.
1996-02-22 23:03:44 +00:00
mark
7b9c8753a7
Added #ifdef guards round the FPE initialisation calls.
1996-02-22 22:56:16 +00:00
mark
66198928f8
Fixed several function declarations.
1996-02-22 22:51:14 +00:00
mark
2c74bc8511
Removed some dead code and fixed several function declarations.
1996-02-22 22:48:05 +00:00
mark
f266edf8b8
Default to running an FPA at full speed. Updated delay() to take an
...
unsigned int.
1996-02-22 22:44:58 +00:00
mark
9a3e71626d
Fixed a little bug that zeroed the first couple of words of the symbol
...
table when the bss is zeroed.
1996-02-22 22:41:31 +00:00
mark
80684b67bc
Fixed registration of the symbol table.
1996-02-22 22:38:48 +00:00
mark
6a3087958a
Add #ifdef _LOCORE round delay() prototype and move DELAY macro
...
to param.h as well.
1996-02-22 22:21:55 +00:00
pk
2f3ad94f8d
An #ifndef _LOCORE to make this file safe to include in locore.s.
...
Introduce a couple of `CPU-type' helper macros to reduce the preprocessor
tangos in many a source file.
1996-02-22 21:59:08 +00:00
leo
db7d722c4b
A bit of reshuffling. Also some stricter prototyping.
1996-02-22 21:07:05 +00:00
scottr
f7dff866af
Remove VAX-specific register reference from comment (closes PR 1481)
1996-02-22 20:30:16 +00:00
mark
9777b1173f
Thought I had already removed this ... Junk file that got checked in
...
due to finger trouble.
1996-02-22 17:46:24 +00:00
pk
e259a02425
Correct some prototypes.
1996-02-22 15:04:07 +00:00
scottr
a7daa2d931
- Clean up DEBUG code.
...
- Setting the "monitor BSY" flag for polled PDMA is non-optimal. The
polled requests generate an interrupt that isn't serviced until the
command has been cleared from the queue.
1996-02-22 14:31:26 +00:00
jtk
a56b76451d
add M_AFS
1996-02-22 12:47:33 +00:00
leo
c9dfd5cb44
First bunch of changes due to stricter prototype checking.
1996-02-22 10:10:44 +00:00
thorpej
c86505a6a5
If we get a transfer with the SCSI_POLL flag set, don't use DVMA. We
...
only get these during autoconfiguration and during crash dumps. During
autoconfiguration, the transfers are small enough that DVMA won't be used
anyway. However, using DVMA during a crash dump can be dangerous,
depending on the nature of the panic, so we avoid it.
1996-02-22 07:25:05 +00:00
thorpej
2f132eb5e7
Bring in Gordon's fix from the sun3 port:
...
Correct the DMA transfer count when the target disconnects before
the whole transfer is completed. (Affects VME writes)
Reselect now works on the VME si board!
1996-02-22 07:14:53 +00:00
thorpej
a246f6c835
Fixup some RCS ids.
1996-02-22 06:50:49 +00:00
mycroft
3ec5928403
Keep the terminal count information around, as it's self-clearing.
1996-02-22 06:21:48 +00:00
scottr
5be12dbfc8
Move the speaker driver to 'new' config. (Closes PR 1361, from Rafal Boni)
1996-02-22 05:53:16 +00:00
gwr
012b23ca17
fix a trace message
1996-02-22 04:06:03 +00:00
gwr
3700dbe324
Correct the DMA transfer count when the target disconnects before
...
the whole transfer is completed. (Affects VME writes)
Reselect now works on the VME si board!
1996-02-22 03:22:52 +00:00
gwr
a19a024e59
Do not mark target/LUN busy until we commit to working with it,
...
after the check for reselections. (From Matthias Pfaller, PR 2105)
Also improve the selection code WRT concurrent reselection.
1996-02-22 03:10:47 +00:00
scottr
89179744bd
Use unsigned variables to calibrate delay_factor.
1996-02-22 02:04:14 +00:00
christos
17de1d7eae
Close PR/2105: if.c does not compile without COMPAT_43 due to missing casts.
1996-02-21 14:28:33 +00:00
pk
66fedbbe19
Correct format in a printf().
1996-02-21 10:21:14 +00:00
chuck
f63dd5fef2
sync with sparc version:
...
minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c
1996-02-21 03:40:39 +00:00
chuck
adeed1d823
minor clean up: revise locations of disk_busy/disk_unbusy calls to match xd.c
1996-02-21 03:36:51 +00:00
cgd
c9a23604b9
fourth argument to kern_sysctl() must be a size_t *. simply passing a pointer
...
to SCARG(uap, len) won't do, because that'd be an int *. copy the value
into a size_t, and pass pointer to that.
1996-02-21 00:10:59 +00:00
cgd
9c95634273
in mfs_print: mfs_baseoff is a pointer, should be printed as %p, and
...
should NOT be cast to unsigned int.
1996-02-21 00:06:45 +00:00
cgd
c0cdc0cf04
when printing data modified on the free list:
...
(1) do not cast it to (void *), and
(2) print it as 0x%x, rather than %p.
This is not perfect (because the data being printed is "int32_t"-sized), but
is more correct than printing it as a pointer because the data is _not_ a
pointer, it is data to be printed in hex, and on some systems, pointers are
wider than the data items being printed, which leads to excess and misleading
output. The only 'right' solution to this is to have a printf specifier
that prints the fixed-sized types the right way, and that's not really
practical.
1996-02-20 23:56:16 +00:00
cgd
e98dc62664
Third argument to VOP_PATHCONF is a register_t *, and register_t may be
...
different than 'int'. Do the right thing when declaring variables which
are used this way.
1996-02-20 23:45:10 +00:00
gwr
9daf57454e
use phys_map for DVMA like the sparc
1996-02-20 22:05:32 +00:00
gwr
dfdd60a3d1
keep static symbols
1996-02-20 22:03:56 +00:00
gwr
b80de84521
kill SCSIDEBUG
1996-02-20 22:03:20 +00:00
mycroft
a35f0ac985
Add more debugging code.
1996-02-20 12:13:09 +00:00
mycroft
947cae817e
Do not allow the gain to be changed on an original SoundBlaster.
1996-02-20 11:48:50 +00:00
mycroft
d1b5c90fd6
Check for errors while changing gain.
1996-02-20 11:47:22 +00:00
mycroft
015ee926f6
Fix mono volume adjustment.
1996-02-20 11:15:15 +00:00
mycroft
5f732f379e
Trivial (and probably not very good) implementation of SIGIO.
1996-02-20 10:00:31 +00:00
mycroft
b5f3c5cbdc
XXX This is a kluge.
...
Check to see if the DMA transfer is finished; if not, don't do interrupt
processing.
1996-02-20 04:19:24 +00:00
mycroft
4d6412e7bf
Move the terminal count check into a separate function.
1996-02-20 04:17:05 +00:00
gwr
e3e5c394ae
Oh. Now that size is unsigned, (size >= 0) is always true.
1996-02-20 02:42:55 +00:00
scottr
5fd93a11ca
Clear interrupt before enabling in calibrate_delay() (from John P. Wittkoski)
1996-02-19 21:40:48 +00:00
christos
bd06e49fd9
Remove ns_cksum.c; I'll send mail to portmasters about it.
1996-02-19 21:29:44 +00:00
christos
cd5249589d
if_ep.c: Recognize 3c595
1996-02-19 20:18:40 +00:00
christos
c456eaedc6
pcidevs was changed.
1996-02-19 20:09:24 +00:00
christos
b6e5342075
Add 3c595 id
1996-02-19 20:08:25 +00:00
scottr
98a0e7986a
Bitfields are usually implemented in natural bit order. Pointed
...
out by Masaru Oki <oki@yk.rim.or.jp>
1996-02-19 18:29:04 +00:00
pk
9bfd34f41e
Adapt to NFSv3.
1996-02-19 15:41:38 +00:00
mycroft
5021ab87f1
Update copyright notice.
1996-02-19 15:23:25 +00:00
mycroft
5bc567b0d3
Set IER_ETXRDY before outputting any bytes, to prevent race condition.
1996-02-19 15:09:25 +00:00
mycroft
c011a5eae4
Handle break more correctly.
...
Make IER_ETXRDY track TS_BUSY. (Prevents a loop in comintr() if no output
is available.)
Add a bunch of debugging code.
1996-02-19 14:53:03 +00:00
pk
b9de283ae6
Fix typo; pointed out by jtk.
1996-02-19 10:30:09 +00:00
pk
9b46365465
Adapt to changed kernel data structures (PR#2100).
1996-02-19 09:46:32 +00:00
leo
dc321cad51
New disklabel handling code (Waldi Ravens).
...
These are the final (?) modifications to the layout of the NetBSD/Atari
bootblock. The bootblock handling can be made backwards compatible using
the right config options (COMPAT_11 + DISKLABEL_AHDI).
1996-02-19 09:05:31 +00:00
scottr
8fe7b2bbb7
Be a bit more careful when setting up the timer for calibrating delay().
1996-02-19 05:20:54 +00:00
gwr
ce56580f30
Attach should get unit from _dev.dv_unit not sc_unit
1996-02-19 04:36:13 +00:00
gwr
e9d6e59c62
Fix two bugs found by Bill Studenmund:
...
Driver can not use tp->t_sc for its own purposes
Attach should take the unit number from _dev.dv_unit
1996-02-19 04:34:01 +00:00
briggs
ab3f741911
Update to latest Atari driver, but with some local modifications.
1996-02-19 02:51:03 +00:00
thorpej
a9012450ec
Fix bug in bwtwounblank() ... didn't have code to enable video on sun4/200
...
obio framebuffer. Noticed when my 4/260 dropped into DDB and the screen
didn't unblank. Pull all of the video enable/disable into functions so
this mishap doesn't happen again.
1996-02-19 00:15:46 +00:00
mycroft
91e913b297
Handle EOF a little differently.
1996-02-19 00:06:07 +00:00
mycroft
c5326f656e
Change variable name to avoid GCC warning.
1996-02-18 23:21:48 +00:00
mycroft
2b9c3e10b9
Add SCSI scanner device.
1996-02-18 22:57:54 +00:00
mycroft
8d110517c8
We no longer need the old hack for allocating the u-area on the i386.
1996-02-18 22:53:43 +00:00
mycroft
f9596bfc43
Use the same timing hacks as in pccons for the keyboard.
1996-02-18 22:49:12 +00:00
mycroft
0e335a2150
Move the DDB initialization later.
1996-02-18 22:44:27 +00:00
mycroft
760b34026c
Declare a variable...
1996-02-18 22:19:44 +00:00
mycroft
ba2ac1b587
Clean this up a bit.
1996-02-18 22:17:37 +00:00
mycroft
2dfda50bb9
Minor tweak; make sure window size is 0 on close.
1996-02-18 20:44:40 +00:00
mycroft
8f0f40e8b3
Missed some prototyping foo.
1996-02-18 20:41:18 +00:00
mycroft
342c383728
Truncate to the window size in ssminphys(), not ssread().
1996-02-18 20:38:44 +00:00
mycroft
294879d4ee
Add SCSI scanner support by Kenneth Stailey and Joachim Koenig-Baltes,
...
hacked a bit. Needs more work.
1996-02-18 20:32:40 +00:00
mycroft
23726708b0
Minor change.
1996-02-18 20:30:53 +00:00
christos
b2cc81b8fe
Fix PR/2095 options MROUTING did not compile.
1996-02-18 18:58:32 +00:00
jtk
47286969ae
Add bass/treble input filter adjustment controls to SB (Pro) driver
1996-02-18 16:36:44 +00:00
pk
a5ea7547d2
Correct timetochip() prototype.
...
Cleanup microtime() a bit.
1996-02-18 15:38:41 +00:00
pk
9e2cbae0ea
Adapt compat NFS mount code to NFSv3.
1996-02-18 14:46:25 +00:00
fvdl
e9788cf246
Fix a missing 'error =' before 'if (error)'.
1996-02-18 14:06:50 +00:00
mycroft
d1bae2700f
Add the obligatory copyright notice.
1996-02-18 13:01:05 +00:00
fvdl
56a654e17f
Changes for NVSv3 code: pull in more NFS include files into kern_time.c
...
to get types right (overkill for just one function call, but oh well).
Clear B_NEEDCOMMIT in bdwrite().
1996-02-18 11:57:06 +00:00
fvdl
8514e928bd
Changes for NFSv3 merge: change NFS mount arguments and add B_NEEDCOMMIT
1996-02-18 11:55:45 +00:00
fvdl
5ac7df1caf
Bring in a merge of Rick Macklem's NFSv3 code from Lite2
1996-02-18 11:53:36 +00:00
mycroft
e5730c4a73
Fix a race condition where we might stop outputting if a write follows a
...
flush too closely.
1996-02-18 09:10:15 +00:00
christos
6c52b1a5eb
Fixed bug I introduced in the previous changes. In the ctlinput functions,
...
I used the void * arg, instead of the sockaddr argument...
1996-02-18 05:42:59 +00:00
jtk
e8aa4c9806
fix stray MOUNT_UFS -> MOUNT_FFS
1996-02-17 23:08:36 +00:00
briggs
2efbb04ae0
Make delay() match prototype.
1996-02-17 19:23:03 +00:00
ragge
aeaef139aa
Console TU58 device driver for 11/750 added.
...
It cannot write tapes yes, but reading works OK.
1996-02-17 18:48:53 +00:00
ragge
90b84d2da5
Add standalone driver for TU58 (DECtape II). Now initial installation
...
from TU58 on 11/750 is possible.
Change types on pte pointers, due to the change of pte's from
int to struct pte.
1996-02-17 18:23:18 +00:00
ragge
5025b0f9c9
Definition file for RSP (Radial Serial Protocol) used by DECtape II.
1996-02-17 18:14:50 +00:00
jtk
45eee6c55b
remove #ifdef notdef made unnecessary by previous changes (PR#1597)
...
put in missing "if (error)" that caused tape IO to always fail.
(closes PR#2086)
1996-02-17 16:00:22 +00:00
briggs
f851e3e8b3
Move spl stuff from param.h to psl.h. Prototype delay() in param.h.
1996-02-17 14:50:40 +00:00
pk
08fa33d37f
struct ifaliasreq: adapt nomenclature to protocol specific counterparts, ie.
...
swap `ifra_broadaddr' and `ifra_dstaddr'.
1996-02-17 12:32:50 +00:00
pk
1a62c0b31b
delay() takes an unsigned int; get the code to match.
1996-02-17 09:47:48 +00:00
mycroft
203f5d5329
Add some text describing the UART lossage worked around in the previous.
1996-02-17 04:51:41 +00:00
jtk
03f1e1432a
fix compile error from gusprobe() cleanup
1996-02-17 04:49:50 +00:00
mycroft
121f6570d7
Drain the transmitter FIFO before changing the baud rate or FIFO depth
...
registers. Fixes PR 2046.
Also, if COMCONSOLE is defined, expect CONSPEED to be the baud rate.
1996-02-17 04:04:28 +00:00
jtk
28feffd508
avoid panic'ing when driver gets confused--just spit out a message and
...
keep going.
Improve error messages to include device name.
use STATIC for function declarations/definitions so it's easier to get a
useful symbol table by flipping a switch.
1996-02-17 03:35:22 +00:00
jtk
4f3fc10939
Fix PR#2060 (add AUDIO_PERROR ioctl to query # of playback drops), also
...
fix semantics of AUDIO_WERROR (now returns a count).
Also repair audio driver back to "real-time mode" where user must
provide data quickly enough for real time audio or silence is played
until user catches up. Add optional "play all" mode (additional bit in
mode field) to play all samples provided, with silence when needed to
avoid buffer underrun.
1996-02-17 02:28:56 +00:00
pk
1caa80a432
Bring prototypes into scope.
...
Fix a few bogus `return's.
1996-02-17 00:03:17 +00:00
gwr
b3547c4296
New handlers for kernel trace and breakpoint traps. These allow
...
the kernel debugger (ddb or kgdb) to play with the stack pointer.
1996-02-16 23:36:52 +00:00
gwr
7dff812d6e
prototype fixes
1996-02-16 23:32:00 +00:00
mark
bfad88d38d
Added prototype declaration of delay().
1996-02-16 23:29:45 +00:00
pk
f1518de67c
delay() prototype.
1996-02-16 22:13:34 +00:00
pk
cdb37b19d3
Account for the fact that `clockreg' might not be page-aligned.
...
Misc prototype goo.
1996-02-16 22:12:13 +00:00
gwr
c59b002704
Sync. with sparc version, and fix some cosmetic nits...
1996-02-16 20:36:11 +00:00
gwr
9433112204
Have <sys/param.h> so no need for <sys/types.h>
1996-02-16 20:33:27 +00:00
gwr
1c0f939eba
Fix comment
1996-02-16 20:18:51 +00:00
gwr
b49f01b2ce
Fix comments
1996-02-16 20:17:58 +00:00
gwr
7b4335f9db
Moved functions for debugger memory access to db_memrw.c
...
so they can be pulled in for either ddb and/or kgdb.
1996-02-16 20:08:44 +00:00
gwr
5cb4cacff1
Add some things needed by KGDB
1996-02-16 20:04:36 +00:00
gwr
49b1d84e94
Resurrecting db_memrw.c to hold some code shared by ddb and kgdb.
1996-02-16 19:11:27 +00:00
gwr
5404ccfbd7
Improved delay() implementation with lower overhead,
...
makes very short delays much more accurate.
1996-02-16 18:06:11 +00:00
gwr
bcfac202c8
No longer need delay2us(), just use delay(2)
1996-02-16 18:00:33 +00:00
gwr
510218d471
Make delay() prototype into a comment.
1996-02-16 17:25:46 +00:00
gwr
04ff35d122
Add stub for nfs_boot_getfh if NETHER==0
1996-02-16 15:18:19 +00:00
mycroft
7847c9efee
Various:
...
* Snap the sample rate when setting it, and remember only the time constant.
* Set the time constant when changing between play/record.
* Always return the actual sample rate with AUDIO_GETINFO.
1996-02-16 10:10:21 +00:00
mycroft
19f59bf3c2
Prototype the probe and attach functions.
1996-02-16 08:18:32 +00:00
mycroft
9cbadb3ec2
Remove incorrect comment. From Mike Long, PR 1277.
1996-02-16 08:12:33 +00:00
mycroft
7af4edd731
Various, including:
...
* Add more delays while writing registers.
* Replace sc_dma{in,out}_inprogress with sc_dmadir.
* Eliminate the need for sc_locked.
* Add more DPRINTF()s.
1996-02-16 08:07:40 +00:00
mycroft
8ba7909bb4
Eliminate sc_silence, and handle output interrupts somewhat differently.
...
From John Kohl, slightly edited.
1996-02-16 02:25:43 +00:00
christos
7e24291099
Protect include in lfs_cksum.c so that it can be used by userland programs.
1996-02-16 02:22:05 +00:00
mark
f741f471f6
Added new routine for polling the keyboard.
1996-02-15 23:24:44 +00:00
mark
7e883ebf5b
Fixed kernel panic when the debugger called cngetc().
1996-02-15 22:54:45 +00:00
mark
23d71d4d59
Fixed undefined instruction handler chaining. The FPE will now correctly
...
pass on an undefined instruction if it was not an FP instruction.
1996-02-15 22:45:21 +00:00
mark
ab9201ff05
Replacement for armfpe.c. This is much nicer.
1996-02-15 22:44:31 +00:00
mark
1f4ced2016
armfpe.c was messy. Removing it in and replacing its function with
...
armfpe.s
1996-02-15 22:42:17 +00:00
mark
b5acab13ca
Added files for machine specific debugger code
...
armfpe.c replaced with armfpe.s
1996-02-15 22:40:08 +00:00
mark
6f2a81d3e1
Initial commit of the machine dependant in-kernel debugger code.
1996-02-15 22:37:13 +00:00
mark
63b7c56cb6
Added setjmp and longjmp routines for the debugger.
1996-02-15 22:15:21 +00:00
mark
b5a6e0bbf9
Added initialisation hooks for DDB.
1996-02-15 22:07:11 +00:00
mark
443bbc1025
Fixed disassembly of LDR & STR instructions, shifts by a register are
...
not allowed and count as undefined instructions.
1996-02-15 22:05:20 +00:00
mark
f69e31fcc1
Initial commit of the machine specific header for the in-kernel
...
debugger.
1996-02-15 21:54:30 +00:00
mark
f134e05316
Fixed performance problems caused by the ring buffer becoming flodded when
...
multiple packets were being received due to not flushing newly received
packets from the ring buffer between receiving an interupt and pulling
in the packets.
1996-02-15 21:48:59 +00:00
mark
5ef42fccf7
Removed debug printing from lpt interrupt routine.
1996-02-15 21:33:52 +00:00
phil
a3a96d6af3
Another tweek to support libcompat.
1996-02-15 20:19:48 +00:00
jonathan
ab3b20faba
Remove the compile-time conditionalization for either CFB or SFB,
...
based on "#ifdef MELLON": examine the framebuffer dimensions in the
fb softc, and initialize the x-axis offset appropriately.
User-level changes to (e.g.) an Xserver are still needed to work
on an SFB.
1996-02-15 19:18:22 +00:00
jonathan
d25690e30a
Propagate changes from cfb driver to not require "needs-count" to other
...
pmax framebuffer drivers.
1996-02-15 19:13:08 +00:00
phil
2afc843cce
change _insque and _remque to match the prototypes in sys/systm.h.
1996-02-15 08:39:27 +00:00
phil
5e7b18feac
Catch up with changes in the libkern and libcompat get $S ...
...
Comment out ns_cksum.c.
1996-02-15 08:37:56 +00:00
christos
fce99a5188
Add disk related prototypes.
1996-02-14 21:49:49 +00:00
christos
0bc63f486d
scsi prototypes
1996-02-14 21:46:52 +00:00
christos
1c2a80cfe3
add another missing prototype with TPCONS is not defined.
1996-02-14 21:32:37 +00:00
gwr
64a13b9a7b
Remove ns_cksum.c (now in sys/conf/files)
1996-02-14 15:59:57 +00:00
briggs
946dc72362
Get d_npartitions right.
1996-02-14 14:20:54 +00:00
leo
7992289e54
Fix unterminated comment.
1996-02-14 08:10:51 +00:00
leo
2708c1593e
Oops, should have been updated in conjunction with ncr5380.c .
1996-02-14 08:09:47 +00:00
briggs
ef9b75f679
HZ used to be in Makefile.mac68k... It is 60 on the mac, not 100.
1996-02-14 04:26:38 +00:00
thorpej
94ca9f6aa0
New interrupt handling code. Highlights:
...
- Interrupt service routines now take a pointer to
the device's softc, rather than a unit number.
- Interrupt handling code in locore.s condensed. Only
remaining "special" handlers are lev0 (spurious),
lev1 (HIL; don't ask), lev6 (clock), and lev7 (NMI).
Only remaining hard-coded device driver reference in
locore is HIL. (clock doesn't count...)
- "dcafastservice" eliminated. DCA driver has new mechanism
to guarantee prompt interrupt service at any ipl (not
just level 5).
- Interrupt code pulled out of autoconf.c and machdep.c and
placed in new file, isr.c
1996-02-14 02:56:38 +00:00
thorpej
d6f4511690
All interrupt routines (except the HIL; don't ask) now take a pointer
...
to a softc, rather than a unit number. Add a "dq_softc" member
to struct devqueue; this is a temporary measure until the
dma/controller/device callback spaghetti is untangled.
YAY! No more need for dcafastservice!
HIL: squish instances of "(void) splhil()" and "(void) spl0();".
1996-02-14 02:43:54 +00:00
thorpej
c88b047836
Compile the new interrupt handling code.
1996-02-14 02:33:25 +00:00
pk
da1402dcb7
Eliminate <setjmp.h>.
1996-02-14 01:03:17 +00:00
pk
fe9d17199a
If `cold' simply halt the machine in boot(). Note, this still leaves a window
...
where vfs_shutdown() and sync() can be called prematurely.
1996-02-13 23:59:02 +00:00
christos
1cb0b13391
Add declaration of strncasecmp.
1996-02-13 23:48:26 +00:00
christos
14d9cd33af
netinet prototypes
1996-02-13 23:40:59 +00:00
mark
6de3d0fb2e
Replaced missing $ on one of the mkdep lines.
1996-02-13 23:29:14 +00:00
pk
54bd5c6954
Fix ANSI prototype goof (from Openbsd).
...
Add explicit return type to most functions.
V3 PROM console support.
1996-02-13 22:49:48 +00:00
pk
773f74b60d
Change some caddr_t's to void *'s.
1996-02-13 22:43:33 +00:00
pk
58cd67c20d
Make sure we assign a value to variables we use.
...
Don't express size of NVRAM in terms of machine page size.
1996-02-13 22:38:25 +00:00
christos
f0684ee41d
netns prototypes
1996-02-13 22:13:43 +00:00
christos
2d4af9a7f8
netiso prototypes and fixes to get -DTUBA to compile.
1996-02-13 22:07:57 +00:00
christos
0c7d098c3b
netccitt prototypes
1996-02-13 22:04:21 +00:00
christos
206e75c6f1
Net prototypes
1996-02-13 21:59:53 +00:00
christos
20df3b41ab
uipc_proto.c: No need for the forward decls anymore; everything is prototyped.
...
kern_time.c: add header to get the NFS prototypes if needed.
1996-02-13 21:10:43 +00:00
christos
b0228bc325
- conf.h: add missing prototype for iszerodev()
...
- protosw.h: Prototypes for the protocol stack.
1996-02-13 21:08:50 +00:00
gwr
8b686f43c0
machdep.c
1996-02-13 19:40:22 +00:00
gwr
243011c19d
pass correct type to setjmp
1996-02-13 19:39:08 +00:00
jonathan
a5c3ac2538
Allocate a single static colourmap array for aglass-tty consle
...
framebuffer and malloc() all others. Remove old-config unit-number checks.
This driver no longer requires the "needs_count" flag.
1996-02-13 18:27:28 +00:00
jonathan
1c03bcb897
Finish converting MAXINE dtop driver to use new-style config.
...
The dtop driver no longer requires the "needs-count" flag.
Fix a panic in boot-time interrupt establish. The "generic" pmax
interrupt-establish code assumes that all interrupt args are new-config
device structs accessed via a struct cfdriver. Make it so.
1996-02-13 18:23:46 +00:00
gwr
9d2186505e
Use vprintf where it was intended, and use __dead
1996-02-13 18:06:10 +00:00
gwr
b29ca3a272
Do the RPC to bootparamd a little later (just before the mountd call)
...
so that we do not ask for the "swap" path when swapping on disk.
1996-02-13 17:53:32 +00:00
ragge
2395bee98d
Much faster copyin/copyout subroutines, written by Ken Wellsch.
...
Improved user-space network I/O (like ftp) with about 1.7 times!
1996-02-13 17:45:32 +00:00
gwr
eebcc06b89
eliminate setjmp.h
1996-02-13 17:39:01 +00:00
gwr
15dae05834
Oops, label_t does not have implicit pointer type like jmp_buf
1996-02-13 17:34:46 +00:00
gwr
89c2f6dc04
now in sys/dev
1996-02-13 17:29:15 +00:00
gwr
9e07977e11
no longer useful
1996-02-13 17:27:41 +00:00
christos
8a8e1a4d94
caddt_t -> caddr_t
1996-02-13 17:13:22 +00:00
christos
4fd36944c1
add ns_cksum.c; netns will not link without it.
1996-02-13 17:09:46 +00:00
christos
216907979a
add 2 missing fwd struct declarations
1996-02-13 17:06:52 +00:00
christos
43854c5755
compiler warning police
1996-02-13 17:05:47 +00:00
christos
cbb1d18e70
- Fix setcxsegmap prototype.
...
- Cast ?TO? macros to NULL to avoid compiler warnings
1996-02-13 17:04:58 +00:00
mycroft
183aec8fa8
GC *_nullop(). Minor nits.
1996-02-13 13:12:48 +00:00
mycroft
5953a056eb
GC dead_nullop().
1996-02-13 13:02:40 +00:00
mycroft
27a9f5bd9c
Fix #include syntax.
1996-02-13 06:56:58 +00:00
christos
e2c2c98181
di_size is a quad and needs %qu not %lu
1996-02-12 22:08:47 +00:00
christos
c048d7ba68
fix a printf warning and add pmap_page_index declaration
1996-02-12 21:51:52 +00:00
christos
b3666297b1
Oops, meant to delete the declaration completely.
1996-02-12 21:28:18 +00:00
christos
a9996b4780
pmap_page_index returns int
1996-02-12 21:27:32 +00:00
christos
3306495d82
delete pmap_page_index declaration; now in <vm/pmap.h>
1996-02-12 21:25:18 +00:00
christos
44aab5f4d3
make pmap_page_index return int
1996-02-12 21:21:15 +00:00
christos
bf49f190a7
change pmap_page_index to return int
1996-02-12 21:19:13 +00:00
christos
967dc9fa87
make pmap_page_index return int instead of u_long
1996-02-12 21:15:37 +00:00
christos
4d234d08d8
Move pmap_page_index declaration to <vm/pmap.h>
1996-02-12 21:12:29 +00:00
christos
47058c3660
make pmap_page_index() return a signed int.
1996-02-12 21:11:20 +00:00
pk
3237aa23d2
Avoid compiler warning.
1996-02-12 21:05:18 +00:00
pk
d5ddbf99ab
Separate DMA and SCSI routines more.
1996-02-12 15:59:51 +00:00
christos
11e9f2ce94
Add fwd declaration for struct ucred
1996-02-12 15:20:12 +00:00
christos
19dc07be15
close PR/2063: procfs_rw prototyped twice with different prototypes
1996-02-12 15:01:41 +00:00
gwr
2e06ee143c
Avoid 3/50 H/W bug (I hope)
1996-02-12 05:19:09 +00:00
gwr
c0a9716f6e
Fix address wrap in bus_mapin
1996-02-12 05:14:19 +00:00
ws
f331e77b53
Deal correctly with boundary between 12 bit and 16 bit cluster numbers
1996-02-11 22:48:14 +00:00
briggs
9401e46ed0
Change readdisklabel to check block 0 of the disk for a Macintosh magic
...
number before attempting to load the Macintosh partition info. If the
first 32-bits of block 0 contain the BSD disklable magic number, treat
it as a NetBSD disklabel.
When loading the Macintosh partition map, check the first 32 partitions
for the root, usr, and swap partitions--instead of the first 8. Still
only allows 8 total partitions for NetBSD use.
1996-02-11 22:31:47 +00:00
thorpej
91bd533c48
Avoid deref'ing a bad pointer in ccdopen(). This could happen if
...
any partition other than RAW_PART is opened before configuring the
ccd. Bug pointed out by Matthew Green.
1996-02-11 18:04:01 +00:00
briggs
d03a91c75f
KNF-ified by Scott Reynolds a long time ago.
1996-02-11 15:23:19 +00:00
ragge
183d234ae4
Add prototypes.
1996-02-11 13:47:55 +00:00
ragge
4cafd3d7d2
PAGE_SIZE should be PAGE_SHIFT. Really ugly bug!
1996-02-11 13:46:23 +00:00
ragge
26d151d2bb
Prototype for delay().
1996-02-11 13:45:37 +00:00
ragge
dfecf19e9f
Fix cpu_sysctl() arguments to be like prototype.
1996-02-11 13:43:37 +00:00
ragge
550f120337
Fix things that -O2 broke. Cleanup.
1996-02-11 13:41:35 +00:00
ragge
bb75a13fbb
Cleanup & convert to KNF.
1996-02-11 13:39:54 +00:00
ragge
998626f339
Add VAX650, mba, hp, ts. Change uba to be *'ed.
1996-02-11 13:28:25 +00:00
ragge
29719357a6
Remove csralloc(), not usable anymore.
...
Add ubasetvec() to steal interrupt vectors for device drivers that
need more than one vector. Add prototype for it.
1996-02-11 13:24:50 +00:00
ragge
d2dadd65df
register -> volatile in some places, to make it work OK with -O2.
1996-02-11 13:22:30 +00:00
ragge
435182d4bb
Device drivers for massbus adapters and massbus disks.
...
Works with RP04/05/06/07 disks.
1996-02-11 13:19:33 +00:00
leo
35d120d71d
Some extra range-tests on the RTC values.
1996-02-11 12:42:19 +00:00
leo
2bbdc4b9c7
Be a bit more carefull when accessing the proc structure on a kernel buserror.
1996-02-11 12:41:25 +00:00
jonathan
a43eb3baa6
Fix v_putc() conflict with the declaration in <sys/systm.h>: remove the
...
v_putc() declaration and assignment to a temp pointer. The rcons console
initialization longer requires that hack.
1996-02-11 07:14:58 +00:00
christos
fb9b45b582
put back traditional symlink change that somehow got lost.
1996-02-11 02:06:13 +00:00
briggs
4323ae0307
Remove via_inited, as it is unused.
1996-02-11 01:20:46 +00:00
briggs
6945798b81
Correct ROM vectors for the LC 475.
1996-02-11 01:20:37 +00:00
briggs
ffc19f58b0
Back out last change. Bad karma to initialize the VIA that early.
1996-02-11 01:20:23 +00:00
scottr
0ae8a51904
PETE was pretty useless; SPOT is my own machine, and will better
...
reflect the status of sbc driver configuration.
1996-02-11 00:17:13 +00:00
scottr
af4f29bcb3
Identical to GENERIC, but uses the `sbc' driver.
1996-02-10 23:42:31 +00:00
scottr
ed73ac3b48
New SCSI driver for Macintosh II family machines, implemented using
...
the MI 5380 driver. It has been verified to work on the IIx, IIsi,
and IIci only, but should work with any Macintosh 5380-based SCSI
controller.
- This driver is _not_ intended to be a general purpose replacement
for the `ncrscsi' driver. It is an alternative for those having
problems with that driver.
- Disconnect/reselect doesn't (yet) work, so don't expect SCSI tape
or magneto-optical disk drives to function properly.
1996-02-10 23:28:41 +00:00
briggs
01c43471b9
Make a message more verbose for folks who try to boot in 24-bit mode.
1996-02-10 23:12:46 +00:00
pk
b153275d13
Don't return EBADRPC if we have something else.
1996-02-10 22:55:16 +00:00
hpeyerl
fb81581990
detatch this spelling mistake from this source file.
1996-02-10 22:27:22 +00:00
leo
8d7918526b
Various small fixes.
1996-02-10 22:10:45 +00:00
christos
ee08b72ef4
Hayes ESP register definition
1996-02-10 20:23:40 +00:00
christos
11d31f7ce7
Hayes ESP patches [from PR database]
1996-02-10 20:23:18 +00:00
thorpej
8a6ad45eed
In fdcretry(), if we're not using implied seeks, set the state to DOSEEK
...
rather than SEEKCOMPLETE before retrying the operation. If implied seeks
are being used, the state is set to DOIO (no change). This is why I
couldn't reproduce the disk_unbusy() panic on my SS2; it uses implied
seeks. Patch from John F. Woods <jfw@jfwhome.funhouse.com>
1996-02-10 18:37:36 +00:00
thorpej
d586688437
In fdcretry(), set the state to DOSEEK rather than SEEKCOMPLETE before
...
retrying the operation. Fixes disk_unbusy() imbalance and really seems
like the right thing to do in case it was the seek that failed. Takes
care of PR #1985 . Patch from John F. Woods <jfw@jfwhome.funhouse.com>
1996-02-10 18:31:13 +00:00
christos
47158e6548
syscalls.master changed
1996-02-10 17:14:07 +00:00
christos
eb13d0121e
- fixed wrong argument order in xmknod
...
- added proper support for {f,}pathconf
1996-02-10 17:12:31 +00:00
christos
45aca3f276
fix _insque and _remque declarations
1996-02-10 00:51:52 +00:00
christos
b50214e2fa
use %p in printf's instead of casts to (unsigned int)
1996-02-10 00:48:08 +00:00
christos
3e701ffc5a
Add forward decls.
1996-02-10 00:44:18 +00:00
christos
2f1e5a946a
Another typo.
1996-02-10 00:33:53 +00:00
christos
d0fd3d7e62
Don't declare pmap_page_index for now. It will break the arm port.
...
This clearly needs to be fixed. I would like to declare it:
__pure u_int pmap_page_index __P((vm_offset_t));
but at least the arm port wants it signed [since it tests for -1 all over
the place]. Can we have this fixed please?
1996-02-10 00:30:39 +00:00
christos
b7b8db60ac
change pmap_page_index to return __pure u_int, like in the majority of
...
the ports
1996-02-10 00:20:09 +00:00
christos
e9aa96b9ad
Follow Charles' advise about the location of some of the prototypes.
1996-02-10 00:13:25 +00:00
christos
647dfa216e
Don't declare MSG_COMPAT in two places.
...
More prototype fixes
1996-02-10 00:12:44 +00:00
christos
30c34c327f
vnd.c: Typo (disk_deta{t,}ch) It was detach in the header file and
...
detatch everywhere else. Reverted to the english spelling.
Also fixed the rest of the prototype warnings while I was at it.
ic/ncr5380sbc.c: Don't declare Debugger()... I have to clean this
everywhere :-(
1996-02-10 00:11:44 +00:00
christos
03b1ad4cb4
One more cleanup pass to change %x to %p for pointers
1996-02-10 00:07:59 +00:00
christos
9fe380e1ab
cross that t and dot that i. Typo in last commit.
1996-02-09 23:30:19 +00:00
christos
c6edd77b23
A few prototype fixes
1996-02-09 23:14:14 +00:00
christos
1b17f25866
fix prototype warnings
1996-02-09 23:12:14 +00:00
christos
631ccba638
miscfs prototype changes
1996-02-09 22:39:56 +00:00
christos
273fa18bff
ufs prototype changes
1996-02-09 22:36:00 +00:00
christos
573481f5fc
mfs prototypes
1996-02-09 22:31:27 +00:00
christos
7bd9e243f3
lfs prototypes
1996-02-09 22:28:45 +00:00
christos
ec3d880232
ffs prototypes
1996-02-09 22:22:18 +00:00
gwr
f4cc5b017a
eliminate setjmp.h
1996-02-09 21:51:39 +00:00
christos
e4c93ec893
nfs prototype changes
1996-02-09 21:48:19 +00:00
christos
245d8c1eb2
isofs prototypes
1996-02-09 21:31:50 +00:00
leo
063216ccfd
Remove reference to setjmp.h
1996-02-09 20:53:59 +00:00
leo
89bbb8b2fb
Catchup with the future.
1996-02-09 20:52:04 +00:00
christos
01b73223a6
msdog prototype changes
1996-02-09 19:13:39 +00:00
christos
2140eeda0f
Adosfs prototyping changes.
1996-02-09 19:06:38 +00:00
christos
09afd77655
More proto fixes
1996-02-09 18:59:18 +00:00
scottr
b62a5cfd54
When we panic, be a little smarter about whether we need to wait
...
for the user to hit a key before we reboot.
1996-02-09 18:57:20 +00:00
mycroft
fce3e0874f
Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
...
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
cleanup.
* Require the file system to decide whether or not linking and unlinking of
directories is allowed, and disable it for all current file systems.
1996-02-09 18:47:48 +00:00
christos
22ca27a01d
Filesystem prototype changes
1996-02-09 18:24:59 +00:00
scottr
41378a47c0
Info from Mike Hibler <mike@cs.utah.edu> indicates that the probable
...
intent for the value of the C_REL constant was 0xc0. Testing has turned
up no adverse effect on tape or disk devices, and in fact this change
apparently makes my 9145 tape work as expected. (!) Closes PRs 1874 and
1971.
1996-02-09 18:00:35 +00:00
mycroft
28bf676a23
Read the 14f/34f registers in 8-bit mode.
1996-02-09 17:38:09 +00:00
mycroft
45e308cd51
Be more verbose when a CPU class is not configured.
1996-02-09 17:15:27 +00:00
scottr
4058c67702
Specify return type for vunmapbuf()
1996-02-09 16:58:40 +00:00
gwr
b3ba75d64e
use vprintf where appropriate
1996-02-09 16:10:59 +00:00
mycroft
c9c8301a91
Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
...
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
cleanup.
* Require the file system to decide whether or not linking and unlinking of
directories is allowed, and disable it for all current file systems.
(Also, remove the cross-device link check, that was moved into the file
systems some time ago.)
1996-02-09 15:47:11 +00:00
mycroft
06a1236be9
Rearrange the locking in sys_unlink(), more like nfsrv_remove().
1996-02-09 15:39:12 +00:00
ragge
d24ffd421f
Support for ka650, tailored in_cksum and removal of a couple needs-count.
1996-02-09 15:24:18 +00:00
briggs
f18f32d2e1
PR#2048. Prototype st_erase().
1996-02-09 14:51:34 +00:00
mycroft
53fccab940
Fix vop_link, vop_symlink, and vop_remove semantics in several ways:
...
* Change the argument names to vop_link so they actually make sense.
* Implement vop_link and vop_symlink for all file systems, so they do proper
cleanup.
* Require the file system to decide whether or not linking and unlinking of
directories is allowed, and disable it for all current file systems.
1996-02-09 14:45:36 +00:00
fvdl
d6b5a89f90
Use a default, 'safe' address to map the loader to in case the an emulation-
...
specific probe function did not specify it. It picks the same address
as mmap() does for a non-fixed map at address 0. See also the comment
around a similar line of code in vm/vm_mmap.c.
1996-02-09 13:25:54 +00:00
mycroft
a5097509ef
Increase SOMAXCONN.
1996-02-09 06:32:22 +00:00
mycroft
db070d4271
Enforce the hierarchy: imp > tty > net > bio, to cater to lame PC devices.
1996-02-09 02:26:00 +00:00
mycroft
753fe3a25a
Fix mkdep problems due to missing flags.
1996-02-09 02:21:13 +00:00
mycroft
bf6bf23e7b
If parent is in ppwait, wake it up early to prevent deadlock.
1996-02-09 01:19:21 +00:00
gwr
7ce27395a6
Need vprintf() for things like panic().
1996-02-08 20:19:36 +00:00
mycroft
1f30ef161a
mount(2) takes a const char *. Pointed out by der Mouse.
1996-02-08 18:30:10 +00:00
chuck
718ac5d246
[import changes from sparc port]
...
- moved disk_busy() call from xdstrategy() to xdc_startbuf()
[prevents disk_unbusy panic when disk is loaded (if no
free IOPBs, xdstrategy() would queue the buffer for pickup
by xdcintr() but xdcintr() would never call disk_busy().
xdc_startbuf() is a better place since all bufs are routed
through here] problem detected by girish@dworkin.wustl.edu ,
diagnosed and corrected by me.
- move disk_unbusy() call in xdc_remove_iorq() before the call to
XDC_FREE() [don't want to access a data structure that was just put
on a free list]
1996-02-08 04:42:57 +00:00
chuck
2accbfeefb
- moved disk_busy() call from xdstrategy() to xdc_startbuf()
...
[prevents disk_unbusy panic when disk is loaded (if no
free IOPBs, xdstrategy() would queue the buffer for pickup
by xdcintr() but xdcintr() would never call disk_busy().
xdc_startbuf() is a better place since all bufs are routed
through here] problem detected by girish@dworkin.wustl.edu ,
diagnosed and corrected by me.
- move disk_unbusy() call in xdc_remove_iorq() before the call to
XDC_FREE() [don't want to access a data structure that was just put
on a free list]
1996-02-08 04:40:33 +00:00
mycroft
47246947c7
Adjust the low and high watermarks. Based on a suggestion from Lennart
...
Augustsson.
1996-02-08 03:05:34 +00:00
mycroft
7366dec9ec
No need for LOCKPARENT in sys_lstat(), and eliminate dead variables.
1996-02-08 02:54:20 +00:00
jonathan
b5c68cb4cd
Add serial-console support that works with `new-style' (config.new) autconf
...
code. Substantially the same code tested on a 5k/240. Should work on a
5k/1xx. Not tested on a MAXINE, where the single unit may break the
PROM-channel-number to driver-channel-number mapping.
1996-02-08 02:26:34 +00:00
mark
b92a2f676a
patch from rob black to fix support for 1bpp Xservers.
1996-02-07 19:11:02 +00:00
jtc
b73662fea2
Revert to sane symlink semantics. This is something we should have done
...
long ago. Fixes many PRs.
1996-02-07 17:01:25 +00:00
jtc
d9d402d0fb
Revert to sane symlink semantics. This something we should have done
...
long ago. Fixes many PRs.
1996-02-07 16:55:56 +00:00
scottr
3c8605f0f7
Add sbc driver.
1996-02-07 16:34:28 +00:00
pk
c633b5aae2
wrt. previous change: can't compute `ilen' that early; just do computation
...
separately when logging.
Notes: consider using mbuf pkthdr length field in PPP code.
condider doing packet log after de-compression.
1996-02-07 12:43:41 +00:00
pk
b77eaf2c1c
Init variable before use (PRs 1646 & 2042).
1996-02-07 10:25:58 +00:00
christos
2b16de0596
Fix tablet.h, forgot to commit this when I fixed tty_tb.c
1996-02-07 04:03:13 +00:00
thorpej
fa30609066
Protect clearing the Intersil chip's interrupt with splhigh(). If this
...
gets interrupted (by the higher priority zs hardware, for example),
the clock can come to a dead stop!
1996-02-06 22:59:03 +00:00
christos
b07937f401
Make it really work like strncasecmp, instead of 0/1 return codes.
1996-02-06 21:35:31 +00:00
christos
70552d3392
Add strncasecmp.c; extracted from ADOSFS adlookup.c.
1996-02-06 21:22:00 +00:00
thorpej
b686e830b8
Fix typo, from Thorsten Frueauf <frueauf@ira.uka.de>.
1996-02-06 18:15:19 +00:00
pk
d0abefaa36
beq -> be; some assemblers don't know about this alias.
1996-02-06 12:11:15 +00:00
jonathan
4ab4b73b40
Support kernels configured without an ASC (e.g, 3100-only configs) or
...
without an SII (e.g., TURBOChannel-only configs). Only the same old,
static, set of old-config devices and old pmax rz/tz drivers is
supported.
1996-02-06 02:13:18 +00:00
pk
52c068d6e6
Be sure to reset the chip when relection fails to prevent corrupting data.
1996-02-06 02:03:46 +00:00
jonathan
f239350d79
Fix braino in (partial) 5100 support: the 5100 is a DS_MIPSMATE, not a
...
DS_MIPSFAIR.
1996-02-06 01:59:46 +00:00
jonathan
bf52fa8269
The prototyping `fixes' broke vmapbuf() and vunmapbuf(), due to a "sz"
...
parameter parameters shadowing locals. Replace vmapbuf() and vunmapbuf()
with the Alpha-port versions, which are cleaner (use round_page(),
trunc_page(), etc.)
1996-02-06 00:31:51 +00:00
jonathan
cb7e6f2e0f
Change last argument of ktrsysret() call: pass rval[0], not rval, as
...
ktrsysret() expects. Tracing of rval[1] remains an open problem.
1996-02-06 00:13:04 +00:00
mark
a725f894c6
Added -fno-builtin flag for braindead version of gcc currently used by
...
the arm32 port.
1996-02-05 23:49:49 +00:00
mark
6b36adcad6
Define TRAPFRAMESIZE to be the size of a trapframe in bytes.
1996-02-05 23:24:50 +00:00
scottr
54c51d4393
Document this file better, mostly from John Vinopal
...
<banshee@gabriella.resort.com>. Closes PR #1864 .
1996-02-05 23:01:50 +00:00
mark
a70b546c49
Added extra comments to help explain what the code is doing.
1996-02-05 22:43:53 +00:00
mark
66e7b4b999
ramdisk boot loading code now condition on RAMDISK_HOOKS being defined.
1996-02-05 21:43:40 +00:00
scottr
ae06fdb589
Allow blocksize of NBPG/2 to NBPG for higher sampling rates. From
...
Lennart Augustsson <augustss@cs.chalmers.se>, closes PR 2013.
1996-02-05 21:32:26 +00:00
mark
25aa4f48b1
Updated to used NHYDRABUS to determine if hydrabus device should be
...
supported.
1996-02-05 21:25:33 +00:00
scottr
186d69c204
Don't adjust the number of blocks in the ring buffer if the driver
...
is currently outputting silence. Fix from Lennart Augustsson
<augustss@cs.chalmers.se>, closes PR #2010 .
1996-02-05 21:11:10 +00:00
mark
82a8316c02
cpus can now be attached to hydrabus as well as mainbus.
1996-02-05 21:01:34 +00:00
christos
28eae27187
correct prototype for cpu_fork
1996-02-05 20:33:37 +00:00
christos
46d49e500e
Account for __FORK_BRAINDAMAGE..
1996-02-05 20:32:25 +00:00
scottr
5517c6a36f
Grammar police; noted by Peter Seebach <seebs@solon.com>. Closes PR #1982 .
1996-02-05 17:39:25 +00:00
mark
ceae6db272
The data abort handler now fixes the base register in co-processor
...
data transfer instructions that use writeback. i.e. LDC/STC instructions.
Hardware LDF/STF instructions are now correctly handled.
1996-02-05 17:31:33 +00:00
mark
4909105de6
Updated development history
1996-02-05 17:21:31 +00:00
mark
94fa0b2f1b
post instruction emulation callback now expects a trapframe structure
...
to be passed as well as the fp frame.
FPE<->kernel glue code now builds a trapframe structure for passing in
and out of the post instruction emulation callback.
Signal delivery during FP emulation now works correctly.
1996-02-05 16:51:52 +00:00
mark
20c26bade4
Removed redundant debugging text. Minor code tidy ups.
1996-02-05 16:49:01 +00:00
mark
bd04466b08
Configuration files updated to support latest options and devices
1996-02-05 16:34:51 +00:00
jtc
7eb02879b7
Simplify -I's in CFLAGS
1996-02-05 07:42:54 +00:00
jtc
3ae2aedf4d
Fix error in copyright notice
1996-02-05 02:18:48 +00:00
christos
2c8314f73c
vm prototype changes
1996-02-05 02:06:38 +00:00
christos
684b37e33e
vm prototype changes.
1996-02-05 01:59:12 +00:00
christos
a18394e8c3
Extracted vm compat functions from vm and added them here where they belong.
1996-02-05 01:58:28 +00:00
christos
8c2e3b4b11
DDB prototype changes.
1996-02-05 01:56:47 +00:00
christos
bcabcefdcd
VM prototype changes
1996-02-05 01:53:47 +00:00
jtc
240e22087c
Received copyright assignment
1996-02-05 00:10:32 +00:00
pk
00acf2040e
unp_detach() return type botch.
1996-02-04 20:32:15 +00:00
jonathan
1f780158bb
Redo the locore interrupt counters reported by vmstat -i:
...
* add a new enum decstation_intr_t to trap.c, naming each instrumented
interrupt symbolically, and used to index into intrcnt[]. Change the
model-specific interrupt handlers to use the decstation_intr_t when
updating interrupt counters.
* add instrumentation to the kmin and maxine interrupt handlers.
* fix a bug that counted each hardclock interrupts on the kn02 twice.
The hardcoded mapping from locore names to units is gross; but these
counters will hopefully be useful in identifying interrupt hot-spots
and PPP problems on the 3MIN.
1996-02-04 20:14:17 +00:00
jonathan
600a82037b
A semicolon was missing from the SYSTEM_LD_TAIL stanza that converts
...
from elf to netbsd a.out, causing the mv to fail; add one.
1996-02-04 07:08:38 +00:00
gwr
b1e9c83633
Quick fix to make this build. More to come...
1996-02-04 06:06:12 +00:00
christos
4aea4494ff
new files...
1996-02-04 02:19:27 +00:00
christos
e630447d8c
First pass at prototyping
1996-02-04 02:17:43 +00:00
briggs
674ef2b6f2
sys/types.h -> sys/param.h and remove include of stddef.h.
1996-02-04 02:17:42 +00:00
christos
cc3c2e69cd
First pass at prototyping
1996-02-04 02:17:39 +00:00
briggs
592866ff5d
sys/types.h -> sys/param.h and remove include of stddef.h.
1996-02-04 02:17:38 +00:00
christos
8a5b1b92e2
First pass at prototyping
1996-02-04 02:15:01 +00:00
christos
7da3571dc9
Fix some missing/wrong prototypes so that kern/* compiles again
1996-02-04 02:12:07 +00:00
christos
bac60f4e4e
Remove unused argument from vsunlock
1996-02-04 02:09:41 +00:00
christos
d4f46b2259
cnputc returns void
1996-02-04 02:04:08 +00:00
christos
ec3976413e
kern_sysctl was missing process argument. Elimited -Wall warnings from
...
the files that were affected
1996-02-04 02:02:14 +00:00
christos
065bada41f
so_pcb -> so_internal
1996-02-04 02:01:07 +00:00
briggs
2a878c9a3a
Move debugging defines, etc. into mac68k5380.c and use them instead of
...
something similar but different. Make a few cosmetic changes.
1996-02-03 23:17:53 +00:00
briggs
3d8d566948
New delay() implementation from Scott Reynolds (scottr@edsi.org).
...
Also some minor rearranging of the VIA initialization (init earlier).
1996-02-03 22:50:22 +00:00
briggs
6b6a46ed2f
Implement mac68k_register_via1_t1_irq(). Also, remove via_inited warning.
1996-02-03 22:50:19 +00:00
briggs
d13a039f24
New delay() implementation from Scott Reynolds (scottr@edsi.org).
...
Also some minor rearranging of the VIA initialization (init earlier).
1996-02-03 22:49:52 +00:00
chuck
623ec41006
Ensure siop_acb alignment via malloc rather than let alignment depend
...
on the size of MI data structures that come before it in the softc.
Chip will not function properly if alignment is wrong. (as per OpenBSD)
Detected and fixed by: Chuck Cranor <chuck@ccrc.wustl.edu>
and Michael L Hitch <osymh@gemini.oscs.montana.edu>
1996-02-03 18:47:07 +00:00
pk
5fd7df3063
Move splbio to level 5.
1996-02-03 16:10:58 +00:00
ws
144472e875
Deal (hopefully) better with uninitialized date fields
1996-02-03 16:04:09 +00:00
briggs
20123d5253
O2 breaks on this port. Use -O until we can fix it.
1996-02-03 15:14:39 +00:00
mycroft
fe18cd4ae7
Make sure to pull in the MI code.
1996-02-03 06:38:27 +00:00
mycroft
2f74d151b9
Don't need unistd.h.
1996-02-03 05:45:11 +00:00
mycroft
67eb39bcda
Make this compile with `traditional' cpp.
1996-02-03 04:36:01 +00:00
thorpej
996edfa606
Remove bogus "return (0);" in rdmatch() that wiggled its way in uninvited.
1996-02-03 03:00:29 +00:00
mycroft
d5b078f3e6
Clean this up a little, and make it compile with `traditional' cpp.
1996-02-03 01:43:41 +00:00
mycroft
213c4dbb89
Use CPPFLAGS, not COPTS.
1996-02-03 01:23:54 +00:00
mycroft
d6b2d2e00f
config.old uses vers.o, not newvers.
1996-02-03 01:17:22 +00:00
mycroft
b6f55847e5
Fix #includes.
1996-02-03 01:05:36 +00:00
mycroft
5bc076e17e
Use `-traditional-cpp' when building .s and .S files.
1996-02-03 00:43:50 +00:00
mycroft
af23361dde
Remove tty_compat.c.
1996-02-03 00:23:51 +00:00
mycroft
aa15cd3f7f
Don't need unistd.h.
1996-02-02 23:53:20 +00:00
mycroft
56a63148c6
config.old doesn't grok %SFILES.
1996-02-02 23:49:19 +00:00
mycroft
4f952cf1e7
#ifdef a call to kdb_trap() on DDB.
1996-02-02 23:19:43 +00:00
mycroft
cfefb732a0
Fix type errors.
1996-02-02 22:57:43 +00:00
mycroft
201c24de5a
Build a hash table of PCBs. Hash function needs tweaking.
1996-02-02 21:56:34 +00:00
mycroft
3a0d2c6a5b
Add extra arg for in_pcbinit().
1996-02-02 21:47:37 +00:00
mycroft
0ee5fee27f
Fix #includes.
1996-02-02 21:05:10 +00:00
mycroft
f96fc7f12e
Simplify, and add support for passing CPPFLAGS.
1996-02-02 20:34:38 +00:00
mark
b32ae66ae6
Ramdisk device now defaults to a size of zero if RAMDISK_SIZE is
...
undefined.
1996-02-02 20:23:00 +00:00
mycroft
dcd66e9f4d
Clone these, and fix many bugs.
1996-02-02 20:08:17 +00:00
mycroft
2dfbe4f961
Don't define _LOCORE here.
1996-02-02 20:05:08 +00:00
scottr
c0f37b4d05
Use DISKUNIT()/DISKPART() from <sys/disklabel.h> instead of
...
our own home-grown versions.
1996-02-02 19:50:26 +00:00
mycroft
9db20bf150
Don't define _KERNEL here.
1996-02-02 19:42:08 +00:00
mycroft
5d668ff961
ASSEMBLER -> _LOCORE
1996-02-02 19:08:33 +00:00
mycroft
0103e26fd8
Fix #includes.
1996-02-02 18:59:16 +00:00
christos
0ff0d71a2d
Removed kernel/tty_compat.c
1996-02-02 18:52:49 +00:00
christos
df9a562f20
Removed tty_compat.c; it is part of the kernel compat library...
1996-02-02 18:49:42 +00:00
christos
32a57f01bc
Renamed compat_tty.c to tty_43.c and updated with the newest copy from
...
kern/tty_compat.c
1996-02-02 18:47:50 +00:00
mycroft
9d9a70a5a2
Fix #includes.
1996-02-02 18:05:36 +00:00
briggs
5336dade8e
Force the talley counters to be read when we get the interrupt. GCC was
...
nicely optimizing the reads out for us. Kudos for this one go to
Steven R. Weiss <srw@hvcn.org>.
1996-02-02 15:30:56 +00:00
mycroft
cec913603e
Don't special-case conf.c.
1996-02-02 13:38:05 +00:00
mycroft
f3bbe0e453
Turn off a few things.
1996-02-02 09:09:39 +00:00
mycroft
f19761346e
Do the previous change a little differently.
1996-02-02 08:09:45 +00:00
mycroft
bb7cccd06d
Do the previous change a little differently.
1996-02-02 07:49:52 +00:00
mycroft
fc9d84fb46
assym.s -> assym.h
...
(Some ports did this already.)
1996-02-02 02:34:09 +00:00
jonathan
8b3d92f17f
Resolve pmax and alpha IOCTL asic driver differences, pass 1:
...
Rename the ioctl asic register and slot macros from ASIC_<xxx> to
IOASIC_<xxx>, to be compatible with the machine-indpendent names in
sys/dev/tc/ioasicvar.h. The pmax code still uses
sys/arch/pmax/pmax/asic.h, as some of the registers and offsets
defined there are not yet defined in sys/dev/tc/ioasicvar.h.
Rename the ioctl asic base-address pointer from `asic_base' to `ioasic_base'.
Use the device address in the attach_args structure, instead of
using the deprecated BUS_CVTADDR macro.
Change the Mach derived asc driver to use "SCSI_PHASE_xxx" instead of
"ASC_PHASE_xxx", as the latest version of the Mach driver does.
1996-02-02 02:33:34 +00:00
mycroft
ac03d03239
assym.s -> assym.h
...
(Some ports did this already.)
1996-02-02 02:33:26 +00:00
christos
1c35870a46
syscalls.master was changed
1996-02-02 01:18:09 +00:00
christos
9840c3ca68
Add xmknod()
1996-02-02 01:17:24 +00:00
mark
6b8930c21c
Fixed the panic in the terminal code caused by a mode change ioctl on
...
the vidcvideo device.
1996-02-01 23:50:20 +00:00
mycroft
c1978093ef
Remove some junk, and add _KERNEL and _LOCORE.
1996-02-01 22:41:12 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
thorpej
732dd94a83
Add experimental data mirroring support, derived from code written by
...
Satoshi Asami and Nisha Talagala. For details on using data mirroring,
see the ccd(4) manual page.
1996-02-01 20:47:13 +00:00
mycroft
1107479eaa
Rename tunioctl() and tuncioctl() so that cdevsw points to the right one.
...
From der Mouse, PR 2005.
1996-02-01 07:28:18 +00:00
jonathan
c72cd6e76c
Set sc->sc_cookie appropriately for the ioasic and TC option cases.
...
Tested on Decstation: ioasic, kn02 baseboard, and TC option card.
Add untested for pmax 3100/5100 baseboard ethernet.
1996-02-01 06:12:16 +00:00
briggs
af9bcab2ce
Clean up and comment a bit.
1996-02-01 03:40:26 +00:00
phil
5d2a046ccb
Update makefile to match recent pc532 MD changes, new config file.
1996-02-01 03:00:57 +00:00
phil
54df7b2130
Updating DELAY and scncnputc.
1996-02-01 02:37:15 +00:00
jtc
2ea599d8f8
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:41:19 +00:00
jtc
299e1fe9df
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:31:05 +00:00
jtc
e19bfae4f9
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:18:04 +00:00
jtc
dd05bd5124
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:04:52 +00:00
phil
63d5234cbf
Integration of many changes from Matthias Pfaller plus some of mine.
...
Several had: _MACHINE_ICU_H_ -> _NS32K_ICU_H_
cpu.h * Removed definition of cpu_swapout.
* Added definition of cpu_wait.
frame.h * added struct switchframe
icu.h * tweeked ints_off
param.h * More derived constants.
* Alot of things taken over from i386/include/param.h.
pcb.h * Removed pcb_flags (was unused) and pcb_pl.
The current priority level is now stored
in the switch frame by cpu_switch.
pmap.h * Taken over from i386/include/pmap.h.
psl.h * Add USERMODE definition
trap.h * T_INTERRUPT -> T_AST
types.h * Remove __FORK_BRAINDAMAGE
vmparam.h * Taken over from i386/include/vmparam.h.
Added definition of INTSTACK.
1996-02-01 00:03:25 +00:00
mark
f56b429c95
Initial commit of the NetBSD/arm32 port.
1996-01-31 23:44:43 +00:00
jonathan
10a140d34d
Rename SCSI phase manifest constants from ASC_PHASE_* to SCSI_PHASE_*,
...
as the newer version of the Mach 53c94 driver does.
1996-01-31 23:38:55 +00:00
mark
0705e7dfd1
Initial commit of the NetBSD/arm32 port.
1996-01-31 23:24:54 +00:00
mark
386ad2ff0f
Initial commit of the NetBSD/arm32 port.
1996-01-31 23:14:53 +00:00
phil
ccbcfbef91
Integration of many changes done by Matthias Pfaller with a few by me.
...
clock.c * Removed definition of DELAY.
intr.c * Removed an unneeded $Id:....$
locore.s * Moved some of the low level initialization
code to machdep.c.
* Defined proc_trampoline.
* Changed sigcode to pass scp to SYS_sigreturn.
* Changed copyin/copyout/fu*/su* to take advantage
of the ns32532's dual address instructions.
* Recoded copyinstr/copyoutstr/copystr in assembler.
* Added a new and faster version of bzero.
This makes bzero.s unnecessary.
* Defined suswintr to make profiling work.
* Recoded cpu_switch modelled after the i386
version of cpu_switch.
* Added support for lazy fpu state restore to
cpu_switch.
* Recoded trap handling code to be more readable.
* Added experimental code for single cacheline
invalidation.
machdep.c * Copied over cpu_startup from i386/i386/machdep.c.
* Changed sys_sigreturn to take advantage of the
argument passed by the trampoline code.
* Changed boot to call doshutdownhooks and to store
machine state in case of a panic.
* Changed setregs to clear the fpu registers.
* Recoded low_level_init. It's now called init532.
* cpu_reset: New function, resets the machine.
trap.c * Pulled over from i386/i386/trap.c.
* Added support for lazy saved/restored fpu state.
vm_machdep.c * Removed kstack double mapping by pulling over alot
of code from i386/i386/vm_machdep.c.
* Added support for lazy saved/restored fpu state.
* Moved freeing of process resources from cpu_wait
to cpu_exit.
* Pulled over cpu_coredump, pagemove, vmapbuf and
vunmapbuf from i386/i386/vm_machdep.c.
pmap.c * Pulled over from i386/i386/pmap.c.
genassym.c * Removed old and unused definitions, added new ones.
sys_machdep.c * Moved sys_sysarch from machdep.c to sys_machdep.c.
process_machdep.c * Changed to work without ktack double mapping.
* Changed to work with lazy saved/restored fpu state.
1996-01-31 21:33:42 +00:00
mycroft
9836ea60d6
Remember to multiply the seconds field by 2. Pointer out by John Hayward.
1996-01-31 20:51:40 +00:00
gwr
6cc7bd528f
Oops, didn't notice those type warnings...
1996-01-31 17:20:39 +00:00
briggs
e5ece749b2
Handle COMMAND ABORTED by forcing a retry. PR#2003, but with some more
...
diagnostic info.
1996-01-31 15:16:06 +00:00
jonathan
e229c8d175
Resolve pmax and alpha IOCTL asic driver differences, pass 1:
...
Rename the ioctl asic register and slot macros from ASIC_<xxx> to
IOASIC_<xxx>, to be compatible with the machine-indpendent names in
sys/dev/tc/ioasicvar.h. The pmax code still uses
sys/arch/pmax/pmax/asic.h, as some of the registers and offsets
defined there are not yet defined in sys/dev/tc/ioasicvar.h.
Rename the ioctl asic base-address pointer from `asic_base' to `ioasic_base'.
1996-01-31 08:46:42 +00:00
mycroft
0a47ede0fe
Ignore FIN if not yet connected.
1996-01-31 05:56:56 +00:00
mycroft
ac01b2f206
Add a comment describing the previous.
1996-01-31 05:42:37 +00:00
mycroft
a4e1bceb84
If we close from FIN_WAIT_2 state, make sure we don't leave the socket
...
around forever if we don't get a final FIN. From Arne Juul, PR 1659.
1996-01-31 05:37:29 +00:00
mycroft
59d1cce3ae
Don't specify a uid or gid in create operations; let the server fill it in.
1996-01-31 05:13:33 +00:00
mycroft
85f2006f7a
Correct some uses of -1 and VNOVAL.
1996-01-31 04:24:35 +00:00
mycroft
67e78477db
Build a hash table of PCBs. Hash function needs tweaking.
1996-01-31 03:49:23 +00:00
mycroft
b050cf3d61
Allocate the GDT area in a different way.
1996-01-31 03:13:07 +00:00
mycroft
fbb022ab48
Trivial change for consistency.
1996-01-31 03:11:16 +00:00
jonathan
219b1ef218
Re-write Decstation turbochannel autoconfiguration code to use the machine-
...
independent TC support in sys/dev/tc/tc.c and sys/dev/tc/tcvar.h:
* Change the tc autoconfiguration tables to use a struct tc_attach_args
instead of the ad-hoc structure.
* Change all pmax device drivers to use a `struct confargs' that's
assignment-compatible with sys/dev/tc/tcvar.h `struct tcdev_attach_args'.
Devices that can be present on a TC or as ioctl asic/mainbus builtins
use the same `struct confargs'.
* Eliminate the `BUS_CVTADDR()' macros which the pmax port inherited from
an old, now-obsolete sys/arch/alpha snapshot.
* Update the comments and debugging code in interrupt handlers to
be consistent with the machine-independent TC support.
Other commits that overlap the same source files include: re-enabling
clock-tick interrupts earlier, and counting hardclock ticks for vmstat -i.
1996-01-31 02:53:39 +00:00
thorpej
134b410457
Use the common sigreturn routine.
1996-01-31 02:26:05 +00:00
thorpej
a11ff465eb
Factor out the common (to all m68k ports) sigreturn routine.
1996-01-31 02:22:15 +00:00
cgd
40628fb3e8
update for new version of 'pcidevs'
1996-01-31 00:45:25 +00:00
cgd
8a3babe178
update/clean entries for Adaptec PCI scsi chips/boards.
1996-01-31 00:43:02 +00:00
scottr
25879b675b
Resolve return type conflict for microtime(); closes PR #1835 .
1996-01-30 23:15:01 +00:00
gwr
f2e57c6dc8
Eliminate remaining direct references to the z8530 chip
...
to allow the MD access functions to do delays, etc.
1996-01-30 22:34:52 +00:00
mycroft
99686e0059
Add a vnode** argument to getvnode(), prototype it, and make it return
...
EBADF if the file descriptor has been revoked.
1996-01-30 20:05:33 +00:00
thorpej
90a0b784de
Build memcpy.c
1996-01-30 19:47:32 +00:00
thorpej
43349cd7ef
Add a memcpy() function, just a cheezy wrapper around bcopy(). Yes,
...
it's really true...we didn't have one before, even though the Makefile
thought we did. (Yes, I checked the Attic...)
1996-01-30 19:45:34 +00:00
thorpej
abe8231c4f
Catch up with changes to libsa.
1996-01-30 19:09:09 +00:00
thorpej
b97cbfb606
Implement DIOCLOCK. It's a no-op in this driver.
1996-01-30 18:31:05 +00:00
thorpej
919f6728ab
Accept DIOCEJECT as a synonym for CDIOCEJECT. Implement DIOCLOCK
...
separately from CDIOCALLOW and CDIOCPREVENT, even though they perform
basically the same function (with a different interface XXX).
1996-01-30 18:28:02 +00:00
thorpej
c7a20f0ee3
Implement DIOCLOCK and DIOCEJECT. DIOCEJECT is limited to removable
...
media. Fixes PR #1975 .
1996-01-30 18:24:47 +00:00
thorpej
489044a625
Move disk-specific ioctls out of <sys/disklabel.h> and into <sys/dkio.h>.
...
<sys/dkio.h> is in turn included by <sys/ioctl.h>, much like how
<sys/filio.h> and <sys/sockio.h> are handled. This minimizes changes to
existing sources which use the disk ioctls.
Define DIOCLOCK which is used to lock and unlock the pack.
1996-01-30 18:21:46 +00:00
mycroft
436d930db5
Use insmntque() rather than manually frobbing the mount list.
1996-01-30 18:21:08 +00:00
mycroft
5f8d113e8a
Don't include free blocks from the lower layer in statistics.
1996-01-30 16:45:10 +00:00
jonathan
4c0067c40b
Remove config.old files for pmax. They should have been removed before
...
the NetBSD-1.1 release, as they have not worked or been supported for
some time.
1996-01-30 05:18:55 +00:00
jonathan
05ef657fb8
Some newer scsi-2 or scsi-3 drives reportedly return more data in
...
response to an inquiry command than was allocated here. Add 1024
bytes extra padding, just to be safe.
1996-01-30 04:47:16 +00:00
gwr
0d44b7f3fe
Include m68k/fpe/files.fpe for FPU emulation support (fixes PR 1773)
1996-01-30 00:35:28 +00:00
gwr
57664ea85c
Oops, did not mean to check that one in...
1996-01-29 23:59:04 +00:00
gwr
38c7f668a2
Clean-up open/close logic of "net" device. Fixes PR 1726
1996-01-29 23:54:14 +00:00
gwr
4541c9f5c6
Work-around sensitivity to DVMA address in PROM revision 2.6 so the
...
netboot program will work on Sun3/50 machines. Also fixes PR 1928.
1996-01-29 23:41:03 +00:00
jonathan
5ea2ec2357
Re-write Decstation turbochannel autoconfiguration code to use the machine-
...
independent TC support in sys/dev/tc/tc.c and sys/dev/tc/tcvar.h:
* Change the tc autoconfiguration tables to use a struct tc_attach_args
instead of the ad-hoc structure.
* Change all pmax device drivers to use a `struct confargs' that's
assignment-compatible with sys/dev/tc/tcvar.h `struct tcdev_attach_args'.
Devices that can be present on a TC or as ioctl asic/mainbus builtins
use the same `struct confargs'.
* Eliminate the `BUS_CVTADDR()' macros which the pmax port inherited from
an old, now-obsolete sys/arch/alpha snapshot.
* Update the comments and debugging code in interrupt handlers to
be consistent with the machine-independent TC support.
Other commits that overlap the same source files include: re-enabling
clock-tick interrupts earlier, and counting hardclock ticks for vmstat -i.
1996-01-29 22:52:15 +00:00
briggs
cde62d494a
Fix for delay(usec) for small usec. From Scott Reynolds <scottr@edsi.org>.
1996-01-29 04:10:00 +00:00
chopps
702c1321e2
add swedish keyboard support by Stefan Pedersen
1996-01-28 20:19:51 +00:00
chopps
79964e580d
debug flag to as is uneeded and unsupported #1948
1996-01-28 20:09:08 +00:00
chopps
d00a79e34d
fix bounds check #1939
1996-01-28 20:06:15 +00:00
chopps
2684692a5a
add check for "A4000 bonus" (small b)
1996-01-28 20:01:10 +00:00
chopps
ab86728e62
aftsc uses afsc.c #1976
1996-01-28 19:57:47 +00:00