Commit Graph

444 Commits

Author SHA1 Message Date
briggs 314dd5b20b Set sc_slot--we need it later. 1996-05-06 03:27:20 +00:00
briggs 6026c5dfd7 Ooops. Remove debugging printf(). 1996-05-06 03:27:06 +00:00
briggs db495102be Do not depend on the nubus being mapped in one huge segment. 1996-05-06 01:08:24 +00:00
briggs 2c9ba25cc1 Fix typo in last. 1996-05-05 16:21:20 +00:00
briggs 30023f7acd MicroSpeed mouse support from Taras Ivanenko <ivanenko@ctpa03.mit.edu>.
Also some updates to actually used #defined constants instead of numeric
constants.
1996-05-05 14:33:55 +00:00
briggs 37163421a3 Prototype for -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized
Also change the device probing scheme to use something a bit more rational.
A current side-effect is that nubus cards are double-mapped.  I expect
to fix that shortly.
Also change splclock() to block everything but serial hardware interrupts.
1996-05-05 06:15:56 +00:00
scottr b2af0c2297 Kill unused variables and fix prototypes. 1996-04-30 18:11:38 +00:00
scottr b50e8aab63 - Drop SCSI IRQ interrupts if we are already handling one. This works around
a condition that occurs with some slow SCSI devices when they disconnect
  (e.g. the AppleCD 600), generating spurious selection interrupts.
- Reorganize the debugging code slightly.
1996-04-30 17:07:17 +00:00
scottr eb335437e2 Ooops. ncr_sbcreg.h -> sbcreg.h 1996-04-25 23:47:06 +00:00
scottr aca6a2e6da Renamed these files. 1996-04-25 22:26:52 +00:00
scottr 95101e1310 Renamed these files. 1996-04-25 22:02:58 +00:00
scottr a0bca74134 Remove some now-useless code. 1996-04-25 21:18:04 +00:00
scottr 18fd76201e We don't need to enforce the MAX_DMA_SIZE limit in dma_alloc();
this is handled properly by sbc_drq_intr() already.
1996-04-25 14:40:26 +00:00
scottr 2e936aa8ff - Remove several hacks that didn't do much but waste cycles.
- Disable interrupt-driven PDMA when writing (use polled PDMA instead).
- Be more careful about when to flag a transfer as completed.

The result of these changes is that interrupt-driven PDMA works well
enough to bring the system up.
1996-04-25 06:18:41 +00:00
scottr 27c9c12e72 Clean up sbc_drq_intr() a bit; also, be more paranoid about size of transfer. 1996-04-23 14:20:28 +00:00
scottr 9d1cd5e9be Make this compile again; will need to deal with matchbyname() later, though. 1996-04-04 06:59:29 +00:00
briggs 1fa595a2f1 Clean up for higher warning level. 1996-04-01 01:35:48 +00:00
christos 933d138841 Change %r -> %: as for recursive printf's 1996-03-30 21:01:21 +00:00
briggs b39b4939fc Fix minor oversight in a sanity check--caught by Jason, I think, and reported
by Scott.
1996-03-29 02:12:41 +00:00
briggs 08126b5bec via.h -> machine/viareg.h. 1996-03-29 02:06:04 +00:00
briggs 2422f1bc4e Get rid of a compiler warning about Debugger(); 1996-03-24 16:58:46 +00:00
scottr 32a38f24e7 DEBUG -> SBC_DEBUG, and fix comment regarding sbc_options 1996-03-21 04:49:20 +00:00
scottr 0b59005d3d Fix a long-standing bug uncovered by the new device attachment
model.  Thanks to Jason Thorpe for the fix (fixed PR 2235).
1996-03-20 05:10:54 +00:00
thorpej 82d914d090 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 01:26:49 +00:00
briggs 1c817d1c3c Fix a typo in last. 1996-03-07 20:47:01 +00:00
leo 6da2ce259c Allow for a machine dependent match function - rd_match_hook() 1996-03-07 10:25:28 +00:00
briggs 7c44b1180f Disable SCSI linked commands, but allow kernel option to override. 1996-03-07 02:26:37 +00:00
briggs d504670861 Fix for serial console handling from Bill Studenmund. 1996-03-06 23:22:41 +00:00
scottr a7daa2d931 - Clean up DEBUG code.
- Setting the "monitor BSY" flag for polled PDMA is non-optimal.  The
  polled requests generate an interrupt that isn't serviced until the
  command has been cleared from the queue.
1996-02-22 14:31:26 +00:00
briggs ab3f741911 Update to latest Atari driver, but with some local modifications. 1996-02-19 02:51:03 +00:00
scottr ed73ac3b48 New SCSI driver for Macintosh II family machines, implemented using
the MI 5380 driver.  It has been verified to work on the IIx, IIsi,
and IIci only, but should work with any Macintosh 5380-based SCSI
controller.

  -  This driver is _not_ intended to be a general purpose replacement
     for the `ncrscsi' driver.  It is an alternative for those having
     problems with that driver.
  -  Disconnect/reselect doesn't (yet) work, so don't expect SCSI tape
     or magneto-optical disk drives to function properly.
1996-02-10 23:28:41 +00:00
briggs 2a878c9a3a Move debugging defines, etc. into mac68k5380.c and use them instead of
something similar but different.  Make a few cosmetic changes.
1996-02-03 23:17:53 +00:00
briggs 5336dade8e Force the talley counters to be read when we get the interrupt. GCC was
nicely optimizing the reads out for us.  Kudos for this one go to
Steven R. Weiss <srw@hvcn.org>.
1996-02-02 15:30:56 +00:00
mycroft 88e512b693 LOCORE -> _LOCORE 1996-02-01 22:28:24 +00:00
briggs 229c36d3dd Patch a few of the holes in the machine-dependent part of this driver.
Sync the m.i. part with the Atari.
1996-01-24 06:02:06 +00:00
briggs 0d6552d914 Fix typo in last change. 1996-01-13 14:03:38 +00:00
briggs 2a61903be4 Patch to at least recognise FOCUS EtherLAN. From Erik Bertelson
<erik@sockdev.uni-c.dk>
1996-01-12 04:52:58 +00:00
briggs 46a202fc6a Fixes from PR #1931 w/ minor mod in vm_machdep.c 1996-01-12 04:16:25 +00:00
briggs 39f642161a Keep two states for pdma debugging. Turn debugging back on. Sigh. 1996-01-11 15:25:53 +00:00
briggs 631612b677 Move splzs to spl4 from splhigh. Really same difference... 1996-01-11 15:23:01 +00:00
briggs f5269d0ff6 Fix from Paul Goyette for off-by-one error. 1996-01-06 15:56:12 +00:00
briggs 682c4ec08f Bring in a few changes from Atari port.
Add support from Paul Goyette for keeping more than just the last 2
states when debugging.
1996-01-06 05:18:06 +00:00
mycroft 3da4b2a160 The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
briggs 486bcce207 Remove printf() that I forgot about. 1995-12-13 14:30:29 +00:00
briggs 405ac4248f Fix from Paul Goyette to disable linked commands on drives that
reject them for simple commands.  Leo W. reports that this does
not work for some systems.  It's better than what we have now,
though.  From Paul Goyette <paul@pgoyette.bdt.com>.
1995-12-13 03:48:07 +00:00
briggs 4b2a9a582d Update from Bill Studenmund <wrstuden@loki.stanford.edu> with some minor
cleanup from me.  Now supports serial console.
1995-12-13 03:09:57 +00:00
briggs 37b09a913d Double ring limits from Bill Studenmund <wrstuden@loki.stanford.edu>. 1995-12-13 03:08:12 +00:00
briggs 76b94759a1 Fix from Paul Goyette (paul@pgoyette.bdt.com) for drives that don't grok
linked commands.
1995-12-04 02:10:44 +00:00
briggs 1b03745209 cmdlen-2 is right for the last byte of the command. Ifdef out for right now,
though, as some devices apparently don't support linked commands and will
reject commands that have the link bit set in them.
1995-12-01 15:14:11 +00:00
briggs d416ec2cc9 Put the link flag in the right place.
Pointed out by Paul@pgoyette.bdt.com (Paul Goyette).
1995-11-30 14:25:40 +00:00
briggs f9ba6adcd7 Add rd_root.c from sun3. 1995-11-21 04:53:20 +00:00
briggs 9a1fb2674a Fixup error/debugging message. 1995-11-01 04:59:03 +00:00
briggs c587e77144 Remove bogus assignment. 1995-11-01 04:58:21 +00:00
briggs 680ada5add port-mac/1707: mac68k mouse drag problems with Cmd+arrow keys
from Ken Nakata <kenn@remus.rutgers.edu>
1995-11-01 04:40:21 +00:00
briggs 8218c4005c Pull in all but one of Leo's changes from the atari copy. 1995-10-31 15:32:35 +00:00
briggs f5fae9d016 Port of Sun3/Sparc zs driver from wrstuden@loki.stanford.edu
(Bill Studenmund).  Should be massaged into machine independence
for 1.2.
1995-10-09 12:42:16 +00:00
briggs 685b9057c2 Pick up changes from leo's latest version. 1995-10-08 17:25:19 +00:00
briggs d510375b06 Change to allow nack_message() to take an argument and send
MSG_REJECT_MESSAGE instead of MSG_ABORT when we get an extended message.
This allows a DEC drive to work when it attempts to negotiate synch.
transfers on us.
1995-10-02 09:03:53 +00:00
briggs 0066d1a66f Finally get this right... Final fix from Paul Goyette paul@pgoyette.bdt.com 1995-10-01 05:10:20 +00:00
briggs c1138ce68a Yet another error in the (next-to) last changes. 1995-09-30 21:34:54 +00:00
briggs 890baf19ea Fix stupid error in one of my last changes here. 1995-09-30 19:42:34 +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 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 e8dbcda856 Do not define MIN_PHYS here--it is m.d.. 1995-09-18 13:52:43 +00:00
briggs a106882a85 Only use PIO instead of PDMA if DRIVER_NOINT. 1995-09-16 18:22:33 +00:00
briggs a8b0260a05 Sync. with atari ncr5380.c -- mainly whitespace changes. 1995-09-16 15:06:55 +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 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 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 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 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 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 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
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 503d3c4927 Add constants for CSI's communications card. 1995-08-25 21:20:57 +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 ae51ffca30 Always fail when probed--until this driver works. 1995-08-14 03:55:28 +00:00
mycroft 80d7b0695a minphys() functions really should return void. 1995-08-12 20:30:45 +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 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 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 139f62c079 Add support for Farallon from Brian Gaeke (brg@dgate.org). 1995-07-30 13:38:04 +00:00
briggs cf0aca3cb4 Read the packet header count in bytes, not as a word--word reads return
invalid data on some cards (notably old Apple Ethernet NB and Farallon
cards at least).
1995-07-30 02:44:27 +00:00
briggs a2f49ac930 Don't show up in "slot" 0xe.\n 1995-07-28 01:34:58 +00:00
cgd ffe4785a58 update SCSI minphys routines' definitions to match standard minphys()
definition and usage.
1995-07-24 07:33:32 +00:00
briggs c5724ea3a3 Some more bugs fixed and functionality corrected by:
"Paul R. Goyette" <paul@pgoyette.bdt.com>.
Implemeted the Set Scrolling Region, Set Tab Stop, and Clear All
Tab Stops functions.
1995-07-17 01:24:34 +00:00
briggs 30c70a7c59 patch to handle cursor moves better. From Paul Goyette
(Paul@pgoyette.bdt.com)
1995-07-09 15:36:41 +00:00
briggs 3758e23b79 Add another routine for the grf display-specific drivers to return a physical
address.
1995-07-06 17:13:45 +00:00
briggs d1d1fbc094 Put in a cast to make compiler happy. 1995-07-06 04:17:15 +00:00
briggs f3274364d4 Fix a bug I introduced earlier. 1995-07-06 00:28:32 +00:00
briggs 38031d912a First cut at a kludge for IIvx internal video. 1995-07-04 18:55:11 +00:00
briggs 2e4f1e0daa Update a bit. 1995-07-04 14:38:49 +00:00
briggs 2510a4f689 A few nits. 1995-07-04 14:38:34 +00:00
briggs 1040af3492 Add missing interface for getting a grfmode structure from kernel. 1995-07-02 05:26:27 +00:00
briggs ed434b457d Fix grfmap() as well as grfmmap(). 1995-07-02 00:49:52 +00:00
briggs 932a8fc9af Set and use new fboff element from grfmode structure. 1995-07-02 00:30:25 +00:00
briggs 3401cca400 Fix buglet that was missed when converting nubus to non pa==va mapping. 1995-07-01 23:40:38 +00:00
briggs 705e6bd12b Fix oversight. 1995-06-30 05:21:33 +00:00
briggs 29bb03860c Option key fix from Ken Nakata (kenn@remus.rutgers.edu). 1995-06-30 01:23:21 +00:00
cgd 2b71eae2c7 note that most of dev/ic's contents have changed names 1995-06-28 04:30:30 +00:00
briggs b1598cdd1b Remove a compile warning. 1995-06-25 02:46:46 +00:00
briggs 7542473d6d Clean up I/O base settings a bit. 1995-06-21 03:03:13 +00:00
briggs 697011742c Add some debugging (conditional on DEBUG). Add a more correct probe for
internal video.  Clean up nubusprint() a bit.
1995-06-21 02:59:08 +00:00
briggs e4ff96e47c Make NUBUS_BASE_TO_SLOT and reverse not depend on VA==PA for NuBus.
Add constant for DRSW_FARALLON.
1995-06-21 02:57:19 +00:00
briggs 6ff2537ad3 Make no assumptions about the absolute address of nubus cards. 1995-06-21 02:52:09 +00:00
briggs cb00a78de3 Treat 0 as a failure case for ae_id_card() and take out
null-op check for a 0 addrlist in init.
1995-06-21 02:50:22 +00:00
briggs f462aa095a Be a bit more careful on the probe... Make sure that the current slot's
addresses contain the int_video_start--or assume that internal video is
is "slot" 0xE.
1995-06-21 02:48:00 +00:00
briggs d37674426a "Always compile before you commit." 1995-06-09 02:19:47 +00:00
briggs 90caf013ba In the interrupt routine, bail out if we've not been initialized, yet. 1995-06-08 12:52:02 +00:00
briggs 56b5c26854 Get rid of a printf() that got left behind in the probe. 1995-05-06 18:44:48 +00:00
briggs 331e2bd82b Add some code/defines to differentiate Asante and Interlan/Gator cards
correctly with the new nubus code.
1995-05-05 05:40:13 +00:00
briggs 59b4da2b39 Add new nubus handling that's much more robust.
Update via, if_ae, and grf accordingly.
Revamp grf.
1995-04-29 20:23:36 +00:00
briggs a992a8136c Add some multicast byteorder-related changes from djh@mulga.cs.mu.OZ.AU. 1995-04-22 12:08:12 +00:00
briggs 5982b968a9 Enable nubus interrupts after registering. 1995-04-21 04:01:27 +00:00
briggs 6bc53a2398 Handle grf_softc in the config.new manner.
Should have been done long ago.
1995-04-21 03:44:13 +00:00
briggs 13efb6c197 First pass of KNFication. Needs more. 1995-04-21 02:47:35 +00:00
briggs 85025d789c Prototype iteopen correctly (oversight from a while back...). 1995-04-20 15:46:56 +00:00
briggs a6ba5f8f7e Update to use softc better and handle mainbus being indirect. 1995-04-20 15:32:01 +00:00
briggs 4137a8ff57 Add itetty(). 1995-04-20 15:27:43 +00:00
briggs a7f44caf1b Add a sertty() and update to use ser_softc instead of a bunch of arrays
everywhere.
1995-04-20 15:27:12 +00:00
briggs bf68945da5 Define struct ae_ring which is necessary because BYTE_ORDER == BIG_ENDIAN,
but the card is in x86 byte order mode because NuBUS does the swap "for us"
on 16- and 32-bit transfers.  We should probably figure some way to use
the std struct ed_ring if/when all the 8390 drivers are all fully merged.
1995-04-19 04:46:06 +00:00
briggs 2b1a13ab2f Initialize totlen in ae_put. Thanks to chopps for pointing it out!
Also, switch back from using struct ed_ring to using struct ae_ring
because BYTE_ORDER == BIG_ENDIAN, but the card is in x86 byte order
mode because NuBUS does the swap "for us" on 16- and 32-bit transfers.
We should probably figure some way to use the std ed_ring if/when
all the 8390 drivers are all fully merged.
1995-04-19 04:43:36 +00:00
briggs 38cb076019 Get this working. Mainly, don't always round to word transfers on
receive.
1995-04-16 00:14:54 +00:00
briggs f93fa3c440 Update interrupts to use (void *client_data) instead of (int unit) as
parameter to interrupt function.
1995-04-13 04:04:58 +00:00
briggs c9e2e6e2a8 Update to use dev/ic/dp8390.h. Mostly from mycroft.
Still get extra data on either transmit or recieve, but want to
checkpoint this work.
1995-04-13 03:58:18 +00:00
briggs 2bc91b9c2c Almost working synch with if_ed.c. Much by mycroft. Fixups by me.
Inserts garbage characters--this driver isn't ready for use quite yet.
1995-04-12 15:01:14 +00:00
briggs 13dc6a7a07 Make nubus indirect. Duh. 1995-04-12 14:57:40 +00:00
briggs 09ba51f21e Fix typo from last changes. 1995-04-12 14:55:45 +00:00
mycroft 7114c30418 Use global 8530 defs. 1995-04-11 03:00:38 +00:00
mycroft 8f8bccf41f Switch grfmap and grfmmap. 1995-04-10 07:56:46 +00:00
briggs c17558aa9b Fixup types of a few functions to match if.h structure. 1995-04-08 20:55:26 +00:00
briggs 7e4d7125a3 Back to previous version of the serial driver until we can figure out
why the new one gets a lot of overflows and doesn't work on the IIsi
or IIvx at all.
1995-04-08 13:20:52 +00:00
briggs 870235352d Print a diagnostic if we do hit the watchdog and recover w/o resetting. 1995-04-08 13:17:55 +00:00
briggs 9d7efb1fb0 Do iteon() and iteoff(). Right now, they just clear/draw the cursor and
clear the screen.  "We" should look at updating these further.
1995-03-26 15:52:21 +00:00
briggs bc14b5cbcc Don't count video interrupts. 1995-03-25 22:28:30 +00:00
briggs bb035dee62 KERNEL -> _KERNEL 1995-03-23 20:19:16 +00:00
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