Commit Graph

684 Commits

Author SHA1 Message Date
briggs b1d771eeb5 Simplify nubus interrupt routines a bit. 1995-09-28 04:11:18 +00:00
briggs a9f0a2f9c4 Fix PR 1514 from Walter Ruetten. 1995-09-28 03:15:54 +00:00
briggs 5a0bebbc54 Patch from Theo to finish clearing 040 kernel page tables. 1995-09-27 04:16:54 +00:00
briggs 232169396a Bullet-proof a little.
Make some more pdma code conditional on USE_PDMA.
Handle transfers of size > MIN_PHYS.
1995-09-27 03:38:57 +00:00
briggs 4d52f57876 Add Technology Works ethernet card. From
Kazunari Nakamura <kazu@nkk.co.jp>.
1995-09-24 14:13:56 +00:00
briggs e23598f24f Much improved pdma transfers.
Still not nearly as fast as FWB's drivers under the MacOS.
Uses the "blind" transfer method instead of polled pdma.
1995-09-23 01:11:42 +00:00
briggs 01be7f2b8c Need sys/mount.h for fhandle_t. 1995-09-21 11:27:43 +00:00
briggs 4a9cf8407c Fix a warning. 1995-09-21 11:13:27 +00:00
briggs fbd9919364 Fix warning and use __P for prototypes. 1995-09-21 03:36:25 +00:00
briggs b895726b5c MACCCLASSIC is Color classic. And it's more like an LC than hopeless. 1995-09-21 01:56:31 +00:00
briggs de36f970fb Fix a few oversights. From Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de> 1995-09-20 13:03:21 +00:00
thorpej c9dfdd20b6 Compile the kernel with -Werror and -fno-builtin. 1995-09-19 23:48:41 +00:00
thorpej 7d7396c414 Make system calls conform to a standard prototype and bring those
prototypes into scope.
1995-09-19 22:53:47 +00:00
briggs 516ddf511f Wrap only the message in ifdef DIAGNOSTIC. 1995-09-19 03:18:15 +00:00
briggs 909842fb1f Correct jClkNoMem address for C650 from
nick@csua.berkeley.edu via Walter Ruetten.
1995-09-18 13:55:09 +00:00
briggs e8dbcda856 Do not define MIN_PHYS here--it is m.d.. 1995-09-18 13:52:43 +00:00
briggs cb5010a4fe Fix a spelling slight. Grab the faulting address if nofault in bus error. 1995-09-18 13:51:25 +00:00
briggs 927d165081 Optimize the via interrupt processing routines a tad. From
chas@ohm.nrl.navy.mil (Charles J. Williams).
1995-09-18 03:15:43 +00:00
briggs cb4eb50b28 Change HwCfgFlags4 to something a bit more mnemonic. 1995-09-17 21:28:33 +00:00
briggs 1c8c505974 Fixes from Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de>
to avoid panic()s when we read the PRAM values while ROM
vectors are missing.
1995-09-17 18:51:40 +00:00
briggs b528dcf5c2 Fix from Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de>
to prevent his last changes from causing a panic if some
values are not filled in in the ROM vector table.
1995-09-17 18:50:17 +00:00
briggs c4250f7102 Add rom vector for LCIII from Peter Kohler (kohler@ife.ee.ethz.ch)
via Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de>.
1995-09-17 05:22:57 +00:00
briggs a106882a85 Only use PIO instead of PDMA if DRIVER_NOINT. 1995-09-16 18:22:33 +00:00
briggs ccaff4431c Simplify doboot(). 1995-09-16 15:35:05 +00:00
briggs ea4e385abd Map in the VIA space for the bloody Mac II ROMs that directly reference
a hardware address.  Also map in the ROM space before we call doboot().
1995-09-16 15:33:54 +00:00
briggs 6ed4261a1b Fix segment table reference bug (from Michael Hitch). 1995-09-16 15:09:28 +00:00
briggs a8b0260a05 Sync. with atari ncr5380.c -- mainly whitespace changes. 1995-09-16 15:06:55 +00:00
briggs 214a1bac9f Fixes from walter@ghpc8.ihf.rwth-aachen.de (Walter Ruetten)
to use ROM routines to read and write PRAM times, etc..
1995-09-16 12:35:53 +00:00
briggs bee931c117 Set timezone to 0. The booter's GMT bias should be used, instead. 1995-09-16 12:33:06 +00:00
briggs 2e06f3f2bb More changes from walter@ghpc8.ihf.rwth-aachen.de (Walter Ruetten)
for correct handling of timezones and PRAM <-> system time conversion.
1995-09-16 12:31:13 +00:00
briggs 4dc81200f5 Rename scsi_main_irq() to pdma_ready().
Missed a few ATNs in last patch.  (pointed out by Leo).
Raise timeout from 100 to 1000.  From Leo.
1995-09-16 11:45:18 +00:00
briggs 048e948791 As Leo pointed out, my last change was not safe. This one should be.
I added two new bitfields to ncr_softc.  They flag which devices have
been selected, and which ones have failed to go to message out when
selected with ATN.  If a target fails to go to message out the first
time it is selected, it goes into the latter bitfield.  If it fails
thereafter, we treat it as we did before.
1995-09-15 01:52:18 +00:00
briggs a0d6a95720 indentify.
Bring in a few changes from Walter Ruetten (walter@ghpc8.ihf.rwth-aachen.de).
Assume that PRAM time - GMT bias (set in the booter) is the current time
in UTC.
1995-09-14 23:44:12 +00:00
briggs 1b34b69c93 Gah... The Asante SCSI/ethernet box doesn't answer the ATN request
for a 'MESSAGE OUT' phase, so add support in scsi_select() for the
phase to be either 'MESSAGE OUT' or 'COMMAND'.
1995-09-14 02:54:05 +00:00
briggs d8ab74fcf2 Honor new MACH_CLASSIIvx. 1995-09-14 02:49:11 +00:00
briggs 13c1f2d48b Shuffle MACH_CLASSes around a tad and add IIvx as a seperate class because
it may have a different method for accessing the 'via2' functions.
1995-09-14 02:48:09 +00:00
briggs 9c61c22d66 Clean up message a tad. 1995-09-14 02:43:51 +00:00
briggs 18a11cecc7 Update a comment. 1995-09-12 22:52:08 +00:00
briggs d8dc3d91c0 Update for Leo's changes. 1995-09-12 22:31:45 +00:00
briggs 1ae7af5b59 Updates from Leo's changes in the atari port. 1995-09-12 21:20:18 +00:00
briggs 639f90ef6e Update from Leo's changes. 1995-09-12 21:05:58 +00:00
briggs c91abc3e61 Remove infinite loop per Leo and Mycroft. 1995-09-05 11:21:34 +00:00
briggs 19a99aa395 Get softc as parameter in interrupt function, using new changes from
via.[ch]
1995-09-04 05:07:16 +00:00
briggs 129ca2cea9 Make VIA2 interrupts pass an argument in and let the scsi_register_*_intr
functions use that, too.
1995-09-04 05:05:58 +00:00
briggs 4f76655592 Fix a goof in the latest changes. 1995-09-04 05:05:11 +00:00
briggs 02883e7341 Remove an extra "talk" command--from Ken Nakata <kenn@remus.rutgers.edu> 1995-09-04 02:50:57 +00:00
briggs 86d6e121cd Add support for Extended Apple Mouse Protocol from
Ken Nakata <kenn@remus.rutgers.edu>.
1995-09-03 20:59:53 +00:00
briggs b394d7fc7d Enable ADB interrupts unconditionally if not using setup_egret(). 1995-09-03 20:47:21 +00:00
briggs de4100b643 Clean up a bit. 1995-09-03 14:54:31 +00:00
briggs 761b3a8340 Clean up some. 1995-09-03 14:51:38 +00:00
briggs 30c554fc9d Changes from Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de>.
This forces the need for booter version 1.8.
1995-09-03 14:37:16 +00:00
briggs 745cb60f16 Note that this is now an obsolete driver. 1995-09-03 03:39:38 +00:00
briggs e9a9533544 Make the new m.i. scsi driver the default. 1995-09-03 03:37:32 +00:00
briggs 166af00381 Make a local copy of the atari m.i. scsi driver sources for the time
being.  Some people aren't supping arch/atari and this allows those
people to get the sources.
1995-09-03 03:36:35 +00:00
briggs a7783604fd Optimize this some. Still seems slower than it ought to be.
Register interrupt functions with via.c.
Clean up somewhat.  Turn off DEBUG.
1995-09-02 19:29:42 +00:00
briggs 4ed102bbd4 Optimize accesses to VIA2 a bit.
Force SCSI driver to register interrupt functions and remove default
handlers.
Bring in a few changes from
Walter Ruetten <walter@ghpc8.ihf.rwth-aachen.de>--more to come later.
Define VIA interrupt functions as returning void, not long.
1995-09-02 19:27:34 +00:00
briggs 42d7c233d5 Very minor cleanup. 1995-09-02 05:44:07 +00:00
briggs 9f203a792f Weren't quite ready for the last change. 1995-09-02 05:41:12 +00:00
briggs e60752e507 Rearrange a bit. 1995-09-02 05:35:59 +00:00
briggs bee422d998 DTRT. This should be considered the base version of the file. 1995-09-02 03:19:37 +00:00
mycroft 29053c58b2 SA_ONSTACK --> SS_ONSTACK 1995-09-01 20:05:59 +00:00
briggs b6fb219037 Process via2/rbv interrupts from low bit to high bit. 1995-09-01 04:10:11 +00:00
briggs e46e8e7a57 A first pass at a scsi driver based on the Atari ncr5380{reg.h,.c} code. 1995-09-01 03:43:49 +00:00
briggs d3930dd627 In child_return(), pass oticks of 0 to userret() instead of p->p_sticks to
avoid slighting the child of a timer tick if it gets one after starting.
Thanks go to cgd for noticing this.
1995-08-31 03:22:55 +00:00
briggs 503d3c4927 Add constants for CSI's communications card. 1995-08-25 21:20:57 +00:00
briggs ac0af4229f Change VIA2:vPCR setting to allow scsi IRQ and DRQ. 1995-08-25 02:56:41 +00:00
briggs 1ed5c0babc Some code to support a vector passed in from booter 1.8. 1995-08-24 04:27:16 +00:00
briggs 0484bdaf59 Don't panic on NMI and only take notice if DDB. 1995-08-24 04:25:07 +00:00
thorpej 66dcd8fd69 Add entries for the ccd. 1995-08-17 17:40:42 +00:00
briggs 68b61ea1ad Fix comments. .space 0x1000 was accidentally left commented so it
still is--just explicitly, now.
1995-08-16 13:18:24 +00:00
briggs 37004a19e4 Missing cast and semicolon in last. 1995-08-16 05:17:31 +00:00
briggs 665a6a78bc Load the old MacOS ROMBase value back in before we jump to reset. 1995-08-16 04:48:34 +00:00
briggs ae51ffca30 Always fail when probed--until this driver works. 1995-08-14 03:55:28 +00:00
briggs 64ea04b1d0 Be more vocal about interrupts that we don't expect.
Include ncrscsi.h and ncr96scsi.h.
1995-08-14 03:16:07 +00:00
briggs 7d55e1196e Document spl()s a bit, order the splfoo()s in splX() order. 1995-08-13 01:52:16 +00:00
mycroft 7a9cad50cd Replace splnet() with splsoftnet(). Add splnet(). Make splimp() > spltty(). 1995-08-13 00:23:56 +00:00
mycroft 80d7b0695a minphys() functions really should return void. 1995-08-12 20:30:45 +00:00
briggs 52e968da1a Fix oversight in last. 1995-08-12 18:48:47 +00:00
briggs 1fd03600dd Get rid of cpu040 for good. 1995-08-12 04:08:29 +00:00
briggs 8f58d57321 Don't fake these values. 1995-08-11 17:48:19 +00:00
briggs 72d557cf87 The serial console works again (at least on the Q700). 1995-08-11 03:29:07 +00:00
briggs d192d70a87 Note that we've been initialized. 1995-08-11 03:02:04 +00:00
briggs 100380f075 Do the serial console a bit better (still has problems). 1995-08-11 03:00:15 +00:00
briggs 81cc5998a1 Missing increment operator for if_opackets in last change. 1995-08-09 12:16:10 +00:00
briggs b4eecb5362 We need to set cpu040 for just a while longer. 1995-08-09 03:25:25 +00:00
briggs 53af1e73b8 Make sure we don't remap video/serial before we're done writing to it. 1995-08-09 03:23:57 +00:00
briggs 71b21ba74e Don't go bonkers if we don't have a real swap device. 1995-08-09 03:22:50 +00:00
briggs dbdcebe34b Fix a few 040-isms, remove an old comment, and add a few things for the future. 1995-08-09 03:21:59 +00:00
briggs 3b5979d56c Remove cpu040 use from here. It should only be used at boot time.
Take out old method for determining load address for IIci/si.
Set all but IIsi/ci to use a clock initialization value of 115200 (not
the baud rate... ;-).
1995-08-06 04:39:56 +00:00
briggs 110cf98100 Get rid of int_video_{start,length} and wierd nubus mapping. 1995-08-04 03:21:46 +00:00
briggs 70065c2ed5 Nuke int_video_start in favor of consistent use of mac68k_vidlog.
Don't find the internal video more than once.
Probe for internal video before nubus instead of after.
1995-08-04 02:55:06 +00:00
briggs fb5e0a34bb Be consistent and use mac68k_vidlog instead of int_video_start. 1995-08-04 02:47:31 +00:00
briggs b0a1bd6e17 Use panic() instead of printf();Debugger(); 1995-08-02 11:53:02 +00:00
briggs a76e2adfab Get rid of reference to Debugger(). 1995-08-02 11:50:43 +00:00
briggs f60a2bbccf Add kludge for LC video and change IIvx to assume 1MB of VRAM if we can't
figure out how much there really is.
1995-08-02 04:15:41 +00:00
briggs fc8739097d Fix signed/unsigned gaff in last.
Bring up-to-date with latest rash of changes to if_ed.c.
1995-07-30 21:39:17 +00:00
briggs ff5fa674dd Fix the internal video probe again. 1995-07-30 21:35:00 +00:00
briggs 80cd97e743 delay(7) instead of delay(20) seems sufficient 1995-07-30 21:30:57 +00:00
briggs cf76e90671 Differentiate printf for illegal instruction/fpu traps in kernel mode. 1995-07-30 19:18:28 +00:00
briggs 139f62c079 Add support for Farallon from Brian Gaeke (brg@dgate.org). 1995-07-30 13:38:04 +00:00