jonathan
d4a24f85d6
Support shared Decstation 3100 and Decsystem 5100 baseboard devices
...
using a virtual "ibus" for baseboard devices.
1998-04-19 02:52:45 +00:00
jonathan
53c671e26c
Add locore assembler functions to read mips3 cycle counter, and
...
read and write compare register (controls cycle-driven periodic interrupt).
Use cycle counter for microsecond time on mips3, but for now only on
3min motherboards (5000/150). the MAXINE baseboard microsecond
counter is more stable and I don't ave no 5000/260 to test.
XXX clkread() is a mess, it should be rewritten.
XXX should add nanotime() to give inkernel nanosecond resolution,
and then microtime() reworked to use nanotime().
1998-04-19 01:48:34 +00:00
jonathan
4ea6444493
Decsystem 5100 (aka mipsmate aka kn230) support:
...
* dec_5100.c: sysconf, interrupt, and motherboard (drain writebuffer)
support for 5100.
* support for hardware kludge in 5100: sii DMA buffer is hardware
padded to alternate 32-bit words, not alternating 16-bit halfwords.
* 5100 has no framebuffer, console is wired to serial port 0.
With ibus support, boots as far as exec'ing init, and hangs.
1998-04-19 01:27:02 +00:00
pk
c1a4f8c8ed
Define `xbox'.
1998-04-18 19:03:00 +00:00
pk
90b5c246c6
Skeleton code for the SBus expander box.
1998-04-18 19:00:17 +00:00
thorpej
2b6154a68c
Add PCI IDE.
1998-04-18 01:19:40 +00:00
thorpej
792e89a201
Add PCI IDE goop.
1998-04-18 01:19:08 +00:00
thorpej
4fc79b8fd3
First cut at PCI IDE compat interrupt support for the EB164 systype.
...
PCI IDE is found on the AlphaPC 164SX's Cypress PCI-ISA bridge.
1998-04-18 01:18:37 +00:00
thorpej
574b87a792
Initialize the PCI IDE compat interrupt PCI method to NULL; PCI IDE
...
compat interrupts are not currently supported on these platforms.
1998-04-18 01:12:23 +00:00
thorpej
78c7ebb2d0
Add a second Alpha-specific pci_chipset_tag_t method for establishing
...
PCI IDE compat interrupts. Note that this function is optional, and
platform-specific code may initialize the pointer to NULL.
1998-04-18 01:10:54 +00:00
thorpej
a5f006fb5f
Fix a typo.
1998-04-18 01:09:20 +00:00
thorpej
783382095c
Machine-dependent bits for PCI IDE. This redirects PCI IDE compat interrupt
...
goop to the appropriate platform-dependent code.
1998-04-18 01:08:52 +00:00
mark
f9042ff05b
Guard the PS/2 mouse attachment and ARM7500 IOC check with the
...
CPU_ARM7500 macro.
1998-04-17 18:44:09 +00:00
veego
8a9498f09a
Don't use an 'register char' as an array index, change it to an int.
1998-04-17 17:57:08 +00:00
veego
d15b06459b
Add missing int after an register.
1998-04-17 17:38:14 +00:00
drochner
543407f7ee
use the mi header (dev/pckbc/pckbdreg.h)
1998-04-17 13:09:23 +00:00
drochner
fa82ea6398
it's mi now (dev/isa)
1998-04-17 13:06:48 +00:00
mjacob
e77859a612
Hmmm... handle the case where there is no keyboard configured (panic
...
if the console selection is asking for it). Also add the stuff that
was missing from dec_kn300.
1998-04-17 02:45:19 +00:00
drochner
6af8040a5c
-"spkr" now attaches to "pcppi"
...
-"le at isa" is split into "depca", "nele" and "bicc"
1998-04-16 22:01:41 +00:00
is
e61d6bdb82
Dont define splserial here... its now different from spltty.
1998-04-16 21:28:00 +00:00
drochner
bf23ba7b87
add a device node for "sysbeep at pcppi"
1998-04-16 20:16:28 +00:00
drochner
46f77d75da
Make sysbeep() use dev/isa/pcppi. (sysbeep0 at pcppi?)
...
Remove findcpuspeed() - it's useless and was commented out for a while.
1998-04-16 20:15:10 +00:00
thorpej
815703e5ec
Make function names in printfs and panics consistent.
1998-04-16 19:50:55 +00:00
thorpej
a048ee73ca
Fix a whitespace botch.
1998-04-16 19:40:56 +00:00
thorpej
2615a1d8d3
Allow device 8 (the SIO) to have its interrupt mapped; there might be
...
a PCI IDE controller on one of the PCI-ISA bridge's functions (e.g.
AlphaPC 164SX).
1998-04-16 19:24:24 +00:00
drochner
3cc1fe831c
count allocated screens correctly
1998-04-16 12:52:42 +00:00
thorpej
c72ac312a7
Add pcppi/spkr drivers, and use DHCP for NFS boots.
1998-04-16 04:11:50 +00:00
thorpej
f92ae39153
Make this compile if a Rawhide isn't configured.
1998-04-16 04:04:15 +00:00
drochner
f44d3a08e5
"spkr" is now MI. Keep this file for compatibility.
1998-04-15 21:53:47 +00:00
mjacob
512e80082b
add an AlphaServer 4100 Specific config file
1998-04-15 21:53:25 +00:00
drochner
ebefb51112
cdev_{wsdisplay,spkr}_init() are now in sys/conf.h
1998-04-15 21:52:14 +00:00
drochner
abce54eaa2
spkr stuff is now in sys/conf.h
1998-04-15 21:48:51 +00:00
drochner
70702ea730
"spkr" attaches to "pcppi" now.
1998-04-15 21:46:23 +00:00
drochner
37db4134a0
VGA and spkr are now MI.
1998-04-15 21:44:39 +00:00
mjacob
a8d3df00ed
oops- add missing include
1998-04-15 21:42:24 +00:00
drochner
3ae87f413f
"spkr" is now mi. Keep this file for compatibility.
1998-04-15 21:40:27 +00:00
drochner
7689c5d866
remove unneeded stuff
1998-04-15 21:39:01 +00:00
drochner
816be100e0
Remove initialization macros for wsdisplay / spkr - they are in mi
...
sys/conf.h now.
1998-04-15 21:31:40 +00:00
mjacob
afeea01bbd
add back in display console stuff
1998-04-15 21:29:03 +00:00
drochner
2aa1ce8196
VGA and spkr are now MI.
1998-04-15 21:27:47 +00:00
drochner
b7c6c315ea
convert to new wscons
...
(pcppi->pckbc, pms->psm, wscons->wsdisplay)
1998-04-15 21:19:21 +00:00
drochner
b98513c4ff
convert to mi wscons
1998-04-15 21:15:08 +00:00
drochner
b9d78308c1
tell drivers that this port knows about the mi wscons stuff
1998-04-15 21:12:45 +00:00
drochner
534775fe76
explicitely initialize console keyboard
1998-04-15 21:06:46 +00:00
drochner
c5ea534f57
Switch the console to polling mode before accessing the keyboard with
...
interrupts disabled.
1998-04-15 20:51:10 +00:00
drochner
fba6e5e23a
update for new mi wscons, add ISA speaker
1998-04-15 20:48:52 +00:00
drochner
584f3e8aa0
Adapt PCI console selection to new mi drivers.
1998-04-15 20:46:34 +00:00
drochner
971dd06182
Adapt ISA console selection ti new mi drivers.
...
(was broken anyway, a "++" was missing somewhere)
1998-04-15 20:43:07 +00:00
mjacob
70e72d5545
redo misleading comment (thanks, soren)
1998-04-15 20:37:39 +00:00
drochner
90fc55bdf9
use mi wscons and device drivers
1998-04-15 20:35:37 +00:00
thorpej
f82e238b10
Don't need "delaybah" in the attach args anymore.
1998-04-15 20:11:10 +00:00
thorpej
ba1ef83a1e
Don't use the ISA `delay port', since it no longer exists.
1998-04-15 20:10:52 +00:00
mjacob
bd2e0fee32
delay handle was removed
1998-04-15 19:49:19 +00:00
leo
f7d6d7c9b8
Don't clear the 'd_partitions' before starting to read the disklabel. Some
...
filesystems (iso9660) depend on the info they had already setup there.
1998-04-15 09:02:06 +00:00
leo
ae019435eb
Probe the 'mainbus' before the other busses. This gives less surprises when
...
adding things like SCSI controlers to the pci-bus.
1998-04-15 09:00:19 +00:00
mjacob
6cc22e724e
Hmmm- how did that happen- I missed a merge
1998-04-15 01:18:17 +00:00
mjacob
cddc0bf326
add Alpha 4100 support
1998-04-15 00:53:53 +00:00
mjacob
6ad4ba8370
some cleanup
1998-04-15 00:51:00 +00:00
mjacob
aed073a77f
add Alpha 4100 support
1998-04-15 00:50:14 +00:00
mjacob
0ba76b38c8
spurious interrupt notification and finally adding vmstat -i support
1998-04-15 00:49:58 +00:00
mjacob
0229740b5e
removal of unneeded define
1998-04-15 00:49:17 +00:00
mjacob
5f59df9630
oops on byte enables for TurboLaser systems
1998-04-15 00:48:58 +00:00
mjacob
4fa71d82a5
add Alpha 4100 support
1998-04-15 00:46:57 +00:00
mjacob
17ec1fbf11
clarification of comment
1998-04-15 00:46:41 +00:00
mjacob
65e5c41fad
do not cia include files here
1998-04-15 00:46:17 +00:00
mjacob
d3f1c5b8d8
add Alpha 4100 support
1998-04-15 00:45:43 +00:00
thorpej
164f56220e
Add support for the Cypress CY82C693 PCI-ISA bridge. This bridge is more or
...
less like an Intel SIO except that the ELCR registers are accessed differently
than on the Intel SIO.
XXX This code needs to be split up into bridge front-end and PIC back-end
XXX pieces.
1998-04-14 22:31:17 +00:00
thorpej
4c01c3c48e
Pass the pci_chipset_tag_t to sio_intr_setup(). XXX This code should be
...
rearranged so that other non-PCI-but-in-all-other-ways-ISA-PIC-like
devices can share code.
1998-04-14 22:20:59 +00:00
is
c61f5c0cc5
Uhm... looks like I forgot this when doing the MACHINE_NEW_NONCONTIG stuff.
...
Sorry folks.
1998-04-14 20:18:08 +00:00
frueauf
f7a146be7b
Add isa/pcvt to SUBDIR, this will install /usr/include/machine/pcvt_ioctl.h
...
which is needed by our default xsrc on i386. Closes pr 1391.
1998-04-13 21:54:30 +00:00
ragge
470ec523f2
Wall cleaning.
1998-04-13 12:15:56 +00:00
ragge
4bcd8130fe
t_wopen fixes.
1998-04-13 12:14:42 +00:00
ragge
eaeee62af2
Wall cleaning.
1998-04-13 12:10:26 +00:00
scottr
0dfa8582c5
Make type explicit for egcs, from Erik Bertelsen in PR 5287.
...
Dump the register qualifier while we're here, as suggested in the PR.
1998-04-13 02:51:32 +00:00
scottr
d87f21702e
Make type explicit for egcs, from Erik Bertelsen in PR 5288.
1998-04-13 02:36:24 +00:00
scottr
9a7810a03e
Make type explicit for egcs, from Erik Bertelsen in PR 5288.
...
While we're here, kill register qualifier and other KNF.
1998-04-13 02:35:21 +00:00
tv
b21bfbde11
Add -Wno-main conditional on compiler being gcc 2.8 or egcs. (This adds
...
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
1998-04-12 23:47:41 +00:00
mjacob
e40e2ff2d0
A little buglet: softc for pceb is same as sio- so declare it as such.
...
By not doing so, a very obscure bug followed where the config search
stuff stopped at the bridge (pceb) and didn't even call match for the
two Qlogic ISP cards that followed.
1998-04-12 08:32:19 +00:00
is
4e23fff56a
Make ser.c compile again (preliminary release). It needs still a lot of
...
cleanup, but at least mainstream usage should be possible again (worked
for me 5 minutes ago).
1998-04-11 19:30:56 +00:00
is
da0b5bf913
amiga_ttyspl -> amiga_serialspl (and keep ttyspl constant at 4 again).
...
(Part of this change slipped in with my last machdep commit; thanks to
Matthias Scheler for pointing this out).
1998-04-11 18:28:33 +00:00
matthias
2fe02dea17
Changes for kernels compiled with -mrtd:
...
locore.s:
- cpu_switch "returns" to proc_trampoline after cpu_fork. cpu_switch is
called with an argument, remove it from the stack when not compiled
with -DMRTD.
- use KENTRY instead of ENTRY for all functions called from C.
- when calling C code, don't clean up the stack when compiled with -DMRTD.
- need to split fusubail into fubail and subail, because fu and su
take different number of arguments.
machdep.c:
- set sf_p when dumping
- new function do_softclock (that just calls softclock) because softclock
doesn't take an argument.
mainbus.c:
- establish softclock interrupt to call do_softclock
trap.c:
- trap() and syscall() allways use std C calling conventions.
- need to split fusubail into fubail and subail, because fu and su
take different number of arguments.
- make child_return take only one argument like the other functions
"called" via cpu_set_kpc.
vm_machdep.c:
- set sf_p in cpu_fork.
1998-04-11 17:44:11 +00:00
matthias
bd4f1b48a9
cpu_switch is called with an argument. Reflect this in the switchframe.
1998-04-11 17:30:40 +00:00
mhitch
11b4024ccf
Initialize proc0.p_addr so we don't dref NULL in trap(). [From hp300 locore.s]
...
Fixes PR 5281.
1998-04-11 16:13:57 +00:00
cgd
edcb9b60e1
current_spl_level should be initialized to _SPL_HIGH.
1998-04-10 20:29:02 +00:00
mhitch
18114765d8
Fix a bug I think I introduced long, long ago. The bug would only show
...
up on systems that have Zorro I/O space allocated outside the Z2 I/O
region, and then only if kvm usage is high enough to begin allocating
pages already mapped for hardware mappings. Found and fixed by Niklas
Hallqvist on OpenBSD.
From niklas@cvs.openbsd.org:
Yay! This fixes a bug that has been there since day one of the amiga port.
We have never protected the kvm area that maps Zorro I/O registers in the
Z2 memory space from being allocated by the kmem_* routines. Lately kvm
usage has increased and we have needed more kvm allocated than earlier thus
this area have got allocated with random results. Most often resulting in
MMU fault panics, but also in hangs. This bug has stalled the amiga port
release builds for several weeks, but now I *hope* the amiga will have a
chance to be built and tested in time for 2.3.
1998-04-10 15:59:35 +00:00
leo
85966e661a
Use MI wdc-driver.
1998-04-10 10:37:04 +00:00
leo
bc2d7f642e
le_bus.c is dependent on pci & isa.
1998-04-10 10:28:47 +00:00
leo
bc9ebf17a7
Major overhaul of the atari bus_space implementation.
1998-04-10 08:19:53 +00:00
mark
af29a19dd0
Fix the interrupt number for the PS/2 mouse port on the ARM7500
...
(from David Forbes).
1998-04-10 06:54:30 +00:00
mark
447623df53
Correct the values of IOMD_MSDATA and IOMD_MSCR as they are 4 times too
...
big. Spotted by David Forbes.
1998-04-10 06:53:08 +00:00
scottr
ff2ed23c61
If we know the location and size of the on-board video buffer,
...
don't bother to try and suck the information out of the Mac OS page
tables.
1998-04-10 02:56:56 +00:00
tv
482063559a
.y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
...
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
pk
98e9f557c2
No need to export bus_intr_establish().
1998-04-07 20:43:58 +00:00
pk
beb02e6b82
Use bus space methods to implement the vme bus space functions.
1998-04-07 20:21:55 +00:00
pk
b333d0bb62
The bus space functions now take care of "pass-through" methods.
1998-04-07 20:20:03 +00:00
pk
fbc1fe8213
bus_space_mmap() has changed to take a `bus_space_handle_t *' argument,
...
like other bus space methods.
1998-04-07 20:18:17 +00:00
pk
3f455e21d9
The bus space functions now take care of "pass-through" methods.
1998-04-07 20:11:54 +00:00
pk
5ecf4dce67
Remove old mapdev() function prototype.
1998-04-07 20:08:29 +00:00
pk
286472fe4d
* Pass the bus tag instead of just the cookie to all bus space methods.
...
* In the bus tag structure, keep a reference to the parent bus.
* Express all bus space methods as inline functions in stead of macros
and use the parent bus tag reference to find the nearest "upstream"
bus that implements the method.
1998-04-07 20:07:23 +00:00
pk
dd3352e3e3
bus_space_*() functions now have the bus tag as first argument.
...
Remove old mapdev() function that is no longer used.
1998-04-07 19:57:37 +00:00