The NetBSD Project

CVS log for src/sys/dev/ic/dm9000.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / ic

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 7 07:22:18 2023 UTC (9 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Fix locking error when setting the multicast filter to accept all
multicast frames, pointed out by Lwazi Dube.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Sep 25 18:43:32 2022 UTC (18 months, 3 weeks ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored)

Remove unnecessary include of <sys/malloc.h>.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Sep 18 17:54:46 2022 UTC (19 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +13 -17 lines
Diff to previous 1.33 (colored)

Eliminate use of IFF_OACTIVE.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 31 14:25:22 2021 UTC (2 years, 3 months ago) by riastradh
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

sys: Use if_init wrapper function.

Exception: Not in kern_pmf.c, for the kind of silly reason that it
avoids having kern_pmf.c refer to symbols defined only in net; this
avoids a pain in the rump.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Dec 5 07:26:35 2021 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

s/receieve/receive/

Revision 1.31 / (download) - annotate - [select for diffs], Wed Nov 10 17:19:30 2021 UTC (2 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

s/endianess/endianness/

Revision 1.30 / (download) - annotate - [select for diffs], Sat Sep 11 20:28:06 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Add missing double p and d for stopped and overriden accordingly.
Fix few more typos along the way, mainly in copy-pasted comments.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jun 27 13:34:20 2020 UTC (3 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

prop_data_data_nocopy -> prop_data_value

Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 2 13:38:50 2020 UTC (4 years ago) by nisimura
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

add aprint_debug_dev() call for CI20

Revision 1.27 / (download) - annotate - [select for diffs], Thu Apr 2 07:26:45 2020 UTC (4 years ago) by skrll
Branch: MAIN
Changes since 1.26: +6 -7 lines
Diff to previous 1.26 (colored)

Fix evmips CI20 build

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 31 07:50:42 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.25: +5 -4 lines
Diff to previous 1.25 (colored)

fix negated loop condition. make break when reset.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 31 02:47:34 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.24: +5 -3 lines
Diff to previous 1.24 (colored)

add comment to clearify hw nature

Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 31 02:32:25 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.23: +571 -673 lines
Diff to previous 1.23 (colored)


- reorgazine the entire structure to utilise ifmedia(4)/mii(4) and
  redefine starting point of debug.
- nuke duplicated standard MII register definition.  Davicom PHY extension
  is defined in dev/mii/dmphyreg.h

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 29 23:16:52 2020 UTC (4 years ago) by nisimura
Branch: MAIN
Changes since 1.22: +36 -39 lines
Diff to previous 1.22 (colored)

reorganise rcv frame address filter code

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jan 29 14:14:55 2020 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

Adopt <net/if_stats.h>.

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 29 10:07:29 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.20: +2 -6 lines
Diff to previous 1.20 (colored)

Even if we don't use MII(4), use the common path of SIOC[GS]IFMEDIA in
sys/net/if_ethersubr.c if we can.
 - Add ec_ifmedia into struct ethercom.
 - ec_mii in struct ethercom is kept and used as it is. It might be used in
   future. Note that some Ethernet drivers which _DOESN'T_ use mii(4) use
   ec_mii for keeping the if_media. Those should be changed in future.

Revision 1.20 / (download) - annotate - [select for diffs], Tue May 28 07:41:48 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

 Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.

Revision 1.19 / (download) - annotate - [select for diffs], Thu May 23 13:10:51 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.18: +12 -12 lines
Diff to previous 1.18 (colored)

 Whitespace fix (mainly tabify).

Revision 1.18 / (download) - annotate - [select for diffs], Thu May 23 10:57:28 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.17: +9 -8 lines
Diff to previous 1.17 (colored)

-No functional change:
  - KNF
  - u_int*_t -> uint*_t.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 24 08:21:25 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.16: +34 -42 lines
Diff to previous 1.16 (colored)

 KNF. No functional change.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 5 06:17:02 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.15: +2 -3 lines
Diff to previous 1.15 (colored)

 Remove very old IFF_NOTRAILERS flag.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:00 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

 Implement the BPF direction filter (BIOC[GS]DIRECTION). It provides backward
compatibility with BIOC[GS]SEESENT ioctl. The userland interface is the same
as FreeBSD.

 This change also fixes a bug that the direction is misunderstand on some
environment by passing the direction to bpf_mtap*() instead of checking
m->m_pkthdr.rcvif.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 22 04:41:57 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (colored)

 Simplify like other drivers. NULL check of ifp->if_bpf is done in
bpf_mtap(), so it's not required to do it here.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 22 04:17:42 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.12: +3 -4 lines
Diff to previous 1.12 (colored)

 It's not required to include net/bpfdesc.h. Remove it.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 29 01:31:20 2017 UTC (6 years, 8 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, nick-nhusb-base-20170825
Branch point for: pgoyette-compat
Changes since 1.11: +7 -2 lines
Diff to previous 1.11 (colored)

Check for MCLGET failure in dme_alloc_receive_buffer.

From Ilja Van Sprundel.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:05 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170204, netbsd-8-base, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.10: +1 -4 lines
Diff to previous 1.10 (colored)

Move bpf_mtap and if_ipackets++ on Rx of each driver to percpuq if_input

The benefits of the change are:
- We can reduce codes
- We can provide the same behavior between drivers
  - Where/When if_ipackets is counted up
  - Note that some drivers still update packet statistics in their own
    way (periodical update)
- Moved bpf_mtap run in softint
  - This makes it easy to MP-ify bpf

Proposed on tech-kern and tech-net

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:13 2016 UTC (7 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:10 2016 UTC (8 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Introduce softint-based if_input

This change intends to run the whole network stack in softint context
(or normal LWP), not hardware interrupt context. Note that the work is
still incomplete by this change; to that end, we also have to softint-ify
if_link_state_change (and bpf) which can still run in hardware interrupt.

This change softint-ifies at ifp->if_input that is called from
each device driver (and ieee80211_input) to ensure Layer 2 runs
in softint (e.g., ether_input and bridge_input). To this end,
we provide a framework (called percpuq) that utlizes softint(9)
and percpu ifqueues. With this patch, rxintr of most drivers just
queues received packets and schedules a softint, and the softint
dequeues packets and does rest packet processing.

To minimize changes to each driver, percpuq is allocated in struct
ifnet for now and that is initialized by default (in if_attach).
We probably have to move percpuq to softc of each driver, but it's
future work. At this point, only wm(4) has percpuq in its softc
as a reference implementation.

Additional information including performance numbers can be found
in the thread at tech-kern@ and tech-net@:
http://mail-index.netbsd.org/tech-kern/2016/01/14/msg019997.html

Acknowledgment: riastradh@ greatly helped this work.
Thank you very much!

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 12 17:24:02 2015 UTC (8 years, 10 months ago) by macallan
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.7: +33 -3 lines
Diff to previous 1.7 (colored)

actually check the return value from m_gethdr() and deal with errors
now we no longer segfault in dme_allocate_buffer()

Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 14 13:45:43 2015 UTC (9 years, 1 month ago) by macallan
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.6: +41 -41 lines
Diff to previous 1.6 (colored)

KNF police

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 10 18:01:04 2015 UTC (9 years, 1 month ago) by macallan
Branch: MAIN
Changes since 1.5: +81 -4 lines
Diff to previous 1.5 (colored)

support 8bit mode, needed for ci20

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 26 22:50:22 2014 UTC (9 years, 4 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.4: +2 -3 lines
Diff to previous 1.4 (colored)

Appease gcc 4.8 - from Greg Willatt in private email.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jan 28 08:29:55 2012 UTC (12 years, 2 months ago) by nisimura
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, netbsd-7, netbsd-6-1, netbsd-6-0, netbsd-6
Changes since 1.3: +514 -220 lines
Diff to previous 1.3 (colored)


- add DM9000 internal PHY manipulating routines.
- now capable of auto-negotiation, use this as default media selection.
- add multicast filter support.
- code cleanup.

Code update from Paul Fleischer.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jun 30 20:09:39 2011 UTC (12 years, 9 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

dependant -> dependent

Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 10 08:58:36 2010 UTC (13 years, 7 months ago) by ahoka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-nfs-mp, uebayasi-xip, rmind-uvmplock
Changes since 1.1: +1 -5 lines
Diff to previous 1.1 (colored)

remove debug leftover

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 8 22:01:29 2010 UTC (13 years, 7 months ago) by ahoka
Branch: MAIN

Driver for Davicom DM9000 ethernet chips.

Written by Paul Fleischer, minor modifications by me.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>