Home | History | Annotate | Download | only in nubus
History log of /src/sys/arch/mac68k/nubus/if_sn_nubus.c
RevisionDateAuthorComments
 1.30  20-Feb-2021  rin sn(4): Add rnd(9) support.
 1.29  23-Apr-2008  tsutsui branches: 1.29.102;
Split softc/device_t and misc cleanup for sn(4).
 1.28  17-Oct-2007  garbled branches: 1.28.16; 1.28.18;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.27  10-Jun-2007  tsutsui branches: 1.27.10;
Switch mac68k's sn(4) Ethernet to MI SONIC driver.

Tested with Apple Ethernet CS Twisted-Pare Card on LC630 by me
and Quadra 650 on-board Ethernet by hauke@.
NuBus based cards and PowerBook variants are still untested.
 1.26  11-Dec-2005  christos branches: 1.26.30; 1.26.32; 1.26.38;
merge ktrace-lwp.
 1.25  03-Jun-2005  rjs branches: 1.25.2;
Add const.
 1.24  15-Jan-2005  chs de-__P, remove register, ansify, b* -> mem*.
 1.23  15-Jul-2003  lukem __KERNEL_RCSID()
 1.22  02-Oct-2002  thorpej branches: 1.22.6;
Use CFATTACH_DECL().
 1.21  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.20  29-Sep-1999  scottr branches: 1.20.16; 1.20.20;
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.
 1.19  05-Jul-1998  jonathan branches: 1.19.8; 1.19.10;
defopt INET, NETATALK.
 1.18  02-May-1998  scottr 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.
 1.17  26-Oct-1997  briggs The 16- and 32-bit Apple card types got reversed somehow.
 1.16  11-Aug-1997  scottr branches: 1.16.4;
Make #include directives consistent. All MD headers are of the form:

#include <mac68k/{dev,mac68k}/foo.h>
 1.15  26-Jun-1997  scottr branches: 1.15.4;
Identify and use the Apple Twisted Pair NB card properly, from PR 3789
submitted by Denny Gentry <denny1@home.com>; investigation on the hardware
done by Bob Nestor.
 1.14  15-Jun-1997  scottr Update from Denny Gentry <denny1@home.com>, PR 3685:

Simplify the way transmit buffers are managed, remove assumptions about
NBPG, simplify sonic_get handling, update snioctl to be more like other
current drivers, and probably a few other changes I've now forgotten about.
 1.13  11-May-1997  scottr Implement new NuBus slot space mapping/probing code, utilizing bus.h (and
our MD bus_space_probe() extension). This has several side effects:

- NuBus drivers must map and unmap slot space, rather than relying
on this happening before they are attached.
- Functions exported to NuBus drivers from nubus.c now need to be
supplied with a bus space tag/handle pair.
- Old bus map/peek functions can be garbage collected, as can pmap
support for the same.

Because of some current limitations of the bus space specification, we
are violating the abstraction in grf_mv (NuBus grf driver). All such
violations are clearly marked /* XXX */, and must be addressed when
the specification is updated.
 1.12  01-May-1997  briggs Treat drhw 118 and 119 the same for Apple ethernet cards.
 1.11  30-Apr-1997  scottr Remove dependency on if_aereg.h for vendor constants; these are really
driver-, not architecture-specific.
 1.10  22-Apr-1997  scottr Remove obsolete drsw diagnostic; make formatting consistent; KNF.
 1.9  22-Apr-1997  briggs Make sure that we unmap the space that we mapped if we can't identify the card.
 1.8  22-Apr-1997  briggs Initialize 'offset' to make gcc happy.
 1.7  14-Apr-1997  briggs Use an offset parameter when loading the reg_map--some cards use the "other"
16 bits of the words.
 1.6  13-Apr-1997  briggs Oops. We do not want to unmap something that we've used bus_space_subregion
to get.
 1.5  13-Apr-1997  briggs Some updates based on information from Bob Nestor <rnestor@metronet.com>
about his SONIC-T LC/PDS card.
 1.4  10-Apr-1997  briggs Changes from Denny Gentry <denny1@home.com>:
Change in the way receive buffer areas are handled. Before we gave
the chip 16 buffers, each 1536 bytes (big enough for one packet).
Now we're handing the chip 8 buffers, each 4 Kbytes, and letting
the chip fit as many packets as it can in each one. This should
help keep it from running out of buffer space. Also make some of
the performance-crucial routines inline. It made no measurable
difference except to make me feel better

Changes from Bob Nestor <rnestor@metronet.com> to get closer to support
for his Apple SONIC-based nubus card.

Changes from me to try to get SONIC's MAC address from MacOS settings if
we can't read the PROM space.
 1.3  30-Mar-1997  briggs 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.
 1.2  16-Mar-1997  is 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.
 1.1  15-Mar-1997  briggs 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.
 1.15.4.1  23-Aug-1997  thorpej Update marc-pcmcia branch from trunk.
 1.16.4.1  27-Oct-1997  mellon Pull rev 1.17 up from trunk (briggs)
 1.19.10.1  27-Jun-2000  he Pull up revision 1.20 (requested by scottr):
Add support for the Macintosh LC Ethernet Adapter. This was
previously erroneously recognized as an 8390-based card, where
in fact it is using the 83932 (SONIC) controller.
 1.19.8.1  01-Nov-1999  scottr Sync with main branch.
 1.20.20.1  18-Oct-2002  nathanw Catch up to -current.
 1.20.16.1  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.22.6.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.22.6.4  17-Jan-2005  skrll Sync with HEAD.
 1.22.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.22.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.22.6.1  03-Aug-2004  skrll Sync with HEAD
 1.25.2.1  03-Sep-2007  yamt sync with head.
 1.26.38.1  26-Jun-2007  garbled Sync with HEAD.
 1.26.32.1  11-Jul-2007  mjf Sync with head.
 1.26.30.1  15-Jul-2007  ad Sync with head.
 1.27.10.1  06-Nov-2007  matt sync with HEAD
 1.28.18.1  18-May-2008  yamt sync with head.
 1.28.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.29.102.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed