| History log of /src/sys/dev/pci/if_vr.c |
| Revision | | Date | Author | Comments |
| 1.138 |
| 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.137 |
| 24-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
| 1.136 |
| 17-Sep-2022 |
thorpej | Eliminate use of IFF_OACTIVE.
|
| 1.135 |
| 24-Jul-2021 |
andvar | s/structres/structures + s/whenver/whenever
|
| 1.134 |
| 08-May-2021 |
thorpej | Use pci_compatible_match().
|
| 1.133 |
| 07-Feb-2020 |
thorpej | branches: 1.133.10; Use callout_setfunc() / callout_schedule().
|
| 1.132 |
| 30-Jan-2020 |
thorpej | Adopt <net/if_stats.h>.
|
| 1.131 |
| 13-Sep-2019 |
msaitoh | branches: 1.131.2; if_flags is neither int nor short. It's unsigned short.
|
| 1.130 |
| 28-May-2019 |
msaitoh | Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
|
| 1.129 |
| 23-May-2019 |
msaitoh | Whitespace fix (mainly tabify).
|
| 1.128 |
| 23-May-2019 |
msaitoh | -No functional change: - Simplify struct ethercom's pointer near ETHER_FIRST_MULTI(). - Simplify MII structure initialization. - u_int*_t -> uint*_t. - KNF
|
| 1.127 |
| 22-Jan-2019 |
msaitoh | Change MII PHY read/write API from:
int (*mii_readreg_t)(device_t, int, int); void (*mii_writereg_t)(device_t, int, int, int); to:
int (*mii_readreg_t)(device_t, int, int, uint16_t *); int (*mii_writereg_t)(device_t, int, int, uint16_t);
Now we can test if a read/write operation failed or not by the return value.
In 802.3 spec says that the PHY shall not respond to read/write transaction to the unimplemented register(22.2.4.3). Detecting timeout can be used to check whether a register is implemented or not (if the register conforms to the spec). ukphy(4) can be used this for MII_MMDACR and MII_MMDAADR.
Note that I noticed that the following code do infinite loop in the read/wirte function. If it accesses unimplemented PHY register, it will hang. It should be fixed:
arm/at91/at91emac.c arm/ep93xx/epe.c arm/omap/omapl1x_emac.c mips/ralink/ralink_eth.c arch/powerpc/booke/dev/pq3etsec.c(read) dev/cadence/if_cemac.c <- hkenken dev/ic/lan9118.c
Tested with the following device:
axe+ukphy axe+rgephy axen+rgephy (tested by Andrius V) wm+atphy wm+ukphy wm+igphy wm+ihphy wm+makphy sk+makphy sk+brgphy sk+gentbi msk+makphy sip+icsphy sip+ukphy re+rgephy bge+brgphy bnx+brgphy gsip+gphyter rtk+rlphy fxp+inphy (tested by Andrius V) tlp+acphy ex+exphy epic+qsphy vge+ciphy (tested by Andrius V) vr+ukphy (tested by Andrius V) vte+ukphy (tested by Andrius V)
Not tested (MAC): arm:at91emac arm:cemac arm:epe arm:geminigmac arm:enet arm:cpsw arm:emac(omac) arm:emac(sunxi) arm:npe evbppc:temac macppc:bm macppc:gm mips:aumac mips:ae mips:cnmac mips:reth mips:sbmac playstation2:smap powerpc:tsec powerpc:emac(ibm4xx) sgimips:mec sparc:be sf ne(ax88190, dl10019) awge ep gem hme smsh mtd sm age alc ale bce cas et jme lii nfe pcn ste stge tl xi aue mue smsc udav url
Not tested (PHY): amhphy bmtphy dmphy etphy glxtphy ikphy iophy lxtphy nsphyter pnaphy rdcphy sqphy tlphy tqphy urlphy
|
| 1.126 |
| 09-Dec-2018 |
jdolecek | use pci_intr_establish_xname() everywhere
|
| 1.125 |
| 18-Jul-2018 |
sevan | Be consistent among ethernet drivers on the convention for printing ethernet addresses.
NFC
|
| 1.124 |
| 26-Jun-2018 |
msaitoh | branches: 1.124.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.123 |
| 28-Feb-2018 |
flxd | branches: 1.123.2; Cosmetic printf/aprint changes. Add missing return statement after failed pci_intr_establish().
|
| 1.122 |
| 28-Feb-2018 |
flxd | Cosmetic fix for the Physical Address Registers PAR0 to PAR5.
|
| 1.121 |
| 15-Dec-2016 |
ozaki-r | 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.120 |
| 08-Dec-2016 |
ozaki-r | Apply deferred if_start framework
if_schedule_deferred_start checks if the if_snd queue contains packets, so drivers don't need to check it by themselves.
|
| 1.119 |
| 14-Jul-2016 |
msaitoh | branches: 1.119.2; - Use aprint*() instead of printf() in xxx_attach(). - Add missing aprint_naive("\n"); - KNF
|
| 1.118 |
| 07-Jul-2016 |
msaitoh | KNF. Remove extra spaces. No functional change.
|
| 1.117 |
| 10-Jun-2016 |
ozaki-r | 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.116 |
| 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.115 |
| 13-Apr-2015 |
riastradh | Convert sys/dev to use <sys/rndsource.h>.
|
| 1.114 |
| 10-Aug-2014 |
tls | branches: 1.114.4; Merge tls-earlyentropy branch into HEAD.
|
| 1.113 |
| 29-Mar-2014 |
christos | branches: 1.113.2; make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
| 1.112 |
| 27-Dec-2012 |
jmcneill | branches: 1.112.2; - reset the chip if the tx engine gets stuck after a link state change, from OpenBSD - no need to do a full reset of the chip when enabling or disabling promiscuous mode
|
| 1.111 |
| 22-Jul-2012 |
matt | branches: 1.111.2; Fix mii_statchg to take a 'struct ifnet *' instead of device_t. This fixes problem with a common MDIO bus used for multiple interfaces. Some drivers converted to CFATTACL_DECL_NEW.
|
| 1.110 |
| 02-Feb-2012 |
tls | branches: 1.110.2; 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.109 |
| 30-Jan-2012 |
drochner | Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive} where it looks straightforward, and pci_aprint_devinfo_fancy in a few others where drivers want to supply their own device names instead of the pcidevs generated one. More complicated cases, where names are composed at runtime, are left alone for now. It certainly makes sense to simplify the drivers here rather than inventing a catch-all API. This should serve as as example for new drivers, and also ensure consistent output in the AB_QUIET ("boot -q") case. Also, it avoids excessive stack usage where drivers attach child devices because the buffer for the device name is not kept on the local stack anymore.
|
| 1.108 |
| 19-Nov-2011 |
tls | branches: 1.108.2; First step of random number subsystem rework described in <20111022023242.BA26F14A158@mail.netbsd.org>. This change includes the following:
An initial cleanup and minor reorganization of the entropy pool code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are fixed. Some effort is made to accumulate entropy more quickly at boot time.
A generic interface, "rndsink", is added, for stream generators to request that they be re-keyed with good quality entropy from the pool as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is adjusted to use the rndsink interface for rekeying, which helps address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random number generator quality is provided (libkern/rngtest.c). This is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is based on an implementation of the NIST SP800-90 CTR_DRBG by Henric Jungheim. This generator users AES in a modified counter mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers of randomness. The arc4random/arc4randbytes API is deprecated for in-kernel use. It is replaced by "cprng_strong". The current cprng_fast implementation wraps the existing arc4random implementation. The current cprng_strong implementation wraps the new CTR_DRBG implementation. Both interfaces are rekeyed from the entropy pool automatically at intervals justifiable from best current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as the old arc4randbytes(), and cprng_strong() is about 20% faster than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional kernel component, as it is required by cprng_strong, which is not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at startup time; if it fails, the system will reboot. There is approximately a 3/10000 chance of a false positive from these tests. Entropy pool _input_ from hardware random numbers is subjected to the rngtest tests at attach time, as well as the FIPS continuous-output test, to detect bad or stuck hardware RNGs; if any are detected, they are detached, but the system continues to run.
A problem with rndctl(8) is fixed -- datastructures with pointers in arrays are no longer passed to userspace (this was not a security problem, but rather a major issue for compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked up to the new generators, but the /dev/*random pseudodevices are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
|
| 1.107 |
| 16-Dec-2010 |
jakllsch | branches: 1.107.8; Enable ETHERCAP_VLAN_MTU in vr(4). Tested on VT6105M and VT8237R+. May or may not work on earlier chips, for now just assume it will. Provoked by PR#44243.
|
| 1.106 |
| 13-Nov-2010 |
uebayasi | 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.105 |
| 28-Apr-2010 |
hubertf | Silence for boot -z
|
| 1.104 |
| 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.103 |
| 24-Feb-2010 |
dyoung | branches: 1.103.2; A pointer typedef entails trading too much flexibility to declare const and non-const types, and the kernel uses both const and non-const PMF qualifiers and device suspensors, so change the pmf_qual_t and device_suspensor_t typedefs from "pointers to const" to non-pointer, non-const types.
|
| 1.102 |
| 19-Jan-2010 |
pooka | branches: 1.102.2; 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.101 |
| 08-Jan-2010 |
dyoung | Expand PMF_FN_* macros.
|
| 1.100 |
| 26-Nov-2009 |
njoly | Cleanup interrupt establish error messages. Do not mix aprint_error/aprint_normal/printf calls for a single line.
|
| 1.99 |
| 26-Sep-2009 |
jmcneill | add suspend/resume support
|
| 1.98 |
| 06-Sep-2009 |
tsutsui | Replace shutdownhook_establish(9) with pmf_device_register1(9). Tested VIA VT86C100A (which is probed as VT3043).
|
| 1.97 |
| 23-Aug-2009 |
jmcneill | Don't maintain a list of descriptions for each supported device, that's what PCIVERBOSE is for; use pci_devinfo instead.
|
| 1.96 |
| 06-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
| 1.95 |
| 09-Jul-2008 |
joerg | branches: 1.95.4; 1.95.8; 1.95.12; - device/softc split
|
| 1.94 |
| 09-Jul-2008 |
joerg | Constify device table.
|
| 1.93 |
| 28-Apr-2008 |
martin | branches: 1.93.2; 1.93.4; 1.93.6; Remove clause 3 and 4 from TNF licenses
|
| 1.92 |
| 10-Apr-2008 |
cegger | branches: 1.92.2; 1.92.4; use aprint_*_dev and device_xname
|
| 1.91 |
| 21-Mar-2008 |
dyoung | pci_activate() expects for its void * argument to be a device_t, so change the type of the argument to device_t. Update each use of pci_activate().
Use device_t and accessors. Use aprint_*_dev().
|
| 1.90 |
| 11-Mar-2008 |
dyoung | Prepare for PMF self-suspension: in the if_stop() methods, clear IFF_UP and IFF_RUNNING before running the 'disable' step, instead of after. Soon I will handle the 'disable' step by calling into PMF, which may call if_stop(, 0). Ordinarily, that is harmless. This change lets the if_stop() routines exit early when they find on entry that IFF_RUNNING is not set.
|
| 1.89 |
| 19-Jan-2008 |
dyoung | branches: 1.89.2; 1.89.6; Make many ethernet drivers share the common code for MII media handling, ether_mediastatus() and ether_mediachange(). Check for a non-ENXIO error return from mii_mediachg(). (ENXIO indicates that a PHY is suspended.)
This patch shrinks the source code size by 979 lines. There was a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.
I have made a few miscellaneous changes, too:
gem(4): use LIST_EMPTY(), LIST_FOREACH(). mtd(4): handle media ioctls, for a change! axe(4): do not track link status in sc->axe_link any longer nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs on a change of media
Except for the change to mtd(4), no functional changes are intended.
XXX This patch affects more architectures than I can feasibly XXX compile and run. I have compiled macppc, sparc64, i386. I XXX have run the patches on i386 boxen with bnx(4) and sip(4). XXX Compiling and running on evbmips (MERAKI, ADM5120) is in XXX progress.
|
| 1.88 |
| 19-Oct-2007 |
ad | branches: 1.88.2; 1.88.8; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
| 1.87 |
| 09-Jul-2007 |
ad | branches: 1.87.6; 1.87.8; 1.87.12; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
| 1.86 |
| 15-Jun-2007 |
jmcneill | Add VT6105M (Rhine III) to the list of supported devices, as found in the Soekris net5501.
|
| 1.85 |
| 04-Mar-2007 |
christos | branches: 1.85.2; 1.85.4; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
| 1.84 |
| 16-Nov-2006 |
christos | branches: 1.84.2; 1.84.4; 1.84.8; __unused removal on arguments; approved by core.
|
| 1.83 |
| 05-Nov-2006 |
tsutsui | Use uintNN_t.
|
| 1.82 |
| 03-Nov-2006 |
tsutsui | Pull several fixes which improve TX error handling from FreeBSD's if_vr.c rev 1.52: - check more error status in TX descriptor and restart TX module appropriately in vr_txeof() - check more error interrupt status in vr_intr()
I can't confirm whether these changes actually fix TX stalls because I can't reproduce the problem I had about seven years ago (I guess it might be caused by excessive collisions on a dumb hub), but at least they don't seem to have bad side effects on normal operations on my macppc.
|
| 1.81 |
| 02-Nov-2006 |
tsutsui | Don't touch the VR_STICKHW register on VT3043.
The commit log in FreeBSD's if_vr.c rev 1.43 says "This is really only for the VT6102, but it doesn't hurt the older chips," but at least it hurts my VT86C100A (which returns a product ID of VT3043) on macppc and causes kernel MCHK trap while the same board on i386 and VT6102 on macppc have no problem with it.
|
| 1.80 |
| 02-Nov-2006 |
tsutsui | Pull some RX fixes from FreeBSD's if_vr.c rev 1.59: - in vr_rxeoc() (i.e. on RX error interrupts), disable RX before calling vr_rxeof() and check it actually stopped - no recovery is needed for VR_ISR_DROPPED, so just account ierrors - also account ierrors in vr_rxeoc()
|
| 1.79 |
| 02-Nov-2006 |
tsutsui | - make DMA descriptor members volatile - set VR_RXSTAT_OWN after all other descriptor data is set
With these changes, vr_init() seems to initialize the vr chip stuck on RX properly.
|
| 1.78 |
| 20-Oct-2006 |
scw | Force a reload of the EEPROM if the MAC address is all zeroes. Fixes PR kern/34812.
|
| 1.77 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
| 1.76 |
| 17-Jun-2006 |
christos | branches: 1.76.4; 1.76.6; re-factor the pci powestate api. reviewed by gimpy
|
| 1.75 |
| 11-Dec-2005 |
christos | branches: 1.75.4; 1.75.8; 1.75.14; 1.75.16; merge ktrace-lwp.
|
| 1.74 |
| 30-Jan-2005 |
thorpej | branches: 1.74.6; Eliminate use of M_HASFCS.
|
| 1.73 |
| 27-Jan-2005 |
scw | In vr_start(), don't forget to free the new mbuf if the second bus_dmamap_load_mbuf() fails.
|
| 1.72 |
| 25-Jan-2005 |
jmmv | Capture incomplete packets coming from the card, as this driver doesn't support this feature. This avoids multiple crashes that I've had in the past. Also ensure that packets are not empty when DIAGNOSTIC is set.
However, this is just another sanity check of the received packets, but does not address the real problem. The issue seems to be the following: if the card receives data while doing a reset (vr_init), it later finds a bunch of empty packets in the receive ring.
This explains the crashes I've hit: running a program which needs promiscuous mode (dhclient) while the card was already running in that mode (tcpdump). In this situation, it's easy that the second reset receives stuff from the network.
Unfortunately, I don't know why the card is producing these packets...
While here, fix a typo in a comment.
|
| 1.71 |
| 13-Jan-2005 |
jmmv | branches: 1.71.2; 1.71.4; Fix two typos.
|
| 1.70 |
| 30-Oct-2004 |
thorpej | When adding/deleting multicast addresses, only whack the address filter if the interface is marked RUNNING.
Fixes kern/27678.
|
| 1.69 |
| 21-Aug-2004 |
thorpej | Use ANSI function decls and make use of static.
|
| 1.68 |
| 15-Feb-2004 |
jdolecek | branches: 1.68.4; add rnd hooks
|
| 1.67 |
| 14-Nov-2003 |
jmcneill | Don't set VR_EECSR_LOAD before reading the MAC address on the VT6102 either.
|
| 1.66 |
| 13-Nov-2003 |
scw | On Rhine III, don't set VR_EECSR_LOAD before reading the MAC address. This reloads the entire EEPROM, not just the MAC address, which can cause problems for the host PCI bus under certain circumstances. The chip already loads the EEPROM at powerup/reset anyway.
XXX: This probably applies to the other Rhine variants too, but I don't have a data sheet to confirm this behaviour.
|
| 1.65 |
| 17-Oct-2003 |
tsutsui | - No need to set VR_TXCTL_TLINK in vr_start() because all TX buffers have only single segment. - No need to set VR_CMD_TX_ON in vr_start(). - Initialize BCR0 and BCR1 registers. - Change RX DMA threshold 128bytes.
Mostly from FreeBSD via OpenBSD.
|
| 1.64 |
| 17-Oct-2003 |
tsutsui | Misc cosmetics.
|
| 1.63 |
| 17-Oct-2003 |
tsutsui | Use common PCI macro/functions for PWRMGMT.
|
| 1.62 |
| 23-Aug-2003 |
dogcow | add VT6105 support to vr(4)
|
| 1.61 |
| 10-Apr-2003 |
christos | branches: 1.61.2; Add MIIF_FORCEANEG from Martin Husemann
|
| 1.60 |
| 15-Jan-2003 |
bouyer | Zero out the buffer when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN
|
| 1.59 |
| 03-Jan-2003 |
lha | From freebsd if_vr.c:1.43,1.56 and if_vrreg.h:1.11,1.14
- Windows put the chip in suspended mode, make sure we unsuspend it. 1.43, by Takefumi SAYO <stake@po.shiojiri.ne.jp>
- Detect the revision of the Rhine chip we're using, and force reset when the chip supports it. 1.65, by silby@freebsd.org
|
| 1.58 |
| 21-Oct-2002 |
fair | Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK so that it is possible select PHY instances other than the first one (instance zero), if there is more than one PHY attached.
|
| 1.57 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
| 1.56 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
| 1.55 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
| 1.54 |
| 28-Jul-2002 |
christos | my card prints transmit aborted and then hangs. Let's try to reset it.
|
| 1.53 |
| 13-Nov-2001 |
lukem | branches: 1.53.8; 1.53.10; add RCSID
|
| 1.52 |
| 14-Aug-2001 |
mrg | mtod() with uintptr_t, not bus_addr_t.
|
| 1.51 |
| 23-Jul-2001 |
thorpej | Make sure to initialize the all Rx descriptors properly in *_init() even if mbufs for them are already allocated.
|
| 1.50 |
| 19-Jul-2001 |
thorpej | Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.
|
| 1.49 |
| 07-Jul-2001 |
thorpej | branches: 1.49.2; bcopy -> memcpy, strcpy
|
| 1.48 |
| 12-Jun-2001 |
thorpej | Don't need INET or NS includes here.
|
| 1.47 |
| 12-Jun-2001 |
wiz | receive, not recieve
|
| 1.46 |
| 29-Jan-2001 |
tsutsui | branches: 1.46.2; Use ether_crc32_be() for multicast hash calculation.
|
| 1.45 |
| 29-Jan-2001 |
enami | Handle allmulti case correctly as a NetBSD network driver; if we are requested range of multicast address or too many multicast address, program multicast filter to receive all multicast address. And set/clear IFF_ALLMULTI flag properly.
|
| 1.44 |
| 28-Dec-2000 |
sommerfeld | Change pci_intr_map to get interrupt source information from a "struct pci_attach_args *" instead of from four separate parameters which in all cases were extracted from the same "struct pci_attach_args".
This both simplifies the driver api, and allows for alternate PCI interrupt mapping schemes, such as one using the tables described in the Intel Multiprocessor Spec which describe interrupt wirings for devices behind pci-pci bridges based on the device's location rather the bridge's location.
Tested on alpha and i386; welcome to 1.5Q
|
| 1.43 |
| 19-Dec-2000 |
thorpej | Fix a problem with the ALTQ changes that can cause bogus memory refernces. Problem reported by Luke Mewburn.
|
| 1.42 |
| 14-Dec-2000 |
thorpej | ALTQ'ify.
|
| 1.41 |
| 15-Nov-2000 |
thorpej | Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
|
| 1.40 |
| 15-Oct-2000 |
thorpej | Don't trim off the FCS, pass it up.
|
| 1.39 |
| 11-Oct-2000 |
thorpej | Use ether_ioctl().
|
| 1.38 |
| 01-Oct-2000 |
thorpej | Move the check for "promisc + unicast + not for us" into ether_input(), and change Ethernet drivers to always pass all received frames to ether_input() (with a few exceptions, which are documented in the code).
|
| 1.37 |
| 13-Sep-2000 |
tron | Use correct product id for VIA VT6102 chip. Problem pointed out by Jaromir Doleeek in private e-mail.
|
| 1.36 |
| 13-Sep-2000 |
tron | Add support VIA VT6102 chip found e.g on the D-Link DFE530TX NIC. Fixes PR kern/11001 by Petter Lindquist.
|
| 1.35 |
| 28-Jun-2000 |
mrg | remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
|
| 1.34 |
| 23-Mar-2000 |
thorpej | branches: 1.34.4; New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of resource allocation. - Insertion and removal of callouts is constant time, important as this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
|
| 1.33 |
| 06-Mar-2000 |
thorpej | No longer necessary to futz with ifp->if_baudrate here.
|
| 1.32 |
| 02-Feb-2000 |
thorpej | Don't dry to diving MIIF_NOISOLATE in the PHY drivers. Instead, pass flags down from the parent to child vi mii_attach().
|
| 1.31 |
| 02-Feb-2000 |
thorpej | Bring some order to the chaos which was the MII code function naming "conventions".
|
| 1.30 |
| 12-Dec-1999 |
thorpej | Use htole32() and le32toh().
|
| 1.29 |
| 19-Nov-1999 |
thorpej | Make the ThunderLAN and VIA Rhine drivers use the common MII bit-bang module.
|
| 1.28 |
| 12-Nov-1999 |
thorpej | Call mii_down() as appropriate.
|
| 1.27 |
| 04-Nov-1999 |
thorpej | Adapt to mii_phy_probe() change.
|
| 1.26 |
| 20-Sep-1999 |
thorpej | branches: 1.26.2; 1.26.4; 1.26.8; Fix packet reception in promiscuous mode: compare the Ethernet destination address against our station address if it's not a multicast packet. Either the Rhine manual lies about the phys/broadcast/multicast rxstatus bits, or the Rhine chip is just broken.
Fixes a redirect storm problem reported by Laine Stump on current-users.
|
| 1.25 |
| 14-Aug-1999 |
hwr | Initialize error variable. Should fix spurious init errors. From Dave Huang in PR 8205.
|
| 1.24 |
| 14-Aug-1999 |
hwr | Remove dulicate "Ethernet" output. From Dave Huang in PR 8206
|
| 1.23 |
| 03-Aug-1999 |
thorpej | Be a little nicer about memory usage: * Don't allocate receive buffers until the interface is actually brought up, and release all of them if the interface is taken down. * Add a knob (defaults to off) which will copy an incoming packet to a single header mbuf if it is small enough to fit in one, rather than burning an entire cluster on it. Note that this change will be mostly moot if/when sbcompress() it changed to handle compressing clusters.
|
| 1.22 |
| 18-May-1999 |
thorpej | Rework layer 2 protocol input routines. Instead of calling e.g. ether_input() directly, call the function pointer (*if_input)(ifp, m). The input routine expects the packet header to be at the head of the packet, and will adjust as necessary. Privatize the layer 2 input and output routines, allowing *_ifattach() to set them up as appropriate.
|
| 1.21 |
| 26-Apr-1999 |
thorpej | Make the VIA Rhine driver work on big-endian systems. From Izumi Tsutsui, PR #7305.
|
| 1.20 |
| 24-Apr-1999 |
thorpej | Fix an mbuf leak in the strict alignment case of packet reception.
|
| 1.19 |
| 24-Mar-1999 |
thorpej | branches: 1.19.2; Don't enable I/O or memory access here! These bits in the PCI CSR are set up by the firmware, and indicate which mapping types the system supports.
|
| 1.18 |
| 12-Feb-1999 |
thorpej | Major overhaul of the Rhine/Rhine-II driver, structuring it a little more like the SMC83C100 EPIC/100 driver: * Rather than using pointers to the head and tail of the transmit and receive rings, use wrapping indexes into arrays. This is a little more obvious when reading the code. * More cleanly separate the hardware descriptor from the software descriptor. * bus_dma it everywhere. * Implement interrupt pacing and avoid a potential race in the transmit loop.
Now this looks more or less like the Rhine driver I was working on when this driver was committed :-) Update copyright notice to reflect that.
|
| 1.17 |
| 05-Feb-1999 |
thorpej | Make this driver work on the Alpha. Apparently the receive DMA mechanism has the same 4-byte alignment requirement that the transmit side does. This causes the packet payload to be misaligned. So, on systems which require strict alignment, we must copy the incoming frame to a new packet buffer, suitably aligned.
|
| 1.16 |
| 05-Feb-1999 |
thorpej | Fix the interrupt handler to actually acknowledge the interupt to the dispatch code (!!!). How did this work even on the i386 before?
|
| 1.15 |
| 05-Feb-1999 |
thorpej | Fix some formatting nits.
|
| 1.14 |
| 05-Feb-1999 |
thorpej | Remove some duplicate softc members, and comment some of the softc fields.
|
| 1.13 |
| 05-Feb-1999 |
thorpej | Remove some unnecessary splnet's.
|
| 1.12 |
| 05-Feb-1999 |
thorpej | splimp -> splnet
|
| 1.11 |
| 05-Feb-1999 |
thorpej | Use the generic MII support code, not our own.
|
| 1.10 |
| 05-Feb-1999 |
thorpej | Use MII command opcodes from <sys/dev/mii.h>
|
| 1.9 |
| 05-Feb-1999 |
thorpej | Rename VR_MIICMD_DATAIN and VR_MIICMD_DATAOUT to actually match what the data sheet says. (The names and their usage were exactly reversed in the code.)
|
| 1.8 |
| 02-Feb-1999 |
thorpej | Use pcidevs.h to get vendor and product IDs.
|
| 1.7 |
| 02-Feb-1999 |
thorpej | Take software-only structure definitions out of the register description header.
|
| 1.6 |
| 02-Feb-1999 |
thorpej | Remove support for FreeBSD from the driver; so many changes are going to be required to make it properly portable to all of NetBSD's platforms, that it just wouldn't be worth the effort.
|
| 1.5 |
| 01-Feb-1999 |
thorpej | Minimal changes to make this compile on the Alpha. Much more work is needed to make this a truly portable driver.
|
| 1.4 |
| 26-Jan-1999 |
sakamoto | NetBSD RCS id.
|
| 1.3 |
| 22-Jan-1999 |
sakamoto | Change bootverbose 1 to 0. Add vr_lookup.
|
| 1.2 |
| 21-Jan-1999 |
sakamoto | Add NetBSD autoconfiguration support. KNF.
|
| 1.1 |
| 21-Jan-1999 |
sakamoto | branches: 1.1.1; Initial revision
|
| 1.1.1.1 |
| 21-Jan-1999 |
sakamoto | Import FreeBSD's VIA Rhine fast ethernet PCI NIC driver written by Bill Paul <wpaul@ctr.columbia.edu>.
|
| 1.19.2.3 |
| 22-Sep-1999 |
cgd | pull up rev 1.26 from trunk (requested by thorpej): Fix packet reception in promiscuous mode: compare the Ethernet destination address against our station address if it's not a multicast packet. Fixes a redirect storm problem.
|
| 1.19.2.2 |
| 26-Apr-1999 |
perry | branches: 1.19.2.2.2; 1.19.2.2.4; pullup 1.20->1.21 (thorpej): make the driver work on big-endian systems
|
| 1.19.2.1 |
| 26-Apr-1999 |
perry | pullup 1.19->1.20 (thorpej): fix an mbuf leak
|
| 1.19.2.2.4.1 |
| 30-Nov-1999 |
itojun | bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch just for reference purposes. This commit includes 1.4 -> 1.4.1 sync for kame branch.
The branch does not compile at all (due to the lack of ALTQ and some other source code). Please do not try to modify the branch, this is just for referenre purposes.
synchronization to latest KAME will take place on HEAD branch soon.
|
| 1.19.2.2.2.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
| 1.26.8.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
| 1.26.4.1 |
| 15-Nov-1999 |
fvdl | Sync with -current
|
| 1.26.2.4 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
| 1.26.2.3 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
| 1.26.2.2 |
| 22-Nov-2000 |
bouyer | Sync with HEAD.
|
| 1.26.2.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.34.4.2 |
| 13-Mar-2001 |
he | Pull up revision 1.45 (requested by tsutsui): Handle allmulti case correctly as a NetBSD network driver; if we are requested range of multicast address or too many multicast address, program multicast filter to receive all multicast address. And set/clear IFF_ALLMULTI flag properly.
|
| 1.34.4.1 |
| 13-Sep-2000 |
tron | Pull up from current (approved by thorpej):
Add support VIA VT6102 chip found e.g on the D-Link DFE530TX NIC.
syssrc/sys/dev/pci/if_vr.c 1.36-1.37 syssrc/sys/dev/pci/pcidevs 1.256-1.258
|
| 1.46.2.8 |
| 17-Jan-2003 |
thorpej | Sync with HEAD.
|
| 1.46.2.7 |
| 07-Jan-2003 |
thorpej | Sync with HEAD.
|
| 1.46.2.6 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
| 1.46.2.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
| 1.46.2.4 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
| 1.46.2.3 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
| 1.46.2.2 |
| 24-Aug-2001 |
nathanw | Catch up with -current.
|
| 1.46.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
| 1.49.2.5 |
| 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.49.2.4 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
| 1.49.2.3 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
| 1.49.2.2 |
| 25-Aug-2001 |
thorpej | Merge Aug 24 -current into the kqueue branch.
|
| 1.49.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
| 1.53.10.1 |
| 27-Jan-2003 |
jmc | Pullup revisions 1.59-1.60 (requested by bouyer in ticket #1092) Zero out the buffer when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN
|
| 1.53.8.1 |
| 29-Aug-2002 |
gehenna | catch up with -current.
|
| 1.61.2.7 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
| 1.61.2.6 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
| 1.61.2.5 |
| 02-Nov-2004 |
skrll | Sync with HEAD.
|
| 1.61.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
| 1.61.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
| 1.61.2.2 |
| 25-Aug-2004 |
skrll | Sync with HEAD.
|
| 1.61.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
| 1.68.4.1 |
| 24-Jan-2005 |
he | Pull up revision 1.70 (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.71.4.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
| 1.71.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
| 1.74.6.7 |
| 24-Mar-2008 |
yamt | sync with head.
|
| 1.74.6.6 |
| 17-Mar-2008 |
yamt | sync with head.
|
| 1.74.6.5 |
| 21-Jan-2008 |
yamt | sync with head
|
| 1.74.6.4 |
| 27-Oct-2007 |
yamt | sync with head.
|
| 1.74.6.3 |
| 03-Sep-2007 |
yamt | sync with head.
|
| 1.74.6.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
| 1.74.6.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
| 1.75.16.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
| 1.75.14.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
| 1.75.8.1 |
| 26-Jun-2006 |
yamt | sync with head.
|
| 1.75.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
| 1.76.6.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
| 1.76.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
| 1.76.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
| 1.84.8.1 |
| 03-Sep-2007 |
wrstuden | Sync w/ NetBSD-4-RC_1
|
| 1.84.4.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
| 1.84.2.1 |
| 17-Jun-2007 |
riz | Pull up following revision(s) (requested by jmcneill in ticket #725): sys/dev/pci/if_vr.c: revision 1.86 Add VT6105M (Rhine III) to the list of supported devices, as found in the Soekris net5501.
|
| 1.85.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
| 1.85.2.3 |
| 23-Oct-2007 |
ad | Sync with head.
|
| 1.85.2.2 |
| 15-Jul-2007 |
ad | Sync with head.
|
| 1.85.2.1 |
| 01-Jul-2007 |
ad | Adapt to callout API change.
|
| 1.87.12.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
| 1.87.8.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
| 1.87.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
| 1.87.6.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.88.8.1 |
| 20-Jan-2008 |
bouyer | Sync with HEAD
|
| 1.88.2.1 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
| 1.89.6.3 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
| 1.89.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.89.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
| 1.89.2.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
| 1.92.4.6 |
| 11-Aug-2010 |
yamt | sync with head.
|
| 1.92.4.5 |
| 11-Mar-2010 |
yamt | sync with head
|
| 1.92.4.4 |
| 16-Sep-2009 |
yamt | sync with head
|
| 1.92.4.3 |
| 16-May-2009 |
yamt | sync with head
|
| 1.92.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
| 1.92.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
| 1.92.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
| 1.93.6.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
| 1.93.4.1 |
| 18-Jul-2008 |
simonb | Sync with head.
|
| 1.93.2.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
| 1.95.12.1 |
| 21-Apr-2010 |
matt | sync to netbsd-5
|
| 1.95.8.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
| 1.95.4.2 |
| 03-Oct-2009 |
snj | Pull up following revision(s) (requested by jmcneill in ticket #1022): sys/dev/pci/if_vr.c: revision 1.99 add suspend/resume support
|
| 1.95.4.1 |
| 03-Oct-2009 |
snj | Pull up following revision(s) (requested by jmcneill in ticket #1022): sys/dev/pci/if_vr.c: revision 1.98 Replace shutdownhook_establish(9) with pmf_device_register1(9). Tested VIA VT86C100A (which is probed as VT3043).
|
| 1.102.2.1 |
| 30-Apr-2010 |
uebayasi | Sync with HEAD.
|
| 1.103.2.2 |
| 05-Mar-2011 |
rmind | sync with head
|
| 1.103.2.1 |
| 30-May-2010 |
rmind | sync with head
|
| 1.107.8.4 |
| 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.107.8.3 |
| 23-Jan-2013 |
yamt | sync with head
|
| 1.107.8.2 |
| 30-Oct-2012 |
yamt | sync with head
|
| 1.107.8.1 |
| 17-Apr-2012 |
yamt | sync with head
|
| 1.108.2.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
| 1.110.2.1 |
| 08-Feb-2013 |
riz | Pull up following revision(s) (requested by taca in ticket #783): sys/dev/pci/if_vr.c: revision 1.112 - reset the chip if the tx engine gets stuck after a link state change, from OpenBSD - no need to do a full reset of the chip when enabling or disabling promiscuous mode
|
| 1.111.2.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
| 1.111.2.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
| 1.111.2.1 |
| 25-Feb-2013 |
tls | resync with head
|
| 1.112.2.1 |
| 18-May-2014 |
rmind | sync with head
|
| 1.113.2.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.114.4.5 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
| 1.114.4.4 |
| 05-Oct-2016 |
skrll | Sync with HEAD
|
| 1.114.4.3 |
| 09-Jul-2016 |
skrll | Sync with HEAD
|
| 1.114.4.2 |
| 19-Mar-2016 |
skrll | Sync with HEAD
|
| 1.114.4.1 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
| 1.119.2.1 |
| 07-Jan-2017 |
pgoyette | Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
|
| 1.123.2.3 |
| 26-Jan-2019 |
pgoyette | Sync with HEAD
|
| 1.123.2.2 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
| 1.123.2.1 |
| 28-Jul-2018 |
pgoyette | Sync with HEAD
|
| 1.124.2.3 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.124.2.2 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
| 1.124.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
| 1.131.2.1 |
| 29-Feb-2020 |
ad | Sync with head.
|
| 1.133.10.2 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|
| 1.133.10.1 |
| 13-May-2021 |
thorpej | Sync with HEAD.
|