Commit Graph

189 Commits

Author SHA1 Message Date
briggs
24787aea0e Add macvideo_intr to handle video interrupts. Currently has behavior
that was previously in slot_noint().
1995-03-23 13:45:07 +00:00
briggs
129893572f Serious kludge around network timeouts. Network timeouts seem to be
caused by the VIA missing the ethernet slot interrupt.  If we get a
watchdog, try calling the via's nubus interrupt function.  If that
causes an interrupt, don't reset anything.  If it doesn't, use old
behavior (log timeout and reset).

Yuck.
1995-03-23 13:00:05 +00:00
briggs
50721bd46f Raise watchdog timer a tad. 1995-03-01 03:47:08 +00:00
mycroft
4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
briggs
347304eb41 Many changes and updates from Dave Leonard (d@fnarg.net.au) and
Brad Parker (brad@fcr.com).  I've been sitting on these for a while.
Notes from Dave:
  redocumented z8530 stuff.
  Added break ioctls and detection.
  Pass framing/parity errors to line discipline.
  Added TIOC[SG]FLAG.
  Attempt at bringing all chip ops together.
  deepended s/w fifos to match chip's.
1995-02-11 19:06:57 +00:00
briggs
7190ebb7e0 Set sc_link->openings.
Simplification of scsi_cmd from pc532 mods to this driver.
1995-02-01 13:50:42 +00:00
briggs
bc36ccab9a Update for scsi changes. Incl. xs->resid = 0 (thanks Phil).
Changes compile, but are not tested.
1995-01-15 06:27:54 +00:00
briggs
749ca327c9 Nuke Log in if_aereg.h and remove duplicate (and benign) sc->smem_size
assignment from Brad Parker (brad@fcr.com).
1994-12-04 19:40:14 +00:00
briggs
1c47e24828 Mac ROM Glue changes from grantham@tenon.com. 1994-12-03 23:33:55 +00:00
briggs
d703fa05aa At least somewhat functional ethernet driver from Brad Parker
(brad@fcr.com).  Requires changes to via.c which are coming with
other changes in a moment...
1994-12-03 23:30:45 +00:00
briggs
4e06addf8a Nuke DEBUG. 1994-12-03 23:26:25 +00:00
briggs
2bef12a661 Get rid of private delay(). 1994-12-03 14:17:20 +00:00
briggs
037951ec4f Remove private delay() and clean up some odd delay times that we were
using...
1994-12-03 14:16:58 +00:00
briggs
e054795fb3 "../scsi/*.h" -> <scsi/*.h> 1994-11-29 03:43:52 +00:00
briggs
81828a6a38 Boolean goof. (True) 1994-11-29 03:38:48 +00:00
briggs
492011ffd7 Modify the serial port initialization slightly so it works on the IIsi. 1994-11-03 16:15:27 +00:00
briggs
815a0b9aca Fix a buglet in computation of fbsize. Pointed out by monroe@cs.pdx.edu. 1994-10-30 13:34:31 +00:00
cgd
4fdae7a0ae new RCS ID format. 1994-10-26 08:45:48 +00:00
briggs
93b8f0f095 Change strategy slightly so that serial console is enabled if internal
console is not--regardless of the value of the boot-time flag.
Suggested by a question from bit@gnu.ai.mit.edu (jim howard - bit.map).
1994-09-30 00:52:44 +00:00
briggs
49e7735666 Actually implement serial boot (console) echo (minor change to ite.c).
Remove some old junk in ser.c and implement serial console and serial
boot echo (if serial console's enabled, clear echo).
1994-09-29 03:33:13 +00:00
briggs
24de5a9668 Nuke a CVS Log entry. Attribute introspection to Brad. 1994-09-12 21:56:36 +00:00
briggs
400d187c01 Remove need for "bounds.h." Brad can still use it if he wants ;-) 1994-09-12 03:54:05 +00:00
briggs
5432aef717 Fix a scrolling bug when we have more than 64k to scroll. 1994-09-12 03:38:30 +00:00
briggs
183f4c6128 Lots of cleanup. Add functions for serial console--just stubs for now.
Fix initialization (for good this time?).
Little things.
1994-08-05 01:27:58 +00:00
briggs
08d96f103f Nuke holdovers from old HP300 console code. Get rid of any reference
to serial_boot_echo stuff here.
1994-08-02 17:55:24 +00:00
lkestel
1c22264669 Make internal video look like a grf device so that desktop and X can use
it.  GRFIOCMAP modifies addr to include the offset into the screen where
the first pixel is.  Not a very clean way to do it -- we should add a
field to grfinfo for offset.
1994-07-31 08:32:47 +00:00
lkestel
82dcea7759 Fixed bug with bcopy()'ing more than 65535 bytes; initialize d_ttys and cn_tp
on itecnprobe(); other minor bug and warning fixes.
1994-07-31 06:45:50 +00:00
mycroft
639939abca Clean up deleted files. 1994-07-30 04:21:48 +00:00
lkestel
774ef66058 Moved adbsys.h grfioctl.h and keyboard.h to include to make desktop
and X compile more cleanly.
1994-07-30 04:21:42 +00:00
mycroft
1b935ff541 Clean up deleted files. 1994-07-24 01:23:20 +00:00
lkestel
a185489f80 Fixed a few bugs in the key-repeat function and disabled key-repeat
when /dev/adb is closed to avoid infinite repeat problem.  Brad claims
that he's got this solved in his version...
1994-07-21 06:36:51 +00:00
lkestel
020b962ae6 Added vt100 emulation and sped up text writing, scrolling, etc. 1994-07-21 06:35:49 +00:00
briggs
f954a7b0dd Make "unknown ioctl" printf ifdef DEBUG and take out an extra comma from
the format string.
1994-07-21 03:32:07 +00:00
briggs
cc7e76a9a5 Put in a warning message that the driver is non-working and checkpoint
with a little bit more debugging stuffage.
1994-07-21 01:33:29 +00:00
briggs
db146ec64c Separate init from serattach and make more machine independent by
calculating speed during init (different models of macs feed SCC with
different clocks).
1994-07-21 00:52:47 +00:00
briggs
60dc2edc69 Make this into more of a device so it can be probed and attached. Nuke
RCS/CVS Log.  Make ASCBase an offset instead of an absolute.
1994-07-21 00:44:00 +00:00
briggs
f8d560f187 Be somewhat better at machine dependence. 1994-07-10 16:55:53 +00:00
briggs
cacf1a1b0a Cleanup a printf, raise the probe timeout, and notice if the probe
does time out.
1994-07-09 17:21:13 +00:00
briggs
2ff5938343 Minor hacks to get this to compile for now. ite.c now uses the proper
consdev structure to keep itself from crashing...
1994-07-09 06:49:34 +00:00
briggs
6cd891192f Move a function here from the old console.c. 1994-07-09 06:38:55 +00:00
briggs
8afa3a3b98 Just a checkpoint. Still not close to working, but TUR works--more docs
coming today...
1994-07-08 11:38:48 +00:00
lkestel
29f12f9bc6 6x10.h: shifted font over by two pixels.
keyboard.h: added constants for commonly used keys and reformatted
  array so that gcc would be happy.
adbsys.c: new adb system.
bounds.h: bound-checking macros.
ite.c: new built-in mini-console.
8x14.h: no longer used by built-in console.
adb.c: replaced by adbsys.c
1994-07-08 07:55:46 +00:00
briggs
782af154d0 Need the extra byte in the temp buffer to avoid overrun in scrollup on
wide screens.
1994-07-05 03:48:56 +00:00
briggs
d0f0219076 Don't blow up on huge screens. 1994-07-04 23:05:34 +00:00
mycroft
3410def915 Clean up deleted files. 1994-07-03 04:27:17 +00:00
briggs
ebdc074703 Reset sccaddr if we're resetting the video address.
Nuke some debugging output.
1994-07-02 13:00:37 +00:00
briggs
4ade6821f7 Minor mods. Get rid of constants, or update to use a better default
value.
1994-06-26 13:02:41 +00:00
briggs
a71a746946 MIN -> min. This needs a lot of work. 1994-06-26 13:01:24 +00:00
briggs
03d286dddc Add some support for the '040 macs which use a different scsi chip. The
scsi96 driver is just a skeleton at the moment.
1994-06-26 13:00:32 +00:00
briggs
03095bbdd6 Don't assume NuBus is at NBBASE. We might remap it. 1994-06-26 12:59:19 +00:00
briggs
bc8e4f3bb2 This should probably be deprecated--minor slash job. 1994-06-26 12:58:13 +00:00
briggs
f556898e64 Change some default constants--might be overridden during boot, but
correct for MacII-class.
1994-06-26 12:57:27 +00:00
briggs
4d47d6a194 Let's not hard-code constants, OK? 1994-06-26 12:56:26 +00:00
briggs
397e0acc8d Missed some warnings... 1994-05-06 17:38:38 +00:00
briggs
c22c80abac Clean up some warnings, mainly w/ timeout(). 1994-05-06 03:34:53 +00:00
briggs
83e8ab7114 Don't even pay lip service to HPUXCOMPAT, now COMPAT_HPUX. 1994-05-04 05:25:41 +00:00
briggs
7d99e03949 Clean out some old printf()s and get rid of MAP_FILE reference. 1994-04-05 01:30:28 +00:00
lkestel
cd701f50a3 Fixed a few major bugs. add_nubus_intr() was getting the wrong address,
and bcopy and bzero were being used.  The latter use longs to copy/zero,
and some ethernet cards can't handle longs.  I've added bbcopy and bbzero
as a temporary hack, but these should later be added to locore and maybe
changed to use shorts.  Still doesn't work: I can now get an interrupt on
the first transmit, but further transmits don't generate more interrupts.
1994-03-20 03:03:26 +00:00
briggs
c0d5b28126 Goof. Missed some mods in the changes to config.new a long time ago.
Thanks go to kesteloo@cs.unc.edu (Lawrence Kesteloot) for finding this.
1994-03-20 00:14:16 +00:00
briggs
10c02ec354 More Dayna separation. 1994-03-01 15:24:25 +00:00
briggs
82a0604c37 A little clean-up. 1994-02-27 03:40:26 +00:00
briggs
3a18d3b2a5 Cleaned up the probe a little by actually using data from the decl. ROMs. 1994-02-26 03:01:22 +00:00
briggs
bd54362375 Bail out in the probe since it's not safe at the moment (hangs on my
DaynaPort card).  Will fix when I get docs for the card.
1994-02-23 04:39:49 +00:00
briggs
ffe153db27 Do a cleaner probe. This still needs lots of work, but will work on
reasonable cards...
1994-02-23 04:38:24 +00:00
briggs
bb20b67105 Get rid of if_init assignment. 1994-02-22 01:15:00 +00:00
briggs
42ad9a0be4 Minor tweaks to prevent hangs and other bad behavior... Needs much more
work now that we have more info (Designing Cards and Drivers for the
Macintosh Family Hardware.
1994-02-22 01:11:33 +00:00
briggs
2fbb727cb3 Various fixes, changes and so forth by lkestel. Among them should be
support for > 1-bit modes (slow...)...
1994-02-22 01:07:40 +00:00
briggs
ecfa08e11e ioctl now takes struct proc *. 1994-02-10 04:30:27 +00:00
briggs
de456b165a Include-cop. 1994-01-30 01:15:31 +00:00
briggs
c86a4eb235 Include-cop strikes again. 1994-01-30 01:14:49 +00:00
briggs
d110378226 Just playing include-cop. 1994-01-30 01:11:36 +00:00
briggs
eb7f152ad2 Fixup includes and prototype stuff. Still need to go back and put in
old-style function headers to be pedantic.
1994-01-30 01:10:33 +00:00
briggs
df5f6080ef Change to support config.new and magnum-esque scsi code. Works much
more nicely.
1994-01-30 01:08:50 +00:00
mycroft
8b09474e2e Clean up deleted files. 1994-01-30 01:07:03 +00:00
briggs
a829ad4c4b Nuke final references to chars.h. It wasn't being used. 1994-01-30 01:07:01 +00:00
briggs
71d0f0a1ee Apply patch as suggested by Theo. 1994-01-24 22:29:40 +00:00
briggs
a0bbe77f60 Take out coninit and clean up some warnings. 1994-01-20 23:57:09 +00:00
briggs
7ea239d333 Put lun in CDB. Is there be a way to determine when this is really
necessary?  (It is for some drives).
1994-01-15 03:26:20 +00:00
briggs
363cc5e5be Basic cleanup. Get rid of my_frame for frame. 1994-01-13 12:59:30 +00:00
briggs
dfe9897dba Update grf.h to increment a number of devices when it configures.
Fix a small bug in serial.
  Both from Brad, Lawrence, and/or Mike.
1994-01-10 23:52:01 +00:00
briggs
982b2aa969 Update ethernet driver to use config.new. At least, it's a first stab
working from mycroft's magnum changes to if_ed.c.
1993-12-21 03:18:00 +00:00
briggs
2390a5c1ee Add basic sound support and a beeping (instead of flashing) console...
from Brad Grantham.
1993-12-21 03:16:01 +00:00
briggs
5fd9ddd438 Get rid of IFF_ALTPHYS and hence IFF_LLC0 reference. It doesn't appear
to have been used in this driver ;-)
1993-12-15 03:38:20 +00:00
briggs
e369bb70b1 Add (semi-bogus?) test to scsi_gen to handle luns in test unit ready
commands.  W/o this test, some old drives were being identified at
all luns...  Also some cleanup and spelling corrections ;-)
1993-12-15 03:17:54 +00:00
mycroft
924c486826 Clean up deleted files. 1993-12-15 03:10:00 +00:00
briggs
34805358dd Add (broken) support for DDB. Also fix a bug in console that confused the
scrollback.  Clean up includes a tad.
1993-12-15 03:09:05 +00:00
briggs
99fee960e0 Fix includes to use ../mac68k instead of ../mac and add some semi-colons
to a couple of default: switches.  gcc2 doesn't mind not having them,
but gcc1 sure does.
1993-12-06 04:27:52 +00:00
briggs
e99f003a7d Update to current work in progress. This includes an update to
use config.new.
Numerous updates to console so it works better on the SE/30 screen.
Some nice changes from Brad Parker for handling NuBUS and an ethernet
driver that I haven't worked on, yet.
1993-11-29 00:32:22 +00:00
briggs
8ae7f8bceb The current MacBSD architecture sub-directory for NetBSD-0.9--more or
less.  It needs some help to get to be -current.  Support for minimal
hardware on the SE/30, II, IIx, and IIcx exists.
1993-09-29 06:08:37 +00:00