Commit Graph

1630 Commits

Author SHA1 Message Date
scottr f8a4876874 Add on-board video information for the LC III, and a guess
at the LC II based on similar machines mentioned in the dev note.
1998-08-27 07:31:34 +00:00
scottr 2d981dac3b The return value from intr_dispatch() is no longer necessary. 1998-08-25 04:03:56 +00:00
scottr 2aa56b1c61 Implement splaudio(). 1998-08-25 03:59:01 +00:00
scottr 9237e1254f Take a stab at support for the PowerBook 190/190cs, based on comparison
with other PowerBook hardware.  They seem to be most closely related
to the PowerBook 500-series, but have an internal IDE disk instead.

NOTE:  only external SCSI disks have a chance of working, at this
point.  Nothing has officially changed with regard to IDE support
(yet).
1998-08-22 06:06:05 +00:00
scottr f234add115 Add gestalt machine type for the PowerBook 190/190cs. 1998-08-22 05:47:37 +00:00
scottr 33395d926e Remove an extraneous printf when attaching a Valkyrie. 1998-08-21 13:46:31 +00:00
scottr b27d106197 Match grf_obio devices correctly for the 58x/63x. 1998-08-20 13:58:04 +00:00
briggs 45bcd0fe79 Update comment after cut and paste. 1998-08-17 15:04:51 +00:00
scottr 19a5912587 Remove the 'fast' return from intrhand(). 1998-08-16 22:29:03 +00:00
scottr da5ce9387c Remove semicolons from the end of bus_space_*_multi_*(). From Ken Nakata
in PR 5965.
1998-08-16 05:36:17 +00:00
scottr 4b02e4134c Initialize and enable an interrupt handler, which currently doesn't
actually do anything.
1998-08-15 07:42:50 +00:00
scottr 18b4602fd5 Add a comment regarding the broken behavior of the DAFB v7. 1998-08-13 13:45:33 +00:00
scottr 53907fe5a1 Support Cabletron Ethernet card, from John Marohn in PR 5762. 1998-08-12 07:19:09 +00:00
scottr 5a94869995 New framework for handling processor interrupts, derived in part from
the hp300 port.

- Interrupts 3-6 use this immediately.  Interrupt 7 is a special case,
and the VIA interrupts (1 and 2) will be addressed when that code is
rototilled.

- Modify the zs front end to register with the appropriate interrupt
controller:  through the PSC on the AV Quadras, and direct to
interrupt 4 on the rest.  Arrange to have the appropriate zsc_softc
supplied to us at interrupt time.

- Modify the direct ADB driver (and its PowerManager cousin) to call
intr_dispatch(), rather than zshard().  XXX This is a kludge, but at
least limits the brokenness to the ADB drivers, now.

As a side effect, this should fix PR 5590.  Thanks to Bill Studenmund for
correctly determining the cause of the problem reported there.
1998-08-12 06:58:42 +00:00
scottr 3e40b6ff15 A simple, obvious optimization, now that the loop has been
removed from zshard().  Pointed out by Bill Studenmund.
1998-08-12 06:55:24 +00:00
scottr 7f2ca20fd9 New framework for handling processor interrupts, derived in part from
the hp300 port.

- Interrupts 3-6 use this immediately.  Interrupt 7 is a special case,
and the VIA interrupts (1 and 2) will be addressed when that code is
rototilled.

- Modify the zs front end to register with the appropriate interrupt
controller:  through the PSC on the AV Quadras, and direct to
interrupt 4 on the rest.  Arrange to have the appropriate zsc_softc
supplied to us at interrupt time.

- Modify the direct ADB driver (and its PowerManager cousin) to call
intr_dispatch(), rather than zshard().  XXX This is a kludge, but at
least limits the brokenness to the ADB drivers, now.

As a side effect, this should fix PR 5590.  Thanks to Bill Studenmund for
correctly determining the cause of the problem reported there.
1998-08-12 06:52:56 +00:00
scottr b2dc905572 The Performa/LC 58x have a Valkyrie, not the DAFB. 1998-08-12 06:50:37 +00:00
scottr 69c09f978c Be ever so slightly more careful when determining where and what size
the frame buffer is.
1998-08-12 06:48:05 +00:00
scottr 7d09ad09b4 New framework for handling processor interrupts, derived in part from
the hp300 port.

 - Interrupts 3-6 use this immediately.  Interrupt 7 is a special case,
   and the VIA interrupts (1 and 2) will be addressed when that code is
   rototilled.

 - Modify the zs front end to register with the appropriate interrupt
   controller:  through the PSC on the AV Quadras, and direct to
   interrupt 4 on the rest.  Arrange to have the appropriate zsc_softc
   supplied to us at interrupt time.

 - Modify the direct ADB driver (and its PowerManager cousin) to call
   intr_dispatch(), rather than zshard().  XXX This is a kludge, but at
   least limits the brokenness to the ADB drivers, now.

As a side effect, this should fix PR 5590.  Thanks to Bill Studenmund for
correctly determining the cause of the problem reported there.
1998-08-12 05:42:44 +00:00
scottr 63526c1ff1 New and improved console framebuffer initialization and autoconfig. This
resolves a great many issues, including Performa 58x interrupt handling
and offset displays on some models.

Programs that depend on the old (pre-NetBSD 1.1) grf interface may break.
That's actually a separate issue uncovered by this code, not caused by it.
1998-08-12 02:36:36 +00:00
briggs b3e5811a08 Patch from Takashi NAKAMURA <QZM00427@nifty.ne.jp> to support the
Contour 3-button mouse from the Contour Design Corp.
It looks like a Microspeed mouse.
1998-08-11 20:07:59 +00:00
briggs 64e4a1fa7d Support video interrupt for GrandVimage 17iL video card. 1998-08-09 18:19:09 +00:00
thorpej 3ff8e6493a Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
veego 1b46ebe1d9 Add elf_machdep.h to the INCS list. 1998-07-12 17:53:29 +00:00
thorpej 639cc899cf Basic elf_machdep.h for m68k; doesn't include relocations, yet. 1998-07-12 01:17:58 +00:00
scottr 7b68890c7f Fix a problem with the reworked reboot code on the IIci: don't try to
reference variables after the MMU is disabled.
1998-07-09 06:02:50 +00:00
thorpej 6fb9a8addf Define one page free list, and put all pages on it. 1998-07-08 04:39:34 +00:00
scottr 6e47b1c654 mac68k/obio/if_mc_obio.c needs hide/integrate defines, too. Moved back to
if_mcvar.h.
1998-07-08 04:18:53 +00:00
scottr d5b30c1cb1 Revert last change. 1998-07-08 04:16:05 +00:00
scottr 6d4420e5b2 Fix compile errors: #if DDB -> #ifdef DDB 1998-07-07 03:04:34 +00:00
scottr 6124345626 Account for an offset frame buffer address. This change is somewhat
different than the one supplied by Paul Goyette in PR 5702, but
has the same effect.
1998-07-07 00:33:39 +00:00
jonathan 9bf2ba0928 Garbage-collect ``needs-flag'' from attributes ether, fddi, arc:
NETHER, NFDDI, NARC are  not used anywhere. Remove #include "ether.h",
   which had no effect.
Removes clash with "options NATM" for native-ATM network protocol stack.
1998-07-05 22:29:51 +00:00
jonathan d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
jonathan 011f2bda08 defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
jonathan 5c0c5dd0b4 defopt ISO TPIP. 1998-07-05 04:37:35 +00:00
jonathan fe484937cf defopt LLC 1998-07-05 03:14:41 +00:00
jonathan 8db0fcdbf7 defopt CCITT. 1998-07-05 02:12:22 +00:00
jonathan 3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
wrstuden 29f991cc2f Fixup last revision to zs.c. Keep a lot of the comment cleanup, and
keep the explicit clearing of interupts in zscnprobe.
1998-07-02 17:32:03 +00:00
wrstuden 4f500bad2e Another printf("%:"...) bites the dust (->vprintf(...)) 1998-07-02 00:47:30 +00:00
scottr 3733eac8e4 Undo a thinko in the various VIA2 isr loops: increment
bitnum inside the loop, not as part of the condition.
1998-07-01 18:57:36 +00:00
scottr 398759b74e Whoops, forgot to bracket struct grfinfo with #ifdef GRF_COMPAT. 1998-07-01 14:52:21 +00:00
scottr f170a53f0b Add a GRF_COMPAT option so that old-style grf ioctl() code can be
removed from the kernel.
1998-07-01 14:49:07 +00:00
wrstuden 67b0c87dc3 Overkill patches to make serial console work again. Should also make
serial echo work, but not sure. Tested by Paul Goyette.

A few of these changes can probably be backed out, but I'm not sure which.
This part should work for now, and get things going again. These fixes
should also get rid of the problem of things crashing just as zstty0 gets
configured.
1998-06-30 18:13:21 +00:00
scottr 3fec37df49 Fix warnings from recent ddb_init() change: handle end and esym
consistently.
1998-06-30 04:16:00 +00:00
lukem bd8d501f7e remove options FIFO; it's now the default 1998-06-26 01:53:43 +00:00
thorpej 8aee7782f5 defopt COMPAT_SUNOS 1998-06-25 23:40:33 +00:00
thorpej 971b8956ef defopt KTRACE 1998-06-25 21:18:11 +00:00
cgd 651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
scottr 5444e91249 The Performa 58x comm slot SONIC cards behave the same way as in
the LC/Performa 57x.  From Yasuhiro Endoh.
1998-06-09 03:39:50 +00:00
tv 00ede2160e Change ddb_init() for a.out to provision for kernels which are not booted by
the current 'bootblock' method, like the Shark, which preloads and preformats
the symbol table right in the boot code.
1998-06-09 01:57:41 +00:00
scottr 52da0e26c6 Kill unused variable that resulted from the last change. 1998-06-02 03:21:42 +00:00
scottr 910666949f An inability to map a slot's address space may be a normal condition --
for instance, on-board video may live here.  Make the complaint about
this a DEBUG rather than a DIAGNOSTIC message.
1998-06-02 02:24:03 +00:00
scottr da2f2cb79f Store the PA of the framebuffer in the softc. This eliminates the need
for the sc_phys callback; we can just store the PA in the grfbus attach
args, rather than a function pointer, which simplifies the code nicely.
1998-06-02 02:14:20 +00:00
scottr b8ce6ef764 Make the direct ADB driver default. 1998-06-02 00:29:29 +00:00
thorpej 9ef6fa7387 Build pmap_boostrap.o without profiling; we can't call mcount before the
mmu is enabled!
1998-05-31 23:28:07 +00:00
thorpej a7f360c6c9 Specify a non-profiling C rule. 1998-05-31 23:25:41 +00:00
scottr f2e26f6125 Handle a non-EMP Trackman the same way we handle a non-EMP Mouseman.
Patch from John Wittkoski.
1998-05-28 02:11:32 +00:00
scottr f976f2297f In pmap_check_wiring(), be careful to use uvm_map_lookup_entry() if we're
using UVM.  Notice by Hauke Fath, no PR generated.
1998-05-27 05:47:22 +00:00
scottr 92c02d3af3 If DEBUG, make sure to pull in the prototype for cngetc(). Noticed
by Hauke Fath, no PR generated.
1998-05-27 04:11:51 +00:00
scottr d5726c1096 PG_PTPAGE is only useful if !UVM. Noted by Hauke Fath in
PR 5462.
1998-05-27 03:58:16 +00:00
is 7a0f63f982 Back out the defopt for M680?0. As pointed out to me, this breaks ports which
dont use the M680?0 the way Amiga, Atari, Mac68k, and X68k do. I must have
missed this in the past discussion about this project.
1998-05-24 19:32:34 +00:00
scottr 9df06931ab Rewrite doboot() so that it turns off the MMU, rather than relying
on the ROM space being mapped where it would like to be.
1998-05-24 06:15:50 +00:00
briggs ce70d405cd Handle video interrupts for the Radius PrecisionColor 24X card. Thanks for
sleuthing and testing go to Robert Oelkers <windcatcher@earthlink.net>.
1998-05-23 22:08:41 +00:00
is 6a6812fd92 Move M680[2346]0 to opt_m68kcpu.h.
XXX Some explicit dependencies could be removed now from the individual
arch/$ARCH/conf/Makefile.$ARCH files, but this is still to be done.
1998-05-23 20:51:06 +00:00
thorpej 6626878e7b It is no longer necessary for pmap_pinit() and pmap_release() to be
pmap interface functions, as NetBSD no longer uses statically allocated
pmaps (except for the kernel pmap, which is special-cased anyhow).
1998-05-19 19:00:11 +00:00
briggs 5369da240e Get both SCSI busses operational on the Q900 and Q950. 1998-05-09 22:47:53 +00:00
briggs 33f027f65f Handle the interrupt for the Vimage graphics adapter. Thanks to
Sadamu Gohyakuda <joyhiro@joyful.gr.jp> for remote testing.
1998-05-07 23:42:59 +00:00
briggs 5917e62b18 New video card: Vimage by Interware Co., Ltd.
Define constants for the PLI QuickSCSI nubus board.
1998-05-07 23:41:51 +00:00
kleink aa36ad1f55 Fix some arithmetics lossage on typeless pointers. 1998-05-07 21:01:41 +00:00
scottr 22b90adcc2 Add the remaining kgdb pieces from sun3/hp300, with some mac68k-specific
adjustments to initialization.
1998-05-05 06:48:51 +00:00
thorpej fcb3331f98 Switch to UVM. 1998-05-04 05:00:12 +00:00
scottr 9dfbdab6ec Move on-board I/O and NuBus drivers to their own directories
via repository copy, and make the necessary adjustments to reflect
the moved files.
1998-05-02 16:45:27 +00:00
scottr 487e3b222d Dead, unused, kaput. 1998-05-02 06:46:45 +00:00
scottr 1b01139f4f Dead, unused, kaput. 1998-05-02 06:32:39 +00:00
scottr d4c74c8b59 Quiet an (imo bogus) warning from gcc 2.8.1 regarding braces and
if-else statements.  Change suggested by Taras Ivanenko in PR 5334.
1998-05-01 03:53:47 +00:00
scottr cb160f72a3 Missed a prototype in the NuBus interrupt handler cleanup.
Fixes PRs 5365, 5367, 5368, and 5373.
1998-05-01 03:42:47 +00:00
scottr 6c884e2aa8 Correct thinko in last commit 1998-04-26 21:20:26 +00:00
scottr a57c68946c GC the old MACHINE_NONCONTIG code. 1998-04-26 21:12:03 +00:00
scottr 06487a637a Use VM_PSTRAT_BIGFIRST, and add a comment explaining the decision. 1998-04-26 20:06:26 +00:00
scottr 268cc1fea2 Generalize add_nubus_intr() a little more. Also, complete KNFing. 1998-04-26 18:25:58 +00:00
briggs 1ab7701474 Deal with the video interrupt for the RasterOps 8/24XLi. Thanks for the
information go to Tadashi Ueda <ng6t-ued@asahi-net.or.jp>.
1998-04-26 16:47:39 +00:00
scottr fbf76298d3 GC several unused NuBus-related variable. While here, do some KNFing. 1998-04-26 03:59:18 +00:00
scottr 547ff1e300 Handle avail_start properly when setting up physical RAM segments.
Also, remove a KGDB-related piece that got committed prematurely.
1998-04-26 03:49:47 +00:00
scottr c5302e839e Attempt to clear stray NuBus interrupts in the default slot
interrupt handler.
1998-04-25 21:39:54 +00:00
scottr aa1b4c6045 Garbage collect the second (slot number) parameter to NuBus interrupt
handlers.  (Only slot_ignore() and slot_noint() need this, and we already
have a place to put this information.)  Adjust add_nubus_intr() so that if
the client_data arg is specified as NULL, pass the slot number as
client_data to the interrupt handler.
1998-04-25 21:27:40 +00:00
scottr 00c8745cf0 Conditionalize some code that is only needed in the MACHINE_NONCONTIG
case.  Eventually we'll want to GC this.
1998-04-25 18:06:44 +00:00
scottr 12e01e36dd Missed removal of MACHINE_NONCONTIG. Pointed out by Allen. 1998-04-25 06:48:05 +00:00
scottr e0114270c1 Replace outdated comment regarding the physical segment list in
mac68k_init() with something more appropriate.  Also, remove an
extraneous but fortunately harmless line of code.
1998-04-24 06:12:29 +00:00
scottr 0b0a42a47d From Allen: deal with avail_end correctly. This is simple
with the recent modifications to get_mapping() which caused it to
maintain a sorted segment list.
1998-04-24 05:53:29 +00:00
scottr 8bcac06284 Checkpoint of UVM work to date. This includes a fully-functioning
MACHINE_NEW_NONCONTIG interface implementation, which is now enabled
on all systems.  Thanks to Jason Thorpe for his work on the hp300 port,
from which most of the code used here was derived.

XXX In spite of the fact that it works on the hp300, UVM does not (yet)
work well under load on mac68k.
1998-04-24 05:27:24 +00:00
scottr 0066f1fb4e Pull in a few more kgdb-related bits. Getting there... 1998-04-24 05:15:25 +00:00
scottr 28a3c86926 Update to present reality. 1998-04-24 05:14:37 +00:00
scottr 132026d9aa Garbage collection. (Wow, some of this stuff was _old_.) 1998-04-24 05:11:11 +00:00
scottr 72d21eb8e0 Make get_mapping() create a sorted segment list, coalescing
adjoining regions (except for the segment starting at the address
we loaded the kernel).  This simplifies cpu_init_kcore_hdr()
considerably, but the real win will be with MACHINE_NEW_NONCONTIG.
1998-04-24 05:08:58 +00:00
briggs fc3bdd6128 Add interrupt support for two more video cards: the Formac color card II
and the Radius PrecisionColor 24Xp.  Thanks to <falk.stern@luene.net> and
<Mario_Magliocco@broder.com> for their remote sleuthing and testing.
1998-04-24 01:58:44 +00:00
scottr 88aa59e1cd Correct type of 'nofault', and some whitespace KNFing. 1998-04-20 06:46:16 +00:00
scottr ec5cc6194d More kgdb groundwork pulled from hp300. While I'm in here,
correct some type-related problems and eliminate the register
qualifier.
1998-04-20 06:45:26 +00:00
scottr a2973edb42 Lay groundwork for KGDB by pulling in the trap 15 handler from hp300. 1998-04-20 05:46:04 +00:00