briggs
df0a7e0440
Changes from Michael R. Zucca <mrz5149@cs.rit.edu> for 16-bit and 32-bit
...
console support.
1997-04-08 04:47:08 +00:00
scottr
f1c1f7e54d
Make new ADB driver the default.
1997-04-08 04:21:15 +00:00
scottr
4d9095b0b0
Updates from John Wittkoski for new ADB driver.
1997-04-08 03:19:04 +00:00
scottr
76c66a06b3
Direct-to-hardware ADB interface/driver, written by John P. Wittkoski.
1997-04-08 03:16:18 +00:00
scottr
484820c623
Power Manager interface/driver, written by Takashi Hamada.
1997-04-08 03:11:37 +00:00
scottr
bf23759b27
Add MRG_ADB option.
1997-04-08 03:00:37 +00:00
scottr
b6a4a3826c
Update for current configuration, including sbc reselect mode.
1997-04-08 02:59:16 +00:00
scottr
396cf17033
Fix SunOS user trace trap handling, from Gordon.
1997-04-07 22:54:44 +00:00
scottr
f65f7e9b21
Always enable SCSI IRQ interrupt; the SBC_INTR flag now controls only
...
the SCSI DRQ interrupt, for "blind" transfers.
1997-04-07 05:56:28 +00:00
scottr
29c981b924
Rework PDMA read/write functions based on Matthias Pfaller's pc532 ncr
...
driver. Major highlights:
- Protect with splbio(), now that interrupts from the chip might be
enabled by default;
- Wait for current transfer to complete before returning, rather than
wait for previous transfer to complete before starting another;
- Instead of logging a "timeout" message when a target disconnects,
just return, letting the sbc_ready() and sbc_wait_not_req() print
timeout messages if such really did occur.
With interrupt changes to sbc_obio.c, disconnect/reselect now works if
configured into the kernel.
1997-04-07 05:48:35 +00:00
briggs
99d2687e23
Mask off 'internal slot' in check to see if we should enable nubus intrs.
1997-04-04 15:33:30 +00:00
briggs
28af7de8a4
Do not set DCR_SYNC for the C/Q[68]xx systems.
...
Thanks to Steve Brown <sbrown@best.com> for working with me to find this.
1997-04-04 14:54:44 +00:00
christos
6c015f3a49
Add netatalk netisr
1997-04-03 15:59:54 +00:00
briggs
ca0531b7f4
Add DrHW for RasterOps CB264--From Scott Reynolds--and link it in to the
...
proper interrupt routine.
1997-04-01 13:31:38 +00:00
briggs
71bf5ccd79
Remove tag.
1997-04-01 13:31:03 +00:00
briggs
a3d5b32614
- Support DAFB machines mo' better. Actually detect if a monitor is
...
present and initialize a few things. No color support, yet.
- Properly disable interrupts for DAFB.
- Rearrange for better nubus display card interrupt support. Only register
an interrupt if we know how to clear it.
- Complain if we don't know about a given display card and can not install
an interrupt handler.
- Change MYSTERY stuff to cb264--still need to get the DrSW so we can
actually call the routine to clear an interrupt from this card.
1997-04-01 05:41:59 +00:00
briggs
2606fe6cbd
Some new SONIC code from Denny Gentry <denny1@home.com> with a couple of
...
tweaks and bug fixes by yours truly.
Here's what Denny had to say:
nubus.h:
- add a drsw entry for my card
[ I also added a couple of constants for more display cards ]
if_sn.c:
- allocate sc->space using malloc (Scott wanted this).
- make csr accesses use NIC_PUT/GET, remove sc->sc_csr.
- add multicast and IFF_PROMISC support. multicast isn't
well tested, but I made sure the unicast case still
works.
- finish the new arp interface, remove sc->sc_enaddr
if_snreg.h:
- remove struct sonic_reg
if_snvar.h:
- add NIC_PUT and NIC_GET macros a la if_ae
- remove sc_txhead, it isn't used.
if_sn_nubus.c:
- clean up support for my SE/30 card.
- Move add_nubus_intr from if_sn.c (to keep if_sn.c MI)
if_sn_obio.c:
- make Q610, C610, Q650, C650, Q800 use EXBUS.
- PB500 had a "return" where "break" was intended. PB500
probably wasn't working.
- move add_nubus_intr from if_sn.c.
- add an "explanation" why Apple's ethernet addr is encoded
in token ring format in the PROM.
1997-03-30 19:51:44 +00:00
briggs
e15f7fac43
Fix bug that would have prevented PB5xx series from detecting the SONIC.
...
Bug noticed by Denny Gentry.
1997-03-29 02:34:40 +00:00
thorpej
cb24b0200a
Don't allocate mclrefcnt[]; it's dead and gone.
1997-03-27 21:01:20 +00:00
gwr
37b247edde
Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/
1997-03-26 22:42:13 +00:00
gwr
71e43d14ab
Move findroot/setroot stuff from configure() to cpu_rootconf().
1997-03-26 22:38:40 +00:00
scottr
9614615f6f
Add se driver
1997-03-24 18:28:40 +00:00
scottr
5fd56d4f40
Add se, and make some comsmetic changes for easier maintenance.
1997-03-24 18:20:10 +00:00
scottr
f3f27175b6
Clean up after arp conversion; from Erik Bertelsen, closes PR 3372.
1997-03-21 21:42:39 +00:00
scottr
1c9987dab4
Several minor changes:
...
- Indent some comments appropriately per KNF.
- Output all diagnostics using the device name rather than a static string.
- Fix a (mostly marmless) bug in snintr(), where loss of heartbeat wasn't
properly ignored and could mask the `receive descriptors exhausted'
diagnostic.
1997-03-20 17:47:51 +00:00
scottr
1c0a3c8ce7
Several more changes to move us toward MI-ness:
...
- Use more consistent and portable types in the softc.
- Map registers using an array of bus_size_t offsets, and set up the
mapping in the attach code (thanks to Jason Thorpe for suggesting
this!).
- Disable the ae-specific watchdog, which is no longer necessary in
the general case.
Still remaining: split out functions used to copy data to/from the
card, and retain a way to have a local driver name with the MI code.
1997-03-19 08:04:38 +00:00
briggs
79c7b2b3f4
Help this compile and get the nubus address into myaddr instead of
...
sc->sc_arpcom.ac_enaddr.
1997-03-18 00:34:31 +00:00
scottr
52348e9646
Some cards we identify as InterLAN cards do not seem to have the MAC
...
address in the configuration ROM. For these, fall back to the old method
if we can't find the expected sResource record.
1997-03-17 20:26:01 +00:00
gwr
08f7a407f9
Separate bcopy and copypage stuff from copy.s
1997-03-17 19:46:36 +00:00
scottr
3c9709606d
Clean up some missed pieces of the new ARP conversion.
1997-03-17 18:37:17 +00:00
briggs
b315c448dc
Flip around Takeshi Yanagisawa's name. Add back a physaccess() call that I was a bit hasty
...
in removing.
1997-03-17 13:11:24 +00:00
briggs
559613a9a7
*Blush* It's Denton, not Dennis, Gentry.
1997-03-17 12:26:52 +00:00
briggs
e716e490a1
Make this compile again. XXX - save ethernet address in softc until multicast is supported.
1997-03-17 04:57:56 +00:00
briggs
c20d7dc997
Integrate a couple of changes suggested by Scott Reynolds and Takeshi Yanagisawa.
1997-03-17 04:38:28 +00:00
is
530a88d144
On request from Allen Briggs, converted this to new ARP
...
system. Somebody should actually test if this compiles (and works) on
Mac68k... I only carefully checked cvs diff -u.
1997-03-16 13:41:14 +00:00
thorpej
b6f3695cd1
Use <m68k/m68k/support.s>
1997-03-16 11:04:52 +00:00
briggs
4b6b2bb9f8
SONIC driver--originally from pica. Much work done by Dennis Gentry and
...
Takeshi Yanagisawa to get it working. Some minor hacking by me here and
there.
1997-03-15 20:26:35 +00:00
briggs
6f71d88157
Specify SONIC for 040 powerbooks and for CLASSQ and CLASSQ2 machines.
1997-03-15 20:17:40 +00:00
briggs
6fc69ce7cb
Add SONIC driver. Works on my Q700. Untested elsewhere.
1997-03-15 20:07:37 +00:00
scottr
cc391b64de
Remove obsolete MAC68K_BROKEN_VIDEO option.
1997-03-15 18:35:47 +00:00
scottr
702735759b
Defer enabling NuBus slot interrupts until all slots have been probed
...
and drivers attached. This removes the need for the MAC68K_BROKEN_VIDEO
option. From Allen Briggs.
1997-03-15 18:33:44 +00:00
is
07b064e02e
New ARP system, supports IPv4 over any hardware link.
...
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.
For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
briggs
3d16e320d6
Move physaccess/physunaccess prototypes.
1997-03-15 05:39:45 +00:00
mycroft
f868dff8d3
Define the `cleankernel' target consistently with other ports.
1997-03-14 23:27:29 +00:00
scottr
12098dae8a
Add missing call to ae_nb_get_enaddr(), from <kei_sun@ba2.so-net.or.jp>.
...
Fixes PR 3312.
1997-03-10 17:55:15 +00:00
briggs
47392571c5
Undo some damage that CVS somehow let me get away with.
1997-03-06 02:14:51 +00:00
briggs
a2173962b8
Copyright foo.
1997-03-05 15:19:18 +00:00
scottr
fd81cf2b92
Correct offsets in the memory size probe; bus_space uses byte offsets. Fix suggested by
...
Ken Nakata.
1997-03-04 15:12:04 +00:00
scottr
956ec2a47c
The previous optimization of the interrupt handlers was a bit too
...
agressive. Being a little more conservative pays the biggest dividend.
1997-03-04 04:11:52 +00:00
scottr
f749003301
Fix part of last change: don't mask off the high bit of the VIA IER until
...
the interrupt has been unflagged. Problem noticed by Paul Goyette.
1997-03-03 04:19:06 +00:00
scottr
93d8b2c8b0
Add the MAC68K_BROKEN_VIDEO option, which is a hack that delays enabling
...
NuBus interrupts until an Ethernet card is attached.
XXX This should go away at some point, obviously.
1997-03-02 06:43:00 +00:00
scottr
152b0ab7d2
Adapt to sbc driver/attachment split
1997-03-01 20:22:16 +00:00
scottr
421abedbfe
Split bus-dependent autoconfig code from the driver. This allows for
...
the future addition of a Duo Dock front end.
1997-03-01 20:18:58 +00:00
scottr
df7f40213a
Allow A1 to be used for passing arguments to ROM routines. Also, clean up
...
debugging printf() formats. From Allen Briggs and Paul Goyette.
1997-03-01 17:20:34 +00:00
scottr
a4b0e4c070
Protect MCLSHIFT definition so users can customize MCLBYTES, from Jonathan.
1997-03-01 06:57:45 +00:00
scottr
42be6ebfa7
Fix prototype for espmatch()
1997-03-01 06:38:36 +00:00
scottr
215c0b896a
Convert to generalized VIA interrupt registration
1997-02-28 15:50:50 +00:00
scottr
705c637874
Define aesetup() to return an int, so that the attach function can
...
determine whether there was an error (if so, we unmap the slot space
for this device). Use this functionality to tell the attach function
that we couldn't clear the card's buffer.
Also in aesetup(), eliminate the bogus repetition of the error message
we print when the buffer clear actually fails. Noticed by Hauke Fath.
1997-02-28 08:56:05 +00:00
scottr
0b3eb5f3f2
Remove duplicate <machine/bus.h> include that crept in.
1997-02-28 07:54:02 +00:00
scottr
17fdd597df
Move the NuBus-specific watchdog function from if_ae.c to if_ae_nubus.c,
...
and allow the attach function to override the default watchdog. Also,
do some minor cosmetic surgery (rename bus space tags/handles and some
KNFing I missed the first time around).
1997-02-28 07:52:44 +00:00
scottr
359101fb43
Convert to generalized VIA interrupt registration
1997-02-28 07:46:59 +00:00
scottr
8f37a2983b
Generalize VIA1 and VIA2 interrupt registration a bit, and do a slight
...
optimization on the VIA interrupt handlers.
1997-02-28 07:41:41 +00:00
briggs
5933eeaaed
Add ncr53c9x flag to esp.
1997-02-27 14:07:59 +00:00
briggs
868344972a
mac68k-specific portion of m.i. ncr53c9x driver.
1997-02-27 14:06:25 +00:00
gwr
2de163471e
Minimal changes to adapt to removal of NCR5380_PERMIT_RESELECT.
...
This driver should be updated to allow per-target control over
disconnect/reselect, but I will leave that to the port masters.
1997-02-26 22:29:08 +00:00
scottr
a2a40938b1
Move bus-independent setup code back into if_ae.c; enable the use of
...
configuration flags. For NuBus cards, attempt to find the MAC address
in the declaration ROM resources.
1997-02-25 06:36:04 +00:00
fvdl
115b6d92fa
Define ALIGNED_POINTER
1997-02-24 23:16:53 +00:00
scottr
f03ee128a3
Add support for the Kinetics EtherPort SE/30, from Ken Nakata.
1997-02-24 07:34:18 +00:00
scottr
965cffaf20
NUBUS_SLOT_TO_PADDR -> NUBUS_SLOT2PA
1997-02-24 06:20:04 +00:00
scottr
155eb6369a
Update to reflect ae driver/attachment code split
1997-02-24 06:05:20 +00:00
scottr
6b0774a865
Split out the NuBus attachment code, and convert to bus.h
1997-02-24 06:03:55 +00:00
scottr
5e77023e13
The bus space tag really isn't used; stop the compiler from complaining.
1997-02-24 05:55:14 +00:00
scottr
9c91a181d6
Update copyright and license.
1997-02-24 05:47:33 +00:00
scottr
7524900a0f
Remove niggles that made it into the copyright, and correct the
...
license terms (added Jason Thorpe).
1997-02-22 04:56:17 +00:00
scottr
db2ab09cf2
Add bus.h, in light of recent nubus_attach_args changes
1997-02-22 02:17:40 +00:00
scottr
ec6725f267
Make this compile again; missed this file when fixing nubus.h errors.
1997-02-22 00:00:34 +00:00
scottr
5c8de7766a
Implement bus_space_set_multi_N(), bus_space_set_region_N(), and
...
bus_space_copy_N(). Bus space support is now complete.
1997-02-20 05:53:00 +00:00
scottr
b1e5912330
We need bus.h now, due to recent nubus_attach_args change.
1997-02-20 00:23:25 +00:00
scottr
c079123e89
Add a bus space tag field to nubus_attach_args
1997-02-19 06:21:49 +00:00
scottr
25c49f276f
Revive in simplified form; include GENERIC and enable md_root hooks.
1997-02-14 06:27:20 +00:00
scottr
150538df02
Add memory disk pseudo-device
1997-02-14 06:23:14 +00:00
scottr
0b91c7f0cb
Use MAKEBOOTDEV macro to construct bootdev
1997-02-14 06:15:30 +00:00
scottr
662401449a
Remove incorrect comment re: bootdev
1997-02-14 06:13:50 +00:00
scottr
967e257614
Implement bus_space_alloc() and bus_space_free(), borrowed from i386.
1997-02-14 06:10:53 +00:00
scottr
6066941306
Add prototypes for bus_space_alloc() and bus_space_free()
1997-02-14 06:02:57 +00:00
scottr
f6f4cf1d40
Remove redundant info from bus_space_map() diagnostic in ascattach()
1997-02-13 19:55:48 +00:00
scottr
0f53b79607
#include <sys/systm.h> to bring in printf() prototype
1997-02-13 19:42:42 +00:00
scottr
603a2bd8f4
Add hsk and drq locators, which will be used only by SCSI devices.
1997-02-13 19:01:07 +00:00
scottr
ed573bfb7c
Split the obio interface into two forms: optional address only for most
...
devices (obio_norm) or optional address, HSK, and DMA for 5380-based SCSI
controllers (obio_scsi5380). Update all obio-attached drivers
appropriately.
Also, attach fpu to mainbus, rather than obio.
1997-02-13 18:59:06 +00:00
scottr
570e1f1eb2
Attach the fpu to mainbus, not obio
1997-02-13 17:29:43 +00:00
scottr
7e1c9811f9
Move asc0 here from std.mac68k. Remove COMPAT_SUNOS, as it's dead weight
...
on this machine. Add some minimal driver descriptions.
1997-02-12 04:47:05 +00:00
scottr
362d7e5473
Move asc0 here from std.mac68k. Add some minimal driver descriptions.
1997-02-12 04:31:35 +00:00
scottr
8807428ab4
Move asc0 here from std.mac68k, and enable PFIL_HOOKS option so that
...
the if_ipl LKM can be loaded. Add some minimal driver descriptions.
1997-02-12 04:29:10 +00:00
scottr
cdcbc525e6
Move asc to individual kernel config files
1997-02-12 04:26:05 +00:00
scottr
f5ac9d5deb
Add a bus space tag field to obio_attach args, initialize it in
...
obio_search(), and use it in the ASC driver. Thanks to Jason for
pointing this out. Minor KNFing while I'm here.
1997-02-11 22:44:25 +00:00
scottr
f9e4592ed5
Add an addr locator to obio.
1997-02-11 21:25:07 +00:00
scottr
78098d98dc
Remove dependency on asc driver, using generic console bell callback
...
instead. Bell parameters are now entirely self-contained, as they
are managed by ite-specific ioctl()'s.
1997-02-11 07:51:18 +00:00
scottr
77e960bf17
Complete revamp of Apple Sound Chip support. The ASC can now be accessed
...
as a real device whose registers and buffers are available through mmap(2),
which makes further development of the driver considerably less painful.
1997-02-11 07:47:36 +00:00
scottr
2a2a70d39c
Initialize and use extent manager for bus space mapping functions.
...
Tweak bus_space_{tag,handle}_t types slightly to facilitate this.
1997-02-11 07:37:41 +00:00
scottr
154aa56b01
Add asc character device; kill cdev_grf_init() macro.
1997-02-11 07:35:49 +00:00