Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/next68k/dev/if_xe.c
RevisionDateAuthorComments
 1.29  05-Jul-2024  rin sys: Drop redundant NULL check before m_freem(9)

m_freem(9) safely has accepted NULL argument at least since 4.2BSD:
https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c

Compile-tested on amd64/ALL.

Suggested by knakahara@
 1.28  03-Feb-2023  tsutsui branches: 1.28.6;
TAB/space cleanup.
 1.27  21-Nov-2020  thorpej malloc(9) -> kmem(9)
 1.26  10-Nov-2019  chs branches: 1.26.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.25  25-Apr-2019  msaitoh - KNF.
- Use __arraycount.
- Remove extra 'n' from debug printf.
 1.24  10-Jun-2016  ozaki-r branches: 1.24.18;
Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.
 1.23  25-Mar-2014  christos branches: 1.23.6;
fix sprintf debugging mess.
 1.22  27-Oct-2012  chs branches: 1.22.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.21  24-Apr-2010  dbj branches: 1.21.8; 1.21.18;
switch from 4 clause to 2 clause BSD license.
 1.20  19-Jan-2010  pooka branches: 1.20.2; 1.20.4;
Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client. This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached. However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff. ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
 1.19  26-Oct-2009  cegger kill extra whitespaces
reviewed by tsutsui@
 1.18  18-Mar-2009  cegger bcopy -> memcpy
 1.17  11-Dec-2005  christos branches: 1.17.78; 1.17.86; 1.17.92;
merge ktrace-lwp.
 1.16  19-Jan-2005  chs de-__P, remove register, ansify.
 1.15  11-Aug-2004  perseant branches: 1.15.4;
Allow compilation in the absence of DIAGNOSTIC and/or DEBUG options.
 1.14  15-Jul-2003  lukem __KERNEL_RCSID()
 1.13  03-May-2003  wiz branches: 1.13.2;
DMA, not dma nor Dma.
 1.12  20-Jan-2003  bouyer bzero the part of the buffer used to pad the packet to
ETHER_MIN_LEN - ETHER_CRC_LEN.
 1.11  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.10  01-Oct-2002  provos more trailing \r cleanup; pointed out by wiz
 1.9  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.8  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.7  11-Sep-2002  mycroft Comprehensive patches from Christian Limpach:
* Fix problems with the DMA and SCSI drivers.
* Make turbo machines sort of work.
Additional fixes from me:
* Determine if we're a turbo at boot time, by looking at the ROM machine type.
* Set the display size correctly (1120 pixels wide, but padded to 1152 only on
non-turbo machines).
Caveats:
* SCSI doesn't work on the turbo (or at least it blows chunks with no devices
attached).
* Media selection doesn't work on the turbo (the BMAP stuff doesn't exist on
turbo machines).
* The boot block is prone to timing out.
 1.6  11-Jul-2002  christos Apply patches from Christian Limpach:

- NeXT label reading support
- SCSI dma fixes
- media support for if_xe.c

Some of these need more cleanup, but at least make SCSI support usable on
the NeXT.
 1.5  31-Mar-2001  dbj branches: 1.5.2; 1.5.8; 1.5.16;
comment out device register structure definitions, used for reference only.
remove unnecessary BUS_SPACE_MAP_LINEAR when mapping ethernet dma registers.
 1.4  01-Jun-2000  matt branches: 1.4.4;
Make booted_device global (and booted_parition for consitency).
Eliminate it from header files and other extern definitions.
 1.3  13-Feb-1999  dbj branches: 1.3.8; 1.3.16;
Continued work on esp scsi driver. Now can at least do enough i/o to create and mount
a filesystem, but is not stable enough yet for general use.
increased priority of ethernet interrupts, mostly useful to aid debugging
of scsi interrupts while using an nfs disk.
added additional debugging output in the next dma driver.
perform extranneous cache flushes/purges before dma reads/ after dma writes
to aid debugging of scsi dma.
 1.2  05-Jul-1998  jonathan defopt INET, NETATALK.
 1.1  09-Jun-1998  dbj branches: 1.1.1;
Initial revision
 1.1.1.1  09-Jun-1998  dbj Initial import of NetBSD/next68k.
 1.3.16.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.3.8.2  21-Apr-2001  bouyer Sync with HEAD
 1.3.8.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.4.4.1  09-Apr-2001  nathanw Catch up with -current.
 1.5.16.1  16-Jul-2002  gehenna catch up with -current.
 1.5.8.4  18-Oct-2002  nathanw Catch up to -current.
 1.5.8.3  17-Sep-2002  nathanw Catch up to -current.
 1.5.8.2  01-Aug-2002  nathanw Catch up to -current.
 1.5.8.1  31-Mar-2001  nathanw file if_xe.c was added on branch nathanw_sa on 2002-08-01 02:42:48 +0000
 1.5.2.2  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.5.2.1  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.13.2.5  24-Jan-2005  skrll Sync with HEAD.
 1.13.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.13.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.13.2.2  12-Aug-2004  skrll Sync with HEAD.
 1.13.2.1  03-Aug-2004  skrll Sync with HEAD
 1.15.4.1  29-Apr-2005  kent sync with -current
 1.17.92.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.17.86.1  28-Apr-2009  skrll Sync with HEAD.
 1.17.78.3  11-Aug-2010  yamt sync with head.
 1.17.78.2  11-Mar-2010  yamt sync with head
 1.17.78.1  04-May-2009  yamt sync with head.
 1.20.4.1  30-May-2010  rmind sync with head
 1.20.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.21.18.3  03-Dec-2017  jdolecek update from HEAD
 1.21.18.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.18.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.8.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.21.8.1  30-Oct-2012  yamt sync with head
 1.22.2.1  18-May-2014  rmind sync with head
 1.23.6.1  09-Jul-2016  skrll Sync with HEAD
 1.24.18.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.24.18.1  10-Jun-2019  christos Sync with HEAD
 1.26.8.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.28.6.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed