scottr
99d3468790
Don't use the plural form of the word "target" if there is only one!
1999-11-28 10:10:51 +00:00
scottr
dc2663bf69
If there is only one ADB device, it will do us no good to avoid it
...
when guessing which device to poll next. Resolves PR 7407, but the
bug is a lot older than that.
1999-11-28 10:07:34 +00:00
scottr
4ecba735df
Garbage collect adb_initted.
1999-11-07 08:22:50 +00:00
scottr
0b8b3c403e
In the interrupt handlers, check adb_polling instead of
...
adb_initted to decide whether to handle 'recovered' interrupts
immediately.
1999-11-07 08:18:24 +00:00
scottr
26208b5e57
Garbage-collect adb_init(). It's been dead for a long time.
1999-11-07 08:08:10 +00:00
scottr
c11dd8b6dd
We want adb_polling set regardless of whether we're using the MRG driver.
1999-11-07 08:07:20 +00:00
scottr
8da942f249
Oops... last rev created an unused variable. While here, clean up
...
adb_reinit()'s variables a bit, too.
1999-11-07 06:15:09 +00:00
scottr
23411c4c1b
Convert one more buffer copy that I missed in rev 1.28.
1999-11-07 05:50:26 +00:00
scottr
a7628ea793
Always using polling for poweroff (from macppc).
1999-11-07 00:16:39 +00:00
scottr
27adad708f
ite_polling -> adb_polling
1999-11-07 00:12:55 +00:00
scottr
57dc0b9f46
We need adb_initted in a couple of places; declare it here.
1999-11-07 00:12:54 +00:00
scottr
ad43c94436
ite_polling -> adb_polling
1999-11-07 00:12:53 +00:00
scottr
c827b513ac
Convert buffer copies to memcpy().
1999-11-06 23:50:29 +00:00
scottr
12a535f5ef
Add more delay in adb_reinit() (from macppc).
1999-11-06 23:44:32 +00:00
scottr
b46c7fc44d
Don't invoke the upper half handler unless we're still
...
initializing the ADB bus. This fixes PR 7870.
1999-11-06 22:25:20 +00:00
scottr
41ae6be989
Defer ADB configuration until interrupts are (normally) enabled.
1999-11-05 18:27:11 +00:00
scottr
902801374a
An aesthetic change to autoconfig output to complement Colin Wood's
...
change to macrom.c in June.
1999-11-05 18:08:02 +00:00
scottr
a15f217211
[Redo] Allow rates higher than 57600, per PR 8070. Change originally
...
from Bill Studenmund.
1999-11-02 06:51:45 +00:00
scottr
9894ab10b4
[Redo] Catch up with recent changes to scsipi flags. Closes PR 8675.
1999-11-02 06:42:26 +00:00
scottr
e70fd63845
Be less noisy about collision errors. From Dave Huang, closes PR 8605.
1999-10-14 20:58:18 +00:00
thorpej
e6c88a7686
Update for SCSIPI changes.
1999-09-30 22:59:52 +00:00
scottr
f63afdf2ff
Normalize autoconfig output.
1999-09-29 06:14:02 +00:00
scottr
8e9fd55168
Add support for the Macintosh LC Ethernet Adapter, from Ken'ichi Ishizaka.
...
This was erroneously recognized as an 8390-based card, where in fact it is
using the 83932 (SONIC) controller.
1999-09-29 06:04:50 +00:00
thorpej
11cae42531
Centralize the declaration and clearing of `cold'.
1999-09-17 19:59:35 +00:00
thorpej
3ebbe095e0
Change the pmap_extract() interface to:
...
boolean_t pmap_extract(pmap_t, vaddr_t, paddr_t *);
This makes it possible for the pmap to map physical address 0.
1999-07-08 18:05:21 +00:00
briggs
819a054df2
Poll for serial interrupts. Return to 3000us delay instead of 4000us in init.
1999-06-29 04:45:59 +00:00
briggs
598b09009b
Include resourcevar.h for p_limit/rlimit definition.
1999-06-28 04:21:15 +00:00
briggs
71a4446b04
Unfortunately, several changes that are intermingled:
...
- Add initial IOP support. ADB doesn't work yet for me, but it's here so
that others will be encouraged to work on it. ADB_HW_IOP basically
is configured as a NOP so that serial consoles will continue to work.
- Roll via1_intr and via2_intr into the intr.c scheme--this also required
changing rtclock_intr to grovel the stack differently so that hardclock
gets the right arguments and softclock() doesn't get all reentrant.
- Make via1 interrupts parallel to via2 interrupts--handlers get a pass-
through pointer and we can register handlers. Register via1 interrupt
with intr_establish()--normally level 1, level 6 for A/UX scheme.
- Use intr_establish() to set real via2 interrupt handler instead of the
hacked function pointer.
- Reorganize adb-direct interrupts so that a function call is removed.
- Implement A/UX interrupts for all Quadras right now. We may need to
special case some Quadras, but Linux folks are reporting success on
several models.
- Fix intrnames to be accurate for the normal, PSC, and A/UX interrupt
configurations.
1999-06-28 01:56:55 +00:00
thorpej
9e9f068f43
Add the guts of mlockall(MCL_FUTURE). This requires that a process's
...
"memlock" resource limit to uvm_mmap(). Update all calls accordingly.
1999-06-18 05:13:45 +00:00
thorpej
cba22525ce
Fix some broken packet length checks. Really (no, I mean really) works now
...
after the ether_input() changes -- tested on my Quadra 650.
1999-05-24 21:53:42 +00:00
thorpej
ed4224c64e
Fix a couple of problems from the ether_input() change:
...
- Make it compile again, with BPF.
- Don't subtract the Ethernet header length from the total packet length.
- Copy the alignment fix from sys/dev/ic/i82586.c (though the m68k shouldn't
really be affected).
1999-05-21 21:48:28 +00:00
thorpej
f98d358a1f
Rework layer 2 protocol input routines. Instead of calling e.g. ether_input()
...
directly, call the function pointer (*if_input)(ifp, m). The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary. Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.
1999-05-18 23:52:51 +00:00
scottr
2f5a40c966
From Yasuhiro Endoh: Performa 58x uses ADB soft poweroff.
1999-05-15 19:29:12 +00:00
scottr
0179750b00
Correct two more problems of the same type as in rev 1.21: use the length
...
of the buffer you're copying from as the loop interator, not the length
of the buffer you're copying to. Also, rewrite print_single() with
pointer instead of array operators. Appears to correct some ADB-related
`hangs' during autoconfig.
1999-05-06 06:01:27 +00:00
scottr
136972df3a
Actually, the last change solved a different but related problem than
...
the one mentioned in PR 7376. By clearing the display in iteon()
instead, we can kill both birds with the same stone.
1999-04-21 06:00:07 +00:00
scottr
48ff49fee0
When attaching the ite console, clear the entire display rather than assuming
...
that the emulator will do it for us. (The emulator will only clear
full character-sized rows.) Incidentally fixes PR 7376.
1999-04-21 05:18:17 +00:00
scottr
d6fd16c828
vm_size_t -> vsize_t
1999-04-07 06:45:14 +00:00
briggs
f4647f0ec7
Compile itecnputc if NZSC == 0.
1999-03-27 05:53:05 +00:00
wrstuden
8a4ca40c65
Enable pps support, only if CLOCAL set & MDMBUF clear and no clock present.
1999-03-27 01:17:03 +00:00
ender
85974131bd
Include uvm/uvm.h instead of uvm/uvm_extern.h because we need the prototype
...
for uvm_unmap() in order to compile a kernel with GRF_COMPAT defined.
Fix provided by Frederick Bruckman <fb@enteract.com> in PR #7237 .
1999-03-26 22:52:15 +00:00
mrg
d2397ac5f7
completely remove Mach VM support. all that is left is the all the
...
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
wrstuden
a7678930b4
Oops. mac68k does NOT use PCLK as a clock source, so don't enable it in
...
the default channel setup.
1999-03-23 17:55:03 +00:00
scottr
4982fb8fdb
Fix an obscure bug in send_adb_cuda() found be comparison with
...
the macppc version.
1999-03-18 09:10:19 +00:00
sommerfe
bc533621ed
defopt MINIROOTSIZE
1999-03-17 18:59:21 +00:00
perry
d446fb449c
exterminate ovbcopy. patches provided by Erik Bertelsen, pr-7145
1999-03-12 22:42:30 +00:00
scottr
2ea6ea5db5
Add the PowerBook 170 to what appears to be the correct
...
class of systems, based on the Apple dev notes for this system.
1999-03-05 06:45:41 +00:00
ender
e0a4cb2335
Add NetBSD RCS Id's
1999-02-16 01:08:16 +00:00
mycroft
2a304686e6
Minor cleanup.
...
Make the initializer for BAUDLO depend on PCLK directly; it was incorrect on
some ports where PCLK is not 4.9152MHz.
XXX Is the default value actually used?
1999-02-11 15:28:03 +00:00
ender
25e1f69c42
o Change various attach arg and softc datatypes to ints.
...
o Use explicit typecasts when interfacing with MRG data
Should fix port-mac68k/6839. Patch supplied by
Frederick Bruckman <fb@enteract.com>
1999-02-11 06:41:07 +00:00
mycroft
be1af660c0
Don't set DCD_IE in the frontends. KGDB doesn't even use DCD, and the tty
...
frontends get it from zsparam() anyway.
1999-02-03 20:25:05 +00:00
scottr
2159f8a301
Add support for the Contour 3-button mouse, inadvertantly missed
...
in the ADB split a few months back. Noticed by Takashi NAKAMURA.
1999-01-16 22:49:37 +00:00
scottr
84af636530
vm_offset_t -> {paddr_t, vaddr_t}
1998-12-22 08:47:05 +00:00
scottr
3de0336b7c
Protect a keyup event for ADBK_3 in the mouse button emulation code with
...
ALTXBUTTONS, so as to not cause trouble with some non-US English
keyboards. From SUNAGAWA Keiki, PR 6613.
1998-12-19 21:41:13 +00:00
mjacob
74bc9f26d5
Update HBAs to incorporate the new max_lun property.
1998-12-05 19:43:33 +00:00
ender
a5b3596bc4
Remember to recognize modifier key releases when the Option key is down.
...
Fixes art of PR 6444. Tested by Frederick Bruckman <fb@enteract.com>.
1998-11-28 19:42:49 +00:00
ender
15f2f5d901
Take emulated button state into account before handing off mouse events.
...
Fixes part of PR 6444. Tested by Frederick Bruckman (fb@enteract.com ).
1998-11-24 08:34:37 +00:00
thorpej
5f0577babc
Adapt to the new scsipi_adapter interface.
1998-11-19 21:43:00 +00:00
mrg
db3051d720
fix problems in many d_mmap routines:
...
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.
XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));
by someone!
1998-11-19 15:38:20 +00:00
briggs
0659054b8b
Make this compile _and_ link with DEBUG / ADB_DEBUG defined.
1998-11-14 03:20:47 +00:00
briggs
94125bb185
Allow this to compile with DEBUG defined.
1998-11-14 03:01:31 +00:00
ender
ab941faefb
Make the kernel compile when the ALTXBUTTONS option is set.
...
Fixes PR#6363 from Frederick Bruckman (fb@enteract.com )
1998-10-26 19:20:00 +00:00
scottr
a83dff9c40
Make it compile for MRG_ADB kernels.
1998-10-26 07:09:37 +00:00
scottr
974ff0e869
Use the <machine/asm.h> macros, and don't call code that we haven't
...
included.
1998-10-26 07:07:34 +00:00
scottr
5af0d2da90
Don't hide the ADB hardware types when we're building an MRG_ADB kernel;
...
we really do need them around, anyway.
1998-10-26 07:06:41 +00:00
ender
2055d846f9
New ADB "bus" interface:
...
o Separate ms and kbd drivers
o aed device for compatibility
o debug message cleanup in hardware direct support (from scottr)
1998-10-23 01:16:22 +00:00
scottr
5cb5f44921
Defopt ALTXBUTTONS, DISABLE_EXT_CACHE, and ZS_CONSOLE_ABORT.
1998-10-22 04:36:50 +00:00
chuck
8bef431273
remove unused share map code from UVM:
...
- update calls to uvm_unmap_remove/uvm_unmap (mainonly boolean arg
has been removed)
1998-10-11 23:20:59 +00:00
thorpej
29d472f53d
Garbage-collect the open_target_lu and close_target_lu entry points from
...
struct scsipi_adapter; they were not used.
Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be
used to issue ioctl commands to the host adapters.
Inspired by PR #6090 , from Matt Jacob.
1998-10-10 00:28:28 +00:00
scottr
9d1c9d8d38
Use correct devices for zs driver on AVs. From Dave Huang (PR 6107).
1998-09-10 21:40:42 +00:00
scottr
53907fe5a1
Support Cabletron Ethernet card, from John Marohn in PR 5762.
1998-08-12 07:19:09 +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
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
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
jonathan
011f2bda08
defopt NS, NSIP.
1998-07-05 06:49:00 +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
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
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
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
22b90adcc2
Add the remaining kgdb pieces from sun3/hp300, with some mac68k-specific
...
adjustments to initialization.
1998-05-05 06:48:51 +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
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
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
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
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
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
d87f21702e
Make type explicit for egcs, from Erik Bertelsen in PR 5288.
1998-04-13 02:36:24 +00:00
mycroft
692fe3cc96
Use a 4-bit table to speed up the CRC even further, without increasing the
...
code size too much.
1998-03-29 23:14:14 +00:00
scottr
8e25cfb973
Better integration of Power Manager IC ADB driver into the direct ADB driver framework,
...
from Takashi Hamada. Also includes a handler for unsolicited ADB
packets.
1998-03-29 03:50:30 +00:00
scottr
57191652f3
Don't map Opt-{1,2,3} to mouse buttons unless the ALTXBUTTONS option is
...
specified. (Doing so breaks German keyboards!) Fixes PR 4929.
1998-03-27 06:10:54 +00:00