History log of /src/sys/dev/ic/cs89x0.c |
Revision | | Date | Author | Comments |
1.56 |
| 07-Jan-2025 |
andvar | fix various typos in commments.
|
1.55 |
| 29-Jun-2024 |
riastradh | if_stats(9): Add ifp argument to if_stat..._ref.
This will enable us to pass the ifp through to a dtrace probe inside.
No functional change intended in this change, but this is an API change visible to modules so it shouldn't be pulled up.
PR kern/58377
|
1.54 |
| 10-Feb-2024 |
andvar | Fix various typos in comments, log messages and documentation.
|
1.53 |
| 09-Feb-2024 |
andvar | fix spelling mistakes, mainly in comments and log messages.
|
1.52 |
| 18-Sep-2022 |
thorpej | Eliminate use of IFF_OACTIVE. (This driver never even set it.)
|
1.51 |
| 31-Jul-2021 |
andvar | s/threshhold/threshold
|
1.50 |
| 24-Jul-2021 |
andvar | Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
|
1.49 |
| 04-Feb-2020 |
thorpej | branches: 1.49.10; Use ifmedia_fini().
|
1.48 |
| 29-Jan-2020 |
thorpej | Adopt <net/if_stats.h>.
|
1.47 |
| 29-May-2019 |
msaitoh | branches: 1.47.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.46 |
| 28-May-2019 |
msaitoh | Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
|
1.45 |
| 23-May-2019 |
msaitoh | -No functional change: - KNF - u_int*_t -> uint*_t.
|
1.44 |
| 26-Apr-2019 |
msaitoh | No functional change: - u_int_{8,16,32}_t -> uint_{8,16,32}_t - KNF. - Tabify. - Remove extra space.
|
1.43 |
| 25-Apr-2019 |
msaitoh | No functional change: - Use __arraycount(). - u_int_{8,16,32}_t -> uint_{8,16,32}_t - KNF. - Tabify. - Remove extra space.
|
1.42 |
| 05-Feb-2019 |
msaitoh | Remove very old IFF_NOTRAILERS flag.
|
1.41 |
| 26-Jun-2018 |
msaitoh | branches: 1.41.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.40 |
| 22-Jun-2018 |
msaitoh | It's not required to include net/bpfdesc.h. Remove it.
|
1.39 |
| 07-Mar-2017 |
ozaki-r | branches: 1.39.6; 1.39.12; Apply deferred if_start (from maya@)
Fix PR kern/52023
|
1.38 |
| 15-Dec-2016 |
ozaki-r | branches: 1.38.2; 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.37 |
| 10-Jun-2016 |
ozaki-r | branches: 1.37.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.36 |
| 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.35 |
| 13-Apr-2015 |
riastradh | Convert sys/dev to use <sys/rndsource.h>.
|
1.34 |
| 10-Aug-2014 |
tls | branches: 1.34.4; Merge tls-earlyentropy branch into HEAD.
|
1.33 |
| 02-Feb-2012 |
tls | branches: 1.33.6; 1.33.20; Entropy-pool implementation move and cleanup.
1) Move core entropy-pool code and source/sink/sample management code to sys/kern from sys/dev.
2) Remove use of NRND as test for presence of entropy-pool code throughout source tree.
3) Remove use of RND_ENABLED in device drivers as microoptimization to avoid expensive operations on disabled entropy sources; make the rnd_add calls do this directly so all callers benefit.
4) Fix bug in recent rnd_add_data()/rnd_add_uint32() changes that might have lead to slight entropy overestimation for some sources.
5) Add new source types for environmental sensors, power sensors, VM system events, and skew between clocks, with a sample implementation for each.
ok releng to go in before the branch due to the difficulty of later pullup (widespread #ifdef removal and moved files). Tested with release builds on amd64 and evbarm and live testing on amd64.
|
1.32 |
| 13-Nov-2010 |
uebayasi | branches: 1.32.8; 1.32.12; Don't pull in the whole uvm(9) API to access only PAGE_SIZE and some other constants. These are provided by sys/param.h now.
|
1.31 |
| 05-Apr-2010 |
joerg | Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf check into the inline functions as well the fourth argument for bpf_attach.
|
1.30 |
| 19-Jan-2010 |
pooka | branches: 1.30.2; 1.30.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.29 |
| 01-Dec-2009 |
dyoung | Simplify the device activation routine.
|
1.28 |
| 22-Sep-2009 |
tsutsui | Make local functions static.
|
1.27 |
| 22-Sep-2009 |
tsutsui | Fix possible endian issue. Untested.
|
1.26 |
| 22-Sep-2009 |
tsutsui | Split device_t/softc. Tested only on cs at ofisa on shark.
|
1.25 |
| 22-Sep-2009 |
tsutsui | - replace shutdownhook_establish(9) with pmf_device_register1(9) - remove powerhook_establish(9) because all stuff in cs_power() will be handled in pmf_class_network
Briefly tested on CS8900 at ofisa on DNARD compatible.
|
1.24 |
| 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
1.23 |
| 08-Apr-2008 |
cegger | branches: 1.23.4; 1.23.18; use aprint_*_dev and device_xname
|
1.22 |
| 19-Oct-2007 |
ad | branches: 1.22.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.21 |
| 04-Mar-2007 |
christos | branches: 1.21.2; 1.21.14; 1.21.16; 1.21.20; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.20 |
| 24-Sep-2006 |
jmcneill | branches: 1.20.4; Add "name" parameter to powerhook_establish, to aid debugging. No objections on tech-kern@
|
1.19 |
| 18-Mar-2006 |
chris | branches: 1.19.8; 1.19.10; Fix eeprom == NULL and size test.
Fixes Coverity CID 1109: (sc)->eeprom_data tracked as NULL was dereferenced.
|
1.18 |
| 11-Dec-2005 |
christos | branches: 1.18.4; 1.18.6; 1.18.8; 1.18.10; 1.18.12; merge ktrace-lwp.
|
1.17 |
| 30-May-2005 |
christos | branches: 1.17.2; - add missing const - fix variable shadowing - remove unneeded casts
|
1.16 |
| 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.15 |
| 30-Oct-2004 |
thorpej | branches: 1.15.4; 1.15.6; When adding/deleting multicast addresses, only whack the address filter if the interface is marked RUNNING.
Fixes kern/27678.
|
1.14 |
| 04-Jul-2004 |
chris | Add the optional ability to parse the cs's eeprom data structure. I've made it optional as I'm not able to confirm the eeprom format is the same on earlier cs89x0's. Certainly the my 8920M and the data sheet for 8900A use the same format.
This allows my RiscStation to examine the cs's eeprom to find it's mac address, previously it was unable to do this, as the eeprom offsets were hard coded for locating the mac address.
|
1.13 |
| 10-Apr-2004 |
matt | Don't set M_HASFCS. Rather than just print we got a bad packet length, actually print out the length that was bad.
|
1.12 |
| 24-Mar-2004 |
matt | branches: 1.12.2; Set the M_HASFCS flag on received traffic.
|
1.11 |
| 30-Oct-2003 |
simonb | Remove some assigned-to but otherwise unused variables.
|
1.10 |
| 25-Oct-2003 |
christos | Fix uninitialized variable warnings
|
1.9 |
| 03-May-2003 |
wiz | branches: 1.9.2; DMA, not dma nor Dma.
|
1.8 |
| 02-Feb-2003 |
wiz | guarantee, not guarentee. Idea from miod@openbsd.
|
1.7 |
| 06-Jan-2003 |
wiz | interrupt with two rs.
|
1.6 |
| 21-May-2002 |
augustss | Make it possible to override the way register access is done. This is needed for some really screwball attachments of the CS8900.
|
1.5 |
| 14-May-2002 |
augustss | branches: 1.5.2; ANSIfy.
|
1.4 |
| 18-Apr-2002 |
thorpej | * Fix the CS_IS_ENABLED() logic so that it actually evaluates to "true" at the appropriate times for non-PCMCIA interfaces. This means that the ENETRESET path in cs_ioctl() now runs, thus fixing multicast (and IPv6) on my Shark. Yay.
* Simplify cs_hash_index(): Rather than taking the bottom 6 bits of a big-endian CRC32 and reversing them, just take the top 6 bits of a little-endian CRC32.
|
1.3 |
| 10-Feb-2002 |
pooka | point sequioa.h to new location
|
1.2 |
| 27-Nov-2001 |
yamt | branches: 1.2.2; 1.2.4; don't allocate a mbuf cluster if we don't need.
|
1.1 |
| 26-Nov-2001 |
yamt | move dev/isa/cs89x0{.c,{var,reg}.h} into dev/ic and split isadma parts into /dev/isa/cs89x0isa*.
|
1.2.4.4 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.2.4.3 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.2.4.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.2.4.1 |
| 27-Nov-2001 |
thorpej | file cs89x0.c was added on branch kqueue on 2002-01-10 19:54:21 +0000
|
1.2.2.5 |
| 07-Jan-2003 |
thorpej | Sync with HEAD.
|
1.2.2.4 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.2.2.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.2.2.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.2.2.1 |
| 27-Nov-2001 |
nathanw | file cs89x0.c was added on branch nathanw_sa on 2002-01-08 00:29:39 +0000
|
1.5.2.1 |
| 30-May-2002 |
gehenna | Catch up with -current.
|
1.9.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.9.2.5 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.9.2.4 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
1.9.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.9.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.9.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.12.2.1 |
| 07-Jul-2004 |
tron | branches: 1.12.2.1.2; Pull up revision 1.13 (requested by mycroft in ticket #610): Don't set M_HASFCS. Rather than just print we got a bad packet length, actually print out the length that was bad.
|
1.12.2.1.2.1 |
| 24-Jan-2005 |
he | Pull up revision 1.15 (requested by thorpej in ticket #939): When adding or deleting multicast addresses, only change the address filter if the interface is marked RUNNING. Fixes PR#27678.
|
1.15.6.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.15.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.17.2.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.17.2.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.17.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.17.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.18.12.1 |
| 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
1.18.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
1.18.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
1.18.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.18.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.19.10.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.19.8.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.20.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.21.20.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.21.16.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.21.14.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.21.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.22.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.23.18.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.23.4.3 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.23.4.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.23.4.1 |
| 16-May-2009 |
yamt | sync with head
|
1.30.4.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.30.4.1 |
| 30-May-2010 |
rmind | sync with head
|
1.30.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
1.32.12.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.32.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.33.20.1 |
| 07-Apr-2014 |
tls | Be a little more clear and consistent about harvesting entropy from devices:
1) deprecate RND_FLAG_NO_ESTIMATE
2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE
3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE
4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME| RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME
5) Make entropy harvesting from environmental sensors a little more generic and remove it from individual sensor drivers.
6) Remove individual open-coded delta-estimators for values from a few places in the tree (uvm, environmental drivers).
7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers that had stubbed out code, other minor cleanups.
|
1.33.6.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.33.6.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.34.4.5 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.34.4.4 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.34.4.3 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
1.34.4.2 |
| 19-Mar-2016 |
skrll | Sync with HEAD
|
1.34.4.1 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.37.2.2 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.37.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
1.38.2.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.39.12.2 |
| 28-Jul-2018 |
pgoyette | Sync with HEAD
|
1.39.12.1 |
| 25-Jun-2018 |
pgoyette | Sync with HEAD
|
1.39.6.1 |
| 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.41.2.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.41.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.47.4.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
1.49.10.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|