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