History log of /src/sys/dev/ic/dm9000.c |
Revision | | Date | Author | Comments |
1.41 |
| 04-Oct-2025 |
thorpej | Add a shared function to query the common properties used for configuring an Ethernet address.
|
1.40 |
| 09-Jul-2025 |
andvar | Fix typos in comments: s/mulicast/multicast/ s/muticast/multicast/ s/muliplicator/multiplicator/ s/muti-precision/multi-precision/
|
1.39 |
| 25-Jun-2025 |
andvar | s/collosion/collision/ in comment.
|
1.38 |
| 01-Dec-2024 |
andvar | s/availble/available/ in comment.
|
1.37 |
| 07-Sep-2024 |
andvar | spelling and grammar fixes, mainly in comments.
|
1.36 |
| 07-Jul-2023 |
martin | branches: 1.36.6; Fix locking error when setting the multicast filter to accept all multicast frames, pointed out by Lwazi Dube.
|
1.35 |
| 25-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
1.34 |
| 18-Sep-2022 |
thorpej | Eliminate use of IFF_OACTIVE.
|
1.33 |
| 31-Dec-2021 |
riastradh | 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.
|
1.32 |
| 05-Dec-2021 |
msaitoh | s/receieve/receive/
|
1.31 |
| 10-Nov-2021 |
msaitoh | s/endianess/endianness/
|
1.30 |
| 11-Sep-2021 |
andvar | Add missing double p and d for stopped and overriden accordingly. Fix few more typos along the way, mainly in copy-pasted comments.
|
1.29 |
| 27-Jun-2020 |
jmcneill | prop_data_data_nocopy -> prop_data_value
|
1.28 |
| 02-Apr-2020 |
nisimura | add aprint_debug_dev() call for CI20
|
1.27 |
| 02-Apr-2020 |
skrll | Fix evmips CI20 build
|
1.26 |
| 31-Mar-2020 |
nisimura | fix negated loop condition. make break when reset.
|
1.25 |
| 31-Mar-2020 |
nisimura | add comment to clearify hw nature
|
1.24 |
| 31-Mar-2020 |
nisimura | - 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
|
1.23 |
| 29-Mar-2020 |
nisimura | reorganise rcv frame address filter code
|
1.22 |
| 29-Jan-2020 |
thorpej | Adopt <net/if_stats.h>.
|
1.21 |
| 29-May-2019 |
msaitoh | branches: 1.21.4; 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.
|
1.20 |
| 28-May-2019 |
msaitoh | Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
|
1.19 |
| 23-May-2019 |
msaitoh | Whitespace fix (mainly tabify).
|
1.18 |
| 23-May-2019 |
msaitoh | -No functional change: - KNF - u_int*_t -> uint*_t.
|
1.17 |
| 24-Apr-2019 |
msaitoh | KNF. No functional change.
|
1.16 |
| 05-Feb-2019 |
msaitoh | Remove very old IFF_NOTRAILERS flag.
|
1.15 |
| 26-Jun-2018 |
msaitoh | branches: 1.15.2; 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.
|
1.14 |
| 22-Jun-2018 |
msaitoh | Simplify like other drivers. NULL check of ifp->if_bpf is done in bpf_mtap(), so it's not required to do it here.
|
1.13 |
| 22-Jun-2018 |
msaitoh | It's not required to include net/bpfdesc.h. Remove it.
|
1.12 |
| 29-Jul-2017 |
riastradh | branches: 1.12.2; Check for MCLGET failure in dme_alloc_receive_buffer.
From Ilja Van Sprundel.
|
1.11 |
| 15-Dec-2016 |
ozaki-r | branches: 1.11.8; 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
|
1.10 |
| 10-Jun-2016 |
ozaki-r | branches: 1.10.2; 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.9 |
| 09-Feb-2016 |
ozaki-r | 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!
|
1.8 |
| 12-Jun-2015 |
macallan | actually check the return value from m_gethdr() and deal with errors now we no longer segfault in dme_allocate_buffer()
|
1.7 |
| 14-Mar-2015 |
macallan | KNF police
|
1.6 |
| 10-Mar-2015 |
macallan | support 8bit mode, needed for ci20
|
1.5 |
| 26-Nov-2014 |
skrll | branches: 1.5.2; Appease gcc 4.8 - from Greg Willatt in private email.
|
1.4 |
| 28-Jan-2012 |
nisimura | branches: 1.4.2; 1.4.6; 1.4.8; 1.4.16; 1.4.22;
- 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.
|
1.3 |
| 30-Jun-2011 |
wiz | branches: 1.3.2; 1.3.6; dependant -> dependent
|
1.2 |
| 10-Sep-2010 |
ahoka | branches: 1.2.2; 1.2.4; 1.2.10; remove debug leftover
|
1.1 |
| 08-Sep-2010 |
ahoka | Driver for Davicom DM9000 ethernet chips.
Written by Paul Fleischer, minor modifications by me.
|
1.2.10.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.2.10.1 |
| 10-Sep-2010 |
rmind | file dm9000.c was added on branch rmind-uvmplock on 2011-03-05 20:53:14 +0000
|
1.2.4.2 |
| 22-Oct-2010 |
uebayasi | Sync with HEAD (-D20101022).
|
1.2.4.1 |
| 10-Sep-2010 |
uebayasi | file dm9000.c was added on branch uebayasi-xip on 2010-10-22 07:21:56 +0000
|
1.2.2.2 |
| 09-Oct-2010 |
yamt | sync with head
|
1.2.2.1 |
| 10-Sep-2010 |
yamt | file dm9000.c was added on branch yamt-nfs-mp on 2010-10-09 03:32:06 +0000
|
1.3.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.3.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.4.22.2 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1473): sys/dev/ic/dm9000.c: revision 1.12 Check for MCLGET failure in dme_alloc_receive_buffer. From Ilja Van Sprundel.
|
1.4.22.1 |
| 02-Jan-2015 |
martin | branches: 1.4.22.1.2; 1.4.22.1.6; Pull up following revision(s) (requested by skrll in ticket #365): sys/dev/ic/dm9000.c: revision 1.5 sys/arch/arm/s3c2xx0/s3c2440_sdi.c: revision 1.3 Appease gcc 4.8 - from Greg Willatt in private email.
|
1.4.22.1.6.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1473): sys/dev/ic/dm9000.c: revision 1.12 Check for MCLGET failure in dme_alloc_receive_buffer. From Ilja Van Sprundel.
|
1.4.22.1.2.1 |
| 12-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1473): sys/dev/ic/dm9000.c: revision 1.12 Check for MCLGET failure in dme_alloc_receive_buffer. From Ilja Van Sprundel.
|
1.4.16.1 |
| 18-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1477): sys/dev/ic/dm9000.c: revision 1.12 Check for MCLGET failure in dme_alloc_receive_buffer. From Ilja Van Sprundel.
|
1.4.8.1 |
| 18-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1477): sys/dev/ic/dm9000.c: revision 1.12 Check for MCLGET failure in dme_alloc_receive_buffer. From Ilja Van Sprundel.
|
1.4.6.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.4.2.1 |
| 18-Aug-2017 |
snj | Pull up following revision(s) (requested by mrg in ticket #1477): sys/dev/ic/dm9000.c: revision 1.12 Check for MCLGET failure in dme_alloc_receive_buffer. From Ilja Van Sprundel.
|
1.5.2.6 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.5.2.5 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.5.2.4 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.5.2.3 |
| 19-Mar-2016 |
skrll | Sync with HEAD
|
1.5.2.2 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.5.2.1 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.10.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.11.8.2 |
| 26-Jul-2018 |
snj | Pull up following revision(s) (requested by msaitoh in ticket #938): sys/arch/acorn32/podulebus/if_ie.c: revision 1.41 sys/arch/amiga/dev/if_es.c: revision 1.58 sys/arch/amiga/dev/if_qn.c: revision 1.45 sys/arch/arm/at91/at91emac.c: revision 1.20 sys/arch/arm/ep93xx/epe.c: revision 1.37 sys/arch/emips/ebus/if_le_ebus.c: revision 1.14 sys/arch/emips/ebus/if_le_ebus.c: revision 1.15 sys/arch/mac68k/dev/if_mc.c: revision 1.46 sys/arch/macppc/dev/am79c950.c: revision 1.39 sys/arch/newsmips/apbus/if_sn.c: revision 1.40 sys/arch/next68k/dev/mb8795.c: revision 1.59 sys/arch/playstation2/dev/if_smap.c: revision 1.25 sys/arch/playstation2/dev/if_smap.c: revision 1.26 sys/arch/sun2/dev/if_ec.c: revision 1.28 sys/arch/sun3/dev/if_ie.c: revision 1.63 sys/arch/x68k/dev/if_ne_intio.c: revision 1.19 sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.75 sys/arch/xen/xen/xennetback_xenbus.c: revision 1.63 sys/dev/bi/if_ni.c: revision 1.45 sys/dev/cadence/if_cemac.c: revision 1.12 sys/dev/ic/am7990.c: revision 1.78 sys/dev/ic/am79900.c: revision 1.27 sys/dev/ic/an.c: revision 1.67 sys/dev/ic/cs89x0.c: revision 1.40 sys/dev/ic/dm9000.c: revision 1.13 sys/dev/ic/dm9000.c: revision 1.14 sys/dev/ic/dp8390.c: revision 1.88 sys/dev/ic/elink3.c: revision 1.141 sys/dev/ic/elinkxl.c: revision 1.122 sys/dev/ic/hme.c: revision 1.98 sys/dev/ic/i82586.c: revision 1.77 sys/dev/ic/lance.c: revision 1.53 sys/dev/ic/mb86950.c: revision 1.27 sys/dev/ic/mb86960.c: revision 1.86 sys/dev/ic/mtd803.c: revision 1.34 sys/dev/ic/pdq_ifsubr.c: revision 1.59 sys/dev/ic/rrunner.c: revision 1.86 sys/dev/ic/seeq8005.c: revision 1.58 sys/dev/ic/sgec.c: revision 1.47 sys/dev/ic/smc90cx6.c: revision 1.72 sys/dev/ic/smc91cxx.c: revision 1.96 sys/dev/ic/tropic.c: revision 1.49 sys/dev/ic/wi.c: revision 1.245 sys/dev/isa/if_eg.c: revision 1.93 sys/dev/isa/if_el.c: revision 1.95 sys/dev/isa/if_iy.c: revision 1.101 sys/dev/ofw/ofnet.c: revision 1.58 sys/dev/pci/if_alc.c: revision 1.27 sys/dev/pci/if_de.c: revision 1.152 sys/dev/pci/if_fpa.c: revision 1.61 sys/dev/pci/if_jme.c: revision 1.34 sys/dev/pci/if_tl.c: revision 1.108 sys/dev/pci/if_vte.c: revision 1.19 sys/dev/pci/ixgbe/ixgbe.h: revision 1.50 sys/dev/pcmcia/if_cnw.c: revision 1.62 sys/dev/pcmcia/if_malo_pcmcia.c: revision 1.17 sys/dev/pcmcia/if_ray.c: revision 1.89 sys/dev/pcmcia/if_xi.c: revision 1.81 sys/dev/pcmcia/mhzc.c: revision 1.51 sys/dev/pcmcia/xirc.c: revision 1.34 sys/dev/qbus/if_de.c: revision 1.33 sys/dev/qbus/if_qe.c: revision 1.78 sys/dev/qbus/if_qt.c: revision 1.22 sys/dev/sbus/be.c: revision 1.87 sys/dev/sbus/qe.c: revision 1.68 sys/dev/scsipi/if_se.c: revision 1.96 sys/dev/usb/if_atu.c: revision 1.59 sys/net/if_l2tp.c: revision 1.28 via patch sys/net/if_ppp.c: revision 1.160 It's not required to include net/bpfdesc.h. Remove it. -- Simplify like other drivers. NULL check of ifp->if_bpf is done in bpf_mtap(), so it's not required to do it here. -- Remove duplicated inclusion of net/bpf.h. -- Remove duplicated inclusion of net/bpf.h. -- Simplify bpf_mtap() call. No functional change.
|
1.11.8.1 |
| 05-Aug-2017 |
snj | Pull up following revision(s) (requested by spz in ticket #186): sys/dev/ic/dm9000.c: revision 1.12 Check for MCLGET failure in dme_alloc_receive_buffer. From Ilja Van Sprundel.
|
1.12.2.2 |
| 28-Jul-2018 |
pgoyette | Sync with HEAD
|
1.12.2.1 |
| 25-Jun-2018 |
pgoyette | Sync with HEAD
|
1.15.2.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.15.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.21.4.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
1.36.6.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|