briggs
2635a9c602
Serial driver with interface to a slightly modified version of the machine-
...
independent z8530 driver. When that driver is updated, the local copy
of those files may be removed. From Bill Studenmund.
Compiler warnings fixed by me.
1996-05-18 18:53:50 +00:00
briggs
78c78f916e
Fixup a few prototypes and put 'em in their place.
1996-05-18 18:52:41 +00:00
christos
dbd08073ba
- remove cpu_exec_aout_prep_oldzmagic and add exec_aout_prep_old{z,n,o}magic
1996-05-18 17:20:54 +00:00
christos
4f3ac596f5
- rename cpu_exec_aout_prep_oldzmagic to exec_aout_prep_oldzmagic
1996-05-18 16:02:08 +00:00
christos
8c29c79939
- remove cpu_exec_prep_oldzmagic and use exec_aout_prep_oldzmagic
1996-05-18 16:01:00 +00:00
christos
52d3532adb
- remove cpu_exec_aout_prep_oldzmagic and use exec_aout_prep_oldzmagic
1996-05-18 15:58:07 +00:00
christos
15ac7da805
- remove cpu_exec_aout_prep_oldzmagic and use exec_aout_prep_oldzmagic
...
- add exec_aout_prep_oldnmagic and exec_aout_prep_oldomagic. Now we support
all BSDI executable formats.
1996-05-18 15:54:59 +00:00
christos
f09036d6ec
- Moving cpu_exec_aout_prep_oldzmagic -> exec_aout_prep_oldzmagic.
...
This is used by the i386, hp300 and mac68k ports.
- Added exec_aout_prep_oldomagic, and exec_aout_prep_oldnmagic
These are just copies of the respective prep functions from
kern_exec.c with text address starting at 0. Maybe a better fix
is to pass the starting address as a third argument so we don't
duplicate code, but this could be the next pass since the functions
are used in many places. These functions are used for BSDI binaries.
1996-05-18 15:52:19 +00:00
mrg
9ce523cca7
disable the prom `sync' command before calling romboot() or
...
romhalt() (idea from OpenBSD).
1996-05-18 12:36:49 +00:00
mrg
4cba75e24a
put promdev definition into <machine/bsd_openprom.h>.
...
also, minor KNF.
1996-05-18 12:35:18 +00:00
mrg
b6988904e0
put promdev definition into <machine/bsd_openprom.h>.
1996-05-18 12:27:40 +00:00
mrg
d7bc39fad1
don't set tmp twice.
1996-05-18 12:22:49 +00:00
mrg
68b2ff1bdb
use __P
1996-05-18 12:19:14 +00:00
thorpej
a8c7148dd2
XXX set up alldevs and allevents so that vmstat -i will work.
1996-05-18 01:39:57 +00:00
christos
268e6edf33
Support bsdi getkerninfo(SYSINFO,...) call so that the BSDI netscape
...
calling uname(3) can find out what os it is running on. Tested only with a
bsdi binary that calls getkerninfo directly. Funny thing is that I ran
the same binary on a bsdi machine, and they fill in fewer fields in the
emulation than we do; maybe I went overboard :-)
1996-05-18 01:24:34 +00:00
thorpej
63f4ec3e41
Put the vector table back in the text segment; putting it in the data
...
segment breaks doboot() on my 319 (but worked on my 380...bleh!)
1996-05-18 00:52:53 +00:00
cgd
4145f89f54
TurboChannel bus_mem_* functions. bus_mem_{read,write}_8, and
...
bus_mem_read_{1,2} are not yet supported for sparse space.
1996-05-18 00:00:51 +00:00
cgd
0307c36933
bus_io_* functions. These have no meaning on the TurboChannel, since
...
it's a memory-mapped bus and has no I/O space. They all are
fancy wrappers around panic().
1996-05-17 23:59:31 +00:00
cgd
84b37ec80d
set up a bus_chpiset_tag_t, and pass it to the TC code
1996-05-17 23:58:43 +00:00
cgd
e49dcae424
add files for the implementation of the TC 'bus' mem & I/O functions
1996-05-17 23:44:02 +00:00
cgd
a78f16f702
moved to ../tc
1996-05-17 23:41:36 +00:00
cgd
2872eeccac
(on the alpha) pass the bus_chipset_tag_t given to the bus down to the
...
devices.
1996-05-17 23:39:19 +00:00
cgd
af446a907a
Update for new includes (<machine/bus.h> & <machine/intr.h>) on the
...
alpha. At some point in the future, those headers should be provided
on the pmax, but until then, things are #ifdef'd so that the old
headers and definitions are still used. Pass a bus_chipset_tag_t
to the TC bus attach code and to devices, on the alpha.
1996-05-17 23:38:16 +00:00
pk
da5c96baa1
Correct an oversight and a silly past-o in last change.
1996-05-17 22:54:40 +00:00
gwr
9c5d297b0f
New version that handles hardware flow-control (CRTSCTS) at the input
...
to the ring (or silo). This eliminates ring overrun with crtscts.
Also handle deferred register changes earlier, and misc. cleanup.
Give credit to: Bill Studenmund and Ian Dall (Thanks!)
1996-05-17 22:49:23 +00:00
pk
bcc0cb3fa0
Don't touch retval[] in socketpair(); manual page says this system call
...
return 0 on success (PR#2428).
1996-05-17 22:45:32 +00:00
mark
a1ac79c69f
Added r_neg bit and removed r_copy bit from relocation_info_arm6 structure.
...
General tidy up of the code style in file.
1996-05-17 21:58:07 +00:00
chuck
6d472208c0
bump
1996-05-17 21:20:11 +00:00
chuck
056791c7fa
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
1996-05-17 21:18:07 +00:00
chuck
bd3c8260d8
sync with openbsd. [includes if_ie made to work on 16x by Theo de Raadt]
1996-05-17 21:17:58 +00:00
chuck
3df32569f8
Makefile: update from OpenBSD
...
boot.c: update from sun3 port, with changes for my new boot code put in.
conf.c: config from openbsd, by Theo de Raadt
dev_net.c: update from openbsd (standard dev_net with changes from theo)
dev_net.h: proto from openbsd
1996-05-17 21:08:25 +00:00
chuck
d14981d7b7
bugdev.c: from Dale Rahn (bug device access)
...
exec_mvme.c: from sun3 port, adapted by me. I also fixed a bug that
prevented ZMAGIC kernels from running.
libsa.h: new file by me
parse_args.c: by Theo de Raadt from OpenBSD with slight revisions from by me
to make it fit the new format.
1996-05-17 20:59:53 +00:00
chuck
23ee5c7500
replace with code to use libbug rather than access directly
1996-05-17 20:54:50 +00:00
chuck
86a71fe9e7
complete revise of sun3 SRT0 so that it works with bugcrt by me.
1996-05-17 20:53:49 +00:00
gwr
316f45753f
Allow the DIAGNOSTIC to compile with old versions of gcc.
1996-05-17 20:53:11 +00:00
chuck
3430ad6211
update for my reorg
1996-05-17 20:52:37 +00:00
chuck
d2da5a2153
remove files no longer needed due to reorg.
1996-05-17 20:49:23 +00:00
chuck
36079d8909
update for new boot stuff
1996-05-17 20:45:48 +00:00
chuck
75dfdfdab4
bootxx: import from sun3 port, adapt to mvme68k by me.
1996-05-17 20:11:31 +00:00
pk
05379d078e
Add `_kernel_text' symbol for kvm_mkdb(8).
1996-05-17 20:07:53 +00:00
chuck
ccc9ad0d6c
fix comment
1996-05-17 20:07:36 +00:00
chuck
62a58e8eaa
bootst: from Dale Rahn.
1996-05-17 20:06:45 +00:00
chuck
008b8c0664
bootsd: import from sun3 port, adjust for mvme68k port by me
1996-05-17 20:04:46 +00:00
chuck
bee8cda103
installboot: from sun ports
1996-05-17 20:00:52 +00:00
chuck
671b4023a4
wrtvid by Dale Rahn.
1996-05-17 19:58:53 +00:00
chuck
89a5edba69
prtvid (print out a VID block). by Dale Rahn.
1996-05-17 19:54:57 +00:00
chuck
94e848e819
update for libbug.h, console I/O
1996-05-17 19:50:10 +00:00
chuck
a48f9896dd
fix -I
1996-05-17 19:43:48 +00:00
gwr
a0d3ad800b
Add the version line.
1996-05-17 19:39:30 +00:00
chuck
71c9b6faad
pull in a set of changes I forgot to include in initial version
1996-05-17 19:37:59 +00:00
gwr
50ecbc1c84
Rename cs_pclk_div16 to cs_brg_clk to clarify the fact that the
...
Baud Rate Generator (BRG) clock is not necessarily PCLK/16.
1996-05-17 19:32:06 +00:00
chuck
eabb97da52
libbug from Dale Rahn. Revisions by Theo de Raadt and myself.
1996-05-17 19:31:46 +00:00
gwr
eedc5c7e85
Rename cs_pclk_div16 to cs_brg_clk to clarify the fact that the
...
Baud Rate Generator (BRG) clock is not necessarily PCLK/16.
1996-05-17 19:30:34 +00:00
gwr
32e9715743
Rename cs_pclk_div16 to cs_brg_clk to clarify the fact that the
...
Baud Rate Generator (BRG) clock is not necessarily PCLK/16.
Also fix up spacing.
1996-05-17 19:29:37 +00:00
mycroft
24f67ca9da
Regen.
1996-05-17 19:28:28 +00:00
mycroft
e6f188bb5a
Add entries for UltraStor 24f.
1996-05-17 19:27:48 +00:00
chuck
1bd98e4d83
bugcrt from Dale Rahn. With modifications from myself and Theo de Raadt.
1996-05-17 19:26:43 +00:00
cgd
eda3fcd053
fix declaration of main()
1996-05-17 18:29:41 +00:00
abrown
d9277a9036
Add Sun4m power0 power status/control register to GENERIC configuration
1996-05-17 18:02:56 +00:00
phil
04241dc8eb
Add _kernel_text.
1996-05-17 16:38:24 +00:00
thorpej
03fc26050d
Put the vector table _after_ the temp stack.
1996-05-17 16:32:28 +00:00
mark
d7ef096470
Probe for both Atomwide and ANT ether3 podules.
1996-05-17 16:24:03 +00:00
mark
8a9255ea4b
Recognise ANT ether3 podules.
1996-05-17 16:17:21 +00:00
thorpej
503413590e
Changes for the new delay() function.
1996-05-17 15:38:08 +00:00
thorpej
91cb72e7ea
remove the now unused MHz constants, add a declaration for vectab[],
...
and document some globals.
1996-05-17 15:37:07 +00:00
thorpej
a5d6cd3a32
Move the vector table to the data segment.
1996-05-17 15:33:52 +00:00
thorpej
d845719070
Add a new function, hp300_calibrate_delay(), which sets the delay constant
...
based on a model's known CPU speed. cpuspeed value is now in MHz
instead of (MHz / 8).
1996-05-17 15:32:26 +00:00
thorpej
33e1caaf99
Couple of changes:
...
- New delay() function, modeled after sun3/mvme68k delay,
calibrated with a model's known cpu speed.
- Use the defined constants for machineid and ectype
when determining what kind of machine we have, rather
than their expanded equivalents, for clarity.
- Move the vector table to the data segment so that it
can be patched at run-time.
1996-05-17 15:27:26 +00:00
thorpej
bbc04e2011
Define the machineid and ectype constants.
1996-05-17 15:20:55 +00:00
thorpej
b20981c51d
Remove cpuspeed from here.
1996-05-17 15:19:02 +00:00
thorpej
3ad552e74b
Adjust for new DELAY() ... s/DELAY(1)/DELAY(5)/ and lengthen some
...
timeouts.
1996-05-17 15:15:29 +00:00
thorpej
c3fc839395
Change "DELAY(1)" to "DELAY(5)". This is basically equivalent to how
...
the old implementation of DELAY() behaved with small values.
1996-05-17 15:12:30 +00:00
thorpej
f708ced3a3
Adjust for the new values of cpuspeed.
1996-05-17 15:09:39 +00:00
thorpej
be71c11843
Add 2 missing ";"s ... they weren't noticed before because of the
...
old implementation of DELAY().
1996-05-17 15:08:13 +00:00
is
0ffd802ca1
Make "options DRACO" kernels boot on Amiga mainboards, too:
...
- don't change the _lev2intr and _lev6intr entry points in static code
- set the level 2, 5, 5 and 6 interrupt autovectors from initcpu() on DraCo.
1996-05-17 12:56:49 +00:00
oki
6cab72d789
Add a "_kernel_text" symbol, for libkvm. From Gordon Ross.
1996-05-17 12:22:22 +00:00
mark
c2af4f7f17
add 'kernel_text' symbol, for use by kvm_mkdb
1996-05-17 11:00:45 +00:00
chuck
0b05acfe0a
add _kernel_text
1996-05-17 04:38:02 +00:00
briggs
e9d5ab8b3a
Set _kernel_text as recommended by Gordon--set before vector table.
1996-05-17 02:11:47 +00:00
thorpej
7d279a797f
Add a "_kernel_text" symbol, for libkvm. From Gordon Ross.
1996-05-16 23:53:10 +00:00
pk
2d2098c11b
Check for `configuration parent' differently: compare against "sbus"
...
rather than "ledma".
1996-05-16 22:57:32 +00:00
cgd
93bc248f7c
add 'kernel_text' symbol, for use by kvm_mkdb
1996-05-16 22:54:30 +00:00
pk
b9f70e90d8
Add `flags' to the esp entries: disable disconnect & synch negotiation
...
by default until further notice.
1996-05-16 22:47:47 +00:00
pk
e509f9aaeb
Change attributes of `dma', `espdma' and `ledma' (the attributes on the latter
...
two didn't seem to make much sense anyway..) to allow `esp' devices to be
attached to one of `sbus', `dma' and `espdma'.
Remove the wildcarded `espdma?' and `ledma?' attachments of `esp' and `le'
respectively, in favour of `dma?' and `lebuffer?' (but the latter is not
yet implemented), which seems to better match reality: additional SBus
SCSI/Lance boards call themselves `dma' and `lebuffer'.
1996-05-16 22:38:04 +00:00
cgd
a7b26a647b
change the comment after the #endif for the #ifdef _KERNEL changed
...
in the previous commit to be /* !_KERNEL */.
1996-05-16 22:17:49 +00:00
pk
3f1283a92f
Re-arrange code that looks for the esp driver to allow for the fact that
...
any "dma" device (i.e. not just "espdma") can have an OBP child. This is
the case with (at least some) SBus SCSI boards.
1996-05-16 21:45:35 +00:00
pk
50e92fd71d
Use configuration file flags to disable reselection and/or sync negotiation,
...
on a per target basis (until the driver can sort things out on its own).
Test against "sbus" in stead of "espdma" to find out where in the
configuration tree we are: an esp can be the child of a "dma" on SBus
add-on boards.
1996-05-16 20:31:28 +00:00
is
16465b6509
merge.
1996-05-16 20:18:01 +00:00
leo
c4b5129d5d
Add edahdi to the subdirs.
1996-05-16 20:03:53 +00:00
leo
9e086936f3
Remove files commited in the wrong directory. Sorry.
1996-05-16 20:02:33 +00:00
leo
15f7f8dcfd
edahdi, an AHDI partition-id editor
1996-05-16 19:51:25 +00:00
mark
4a03434386
Increased delay time while waiting for acknowledgement following the
...
sending of a keyboard reset code. This fixes a problem on some machine
where the reset code ends is a long loop continually trying to reset the
keyboard.
1996-05-16 19:32:25 +00:00
pk
0b59ea6fbd
Replace a couple of (*foo_p)()'s with direct calls. All instances occurred
...
within in functions that were already mmu-arch specific.
Some formatting nits.
1996-05-16 19:19:33 +00:00
mark
525cc1eebc
Fixed the printing of the podule description from the chunk directory
...
for unrecognised podules.
1996-05-16 19:05:35 +00:00
thorpej
a9bd225c1c
Remove duplicate definitions of the "le" device .. "oops"
1996-05-16 19:00:06 +00:00
mark
0d476cb7d0
bus memory and I/O space access functions/macros, to be used by
...
machine-independent code for more sane access to bus resources.
Defines:
bus_{io,mem}_{map,unmap}
bus_{io,mem}_{read,write}_{1,2,4,8}
bus_io_{read,write}_multi_{1,2,4,8}
functions, and several types to go with them.
Note: The bus_io_*_8 functions are not supported.
1996-05-16 18:08:40 +00:00
chuck
7e8ebd0628
add code so that we can generate a valid disklabel without help from
...
wrtvid.
1996-05-16 17:59:57 +00:00
chuck
0f68df580b
import Theo's prom.h from OpenBSD. includes my recent changes.
1996-05-16 17:55:54 +00:00
chuck
6c21c38077
add some comments to explain what is going on here
...
also add enough info to enable the kernel to create
a valid disklabel without help from wrtvid.
1996-05-16 17:52:51 +00:00
is
d0bd068b17
cleanup comment.
1996-05-16 17:52:22 +00:00
is
ee807dac4c
Correct a -Wall correction.
1996-05-16 17:50:25 +00:00
mark
f38ec079c3
Removed definitions of mouse buttons. These should be obtained from
...
iomd.h and do not need to be duplicated here.
1996-05-16 17:45:10 +00:00
is
eced298a2b
- tell new version of assembler to still accept 851/030 opcodes when compiling
...
with -m68060
- add -Wall -Wstrict-prototypes
1996-05-16 17:07:08 +00:00
is
d3ad3efef5
3 more constants for 68060 access error trap stack frames.
1996-05-16 16:51:30 +00:00
is
9546c59d96
Only declare setconf() #ifdef GENERIC.
1996-05-16 16:10:11 +00:00
oki
a104ff9340
spl0 prototype.
1996-05-16 16:03:35 +00:00
is
d5793c310d
add DCIA prototype.
1996-05-16 16:02:15 +00:00
oki
347edbdf91
fixed gcc -Wall warning.
1996-05-16 15:57:32 +00:00
abrown
4bbf23d04c
Copyright police (s/Harvard University/Harvard College/).
1996-05-16 15:56:54 +00:00
is
5b2b46b306
Fix for unused var warnings in compiler problem workaround.
1996-05-16 15:53:02 +00:00
is
3b8b982891
Naive translation of text to assembler had caused some assembler syntax
...
errors. Fixed them. Thanks to Bernd Ernesti for the early report.
1996-05-16 15:37:49 +00:00
abrown
fe454d89f3
Implement a hack to give pmap a better chance of working on SS10's with
...
no external L2 cache.
XXX this is ugly and will go away when cpu_softc gets done for the 1.3 release
Also, copyright police (s/Harvard University/Harvard College/).
1996-05-16 14:30:54 +00:00
mycroft
0cb9c8e106
Regen.
1996-05-16 07:07:57 +00:00
mycroft
19f4141a4e
Add another ID for BusLogic cards.
1996-05-16 07:04:58 +00:00
mycroft
2001bba8c5
Fix bogus argument to bus_io_unmap().
1996-05-16 06:39:34 +00:00
mycroft
f952cd37cd
Slight redux of EISA crap.
1996-05-16 06:30:22 +00:00
mycroft
1474c6f3a3
Replace STAILQ with SIMPLEQ.
1996-05-16 05:22:28 +00:00
mycroft
f636c54f70
Replace STAILQ with SIMPLEQ.
1996-05-16 05:20:23 +00:00
mycroft
0a21bae649
Add a SIMPLEQ type, cloned from TAILQ, but with only a single pointer in each element.
1996-05-16 05:17:14 +00:00
mycroft
e03577c2a4
Slight adjustments for new version of ahc driver.
1996-05-16 04:00:58 +00:00
mycroft
117bb8ae8b
New version, with changes from Justin Gibbs and Noriyuki Soda.
1996-05-16 03:59:03 +00:00
mycroft
19b0b9502f
New version, with changes from Justin Gibbs and Noriyuki Soda.
1996-05-16 03:44:13 +00:00
thorpej
81ba0732e0
Document the "flags" for the si and sw controllers. While I'm here,
...
do some re-arrangement (cleanup), and document which devices exist on
which machines, so that people can be better informed when they trim
down their kernels. There are a LOT of comments in this file now!
1996-05-16 03:13:27 +00:00
thorpej
81b0485bfe
These haven't been kept up to date.
1996-05-15 23:57:50 +00:00
thorpej
5179f14567
This hasn't been kept up to date.
1996-05-15 23:52:44 +00:00
thorpej
31526bc8e8
These haven't been kept up to date...
1996-05-15 23:50:30 +00:00
is
8fea0bb1e5
fix typo
1996-05-15 21:16:44 +00:00
is
317ba427c1
Now that we imported the 68060 software support package and committed the
...
glue code for it, activate this again.
1996-05-15 21:10:57 +00:00
is
89e428b280
Initial commit of the machine independend part of the glue code for
...
the 68060 software support package.
1996-05-15 21:06:18 +00:00
is
0a68161069
RCS ID police
1996-05-15 19:47:31 +00:00
is
508069c020
Initial import of the Motorola M68060 Software Package Production
...
Release, revision P1.01.
1996-05-15 18:17:45 +00:00
oki
34a55c3e59
fixed gcc -Wall warning.
1996-05-15 16:12:48 +00:00
leo
4001987d06
Make a BOOTX(tra) config file. It suits more people than BOOT and it allows
...
me to keep the BOOT config small.
1996-05-15 12:57:32 +00:00
leo
b4ca145026
Get in sync with the mac68k version of the 5380 driver. Also increase
...
the maximum values of wait_req_xx() functions so some old (slow) scsi-1 drives
will work.
1996-05-15 09:21:29 +00:00
leo
b0db2f6250
French keyboard map (Cedric Moreau).
1996-05-15 09:15:14 +00:00
leo
be7b319e1b
Fix "might be used uninitialized" warnings.
1996-05-15 07:31:55 +00:00
leo
dd8fd30935
Prototype + -Wall fixes.
1996-05-15 07:28:51 +00:00
tls
3052b5a949
fix obscure problem involving ptrace of init
1996-05-15 06:17:47 +00:00
briggs
df57030b9c
Add register use constraints to a bunch of asm() statements.
1996-05-15 03:23:10 +00:00
briggs
1350f9fb7d
print the failure if we do not correctly determine the amount of RAM
...
on the ethernet card.
1996-05-15 03:20:22 +00:00
briggs
65b1980d5a
Invalidate the pte for the peeked va in bus_peek().
1996-05-15 02:51:00 +00:00
briggs
22637072e3
Set mac68k_vidphys outside of get_mapping() so the II and others will
...
get the default value correctly.
1996-05-15 02:34:33 +00:00
mrg
9ad87ec76e
remove some RCS id's we don't need.
1996-05-15 02:13:39 +00:00
thorpej
2cd534aa06
Don't include <machine/intr.h> twice on the Alpha.
1996-05-14 22:23:38 +00:00
thorpej
5dc3777c41
Be more careful with types, and pull in <machine/intr.h>
1996-05-14 22:22:05 +00:00
thorpej
527edf030d
Be more careful with types.
1996-05-14 22:21:05 +00:00
mrg
16b514adc6
KNF some debug statements.
1996-05-14 13:57:29 +00:00
jtc
944b1d4225
Use #ifdef _KERNEL to wrap struct ostat declaration
1996-05-14 13:26:49 +00:00
leo
153c617719
Clear SDEV_MEDIA_LOADED bit on the last close of a device. This causes the
...
geometry info & the disklabel to be reloaded on each 'first-open' of the
device.
1996-05-14 10:38:47 +00:00
leo
c9a8578d2b
Fix gcc -Wall warnings about printf arguments.
1996-05-14 10:28:18 +00:00