CVS log for src/sys/dev/ic/elinkxl.c
Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.140: download - view: text, markup, annotated - select for diffs
Sat Jun 29 12:11:11 2024 UTC (5 months ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +7 -7
lines
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
Revision 1.139: download - view: text, markup, annotated - select for diffs
Sun May 29 10:43:46 2022 UTC (2 years, 6 months ago) by rin
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
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
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +4 -4
lines
Audit unload/unmap v.s. free against DMA buffer for sys/dev;
make sure that bus_dmamap_unload(9) [or bus_dmamap_destroy(9)] or
bus_dmamem_unmap(9) are preceding to freeing DMA buffer, if it is
loaded or mapped, respectively.
This is mandatory for some archs. See, e.g.:
http://www.nerv.org/netbsd/?q=id:20210511T013030Z.013443cc790088147e4beed43f53dedabeaf9312
http://www.nerv.org/netbsd/?q=id:20220511T172220Z.561179f0b6fcc5b9cd73e274f69d74e2ce9e4c93
For some drivers, resource leaks for error paths are fixed at
the same time.
XXX XXX XXX
Compile test only (at least one arch per driver).
Revision 1.124.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:21 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.124.2.1: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.2.1: +31 -37
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.138: download - view: text, markup, annotated - select for diffs
Thu Mar 12 03:01:46 2020 UTC (4 years, 8 months ago) by thorpej
Branches: 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,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +4 -2
lines
Add support for MBUFTRACE.
Revision 1.133.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:19:08 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133: +28 -34
lines
Sync with head.
Revision 1.121.6.3: download - view: text, markup, annotated - select for diffs
Tue Feb 11 08:44:11 2020 UTC (4 years, 9 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE
Diff to: previous 1.121.6.2: preferred, colored; branchpoint 1.121: preferred, colored; next MAIN 1.122: preferred, colored
Changes since revision 1.121.6.2: +3 -2
lines
Pull up following revision(s) (requested by msaitoh in ticket #1501):
sys/dev/ic/elinkxl.c: revision 1.137
Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.
All statistics registers should be read to ACK the interrupt. Fixes PR#54920.
XXX pullup-[89]
Revision 1.131.2.2: download - view: text, markup, annotated - select for diffs
Tue Feb 11 08:41:27 2020 UTC (4 years, 9 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE
Diff to: previous 1.131.2.1: preferred, colored; branchpoint 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131.2.1: +3 -2
lines
Pull up following revision(s) (requested by msaitoh in ticket #695):
sys/dev/ic/elinkxl.c: revision 1.137
Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.
All statistics registers should be read to ACK the interrupt. Fixes PR#54920.
XXX pullup-[89]
Revision 1.137: download - view: text, markup, annotated - select for diffs
Mon Feb 10 07:48:02 2020 UTC (4 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: is-mlppp-base,
is-mlppp,
ad-namecache-base3
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -2
lines
Restore an register read for RX_FRAMES_OK which was removed in rev. 1.133.
All statistics registers should be read to ACK the interrupt. Fixes PR#54920.
XXX pullup-[89]
Revision 1.136: download - view: text, markup, annotated - select for diffs
Fri Feb 7 00:56:48 2020 UTC (4 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +5 -4
lines
Use callout_setfunc() / callout_schedule().
Revision 1.135: download - view: text, markup, annotated - select for diffs
Tue Feb 4 05:25:39 2020 UTC (4 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +5 -5
lines
Use ifmedia_fini().
Revision 1.134: download - view: text, markup, annotated - select for diffs
Wed Jan 29 14:17:27 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +21 -29
lines
Adopt <net/if_stats.h>.
Revision 1.121.6.2: download - view: text, markup, annotated - select for diffs
Wed Nov 6 10:04:46 2019 UTC (5 years ago) by martin
Branches: netbsd-8
Diff to: previous 1.121.6.1: preferred, colored; branchpoint 1.121: preferred, colored
Changes since revision 1.121.6.1: +2 -4
lines
Pull up following revision(s) (requested by msaitoh in ticket #1427):
sys/arch/arm/broadcom/bcm53xx_eth.c: revision 1.39
sys/dev/pcmcia/if_xi.c: revision 1.91
sys/dev/ic/aic6915.c: revision 1.40
sys/dev/pci/if_tl.c: revision 1.117
sys/arch/arm/gemini/gemini_gmac.c: revision 1.18
sys/dev/ic/elinkxl.c: revision 1.133
sys/dev/pci/if_ste.c: revision 1.57
sys/dev/pci/if_alc.c: revision 1.43
sys/dev/pci/if_stge.c: revision 1.72
sys/dev/pci/if_ale.c: revision 1.34
sys/dev/pci/if_age.c: revision 1.62
sys/dev/pci/if_txp.c: revision 1.60
sys/dev/ic/i82557.c: revision 1.156
sys/dev/pci/if_vte.c: revision 1.27
sys/arch/powerpc/booke/dev/pq3etsec.c: revision 1.47
sys/arch/arm/gemini/if_gpn.c: revision 1.13
if_percpuq(9) and ether_input() automatically increment if_ipackets, so don't add number of
RX frames from device's statistics counter to if_ipackets to avoid double
count.
Revision 1.131.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 6 09:59:38 2019 UTC (5 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RC2,
netbsd-9-0-RC1
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +2 -4
lines
Pull up following revision(s) (requested by msaitoh in ticket #403):
sys/arch/arm/broadcom/bcm53xx_eth.c: revision 1.39
sys/dev/pcmcia/if_xi.c: revision 1.91
sys/dev/ic/aic6915.c: revision 1.40
sys/dev/pci/if_tl.c: revision 1.117
sys/arch/arm/gemini/gemini_gmac.c: revision 1.18
sys/dev/ic/elinkxl.c: revision 1.133
sys/dev/pci/if_ste.c: revision 1.57
sys/dev/pci/if_alc.c: revision 1.43
sys/dev/pci/if_stge.c: revision 1.72
sys/dev/pci/if_ale.c: revision 1.34
sys/dev/pci/if_age.c: revision 1.62
sys/dev/pci/if_txp.c: revision 1.60
sys/dev/ic/i82557.c: revision 1.156
sys/dev/pci/if_vte.c: revision 1.27
sys/arch/powerpc/booke/dev/pq3etsec.c: revision 1.47
sys/arch/arm/gemini/if_gpn.c: revision 1.13
if_percpuq(9) and ether_input() automatically increment if_ipackets, so don't add number of
RX frames from device's statistics counter to if_ipackets to avoid double
count.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Wed Oct 30 07:26:28 2019 UTC (5 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +2 -4
lines
if_percpuq(9) automatically increments if_ipackets, so don't add number of
RX frames from device's statistics counter to if_ipackets to avoid double
count.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Fri Sep 13 07:55:06 2019 UTC (5 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -3
lines
if_flags is neither int nor short. It's unsigned short.
Revision 1.124.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:10 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +76 -69
lines
Sync with HEAD
Revision 1.131: download - view: text, markup, annotated - select for diffs
Tue May 28 07:41:48 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609,
netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +13 -5
lines
Use ETHER_LOCK()/ETHER_UNLOCK() for all ethernet drivers to protect ec_multi*.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Thu May 23 13:10:51 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +4 -4
lines
Whitespace fix (mainly tabify).
Revision 1.129: download - view: text, markup, annotated - select for diffs
Thu May 23 10:51:39 2019 UTC (5 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +48 -47
lines
No functional change:
- Simplify MII structure initialization and reference.
- u_int*_t -> uint*_t.
- KNF
Revision 1.128: download - view: text, markup, annotated - select for diffs
Mon Apr 22 08:05:01 2019 UTC (5 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -7
lines
On drivers which use MII(4) and have hook SIOC[GS]IFMEDIA which just pass to
ifmedia_ioctl(), the hook is not required because ether_ioctl has it
(if_ethersubr.c rev. 1.160). These drivers don't return ENETRESET in
ifmedia_ioctl(), so no functional change.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Tue Feb 5 06:17:02 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: isaki-audio2-base,
isaki-audio2
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -4
lines
Remove very old IFF_NOTRAILERS flag.
Revision 1.121.12.4: download - view: text, markup, annotated - select for diffs
Sat Jan 26 22:00:06 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.121.12.3: preferred, colored; branchpoint 1.121: preferred, colored; next MAIN 1.122: preferred, colored
Changes since revision 1.121.12.3: +15 -12
lines
Sync with HEAD
Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue Jan 22 03:42:26 2019 UTC (5 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +15 -12
lines
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
Revision 1.121.12.3: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:49 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.121.12.2: preferred, colored; branchpoint 1.121: preferred, colored
Changes since revision 1.121.12.2: +3 -3
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.125: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:31 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -3
lines
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.
To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate. But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all. (Who knows, maybe in some cases integer
truncation is actually intended!)
Revision 1.121.12.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:45 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.121.12.1: preferred, colored; branchpoint 1.121: preferred, colored
Changes since revision 1.121.12.1: +3 -3
lines
Sync with HEAD
Revision 1.121.6.1: download - view: text, markup, annotated - select for diffs
Thu Jul 26 23:55:29 2018 UTC (6 years, 4 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE,
netbsd-8-1-RC1
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +2 -4
lines
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.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:48:00 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
jdolecek-ncqfixes-base,
jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3
lines
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.121.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:50 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -6
lines
Sync with HEAD
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sat Jun 23 06:40:43 2018 UTC (6 years, 5 months ago) by maxv
Branches: MAIN
CVS tags: pgoyette-compat-0625
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +4 -4
lines
constify
Revision 1.122: download - view: text, markup, annotated - select for diffs
Fri Jun 22 04:17:42 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +2 -4
lines
It's not required to include net/bpfdesc.h. Remove it.
Revision 1.115.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:03 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.115.2.1: preferred, colored; branchpoint 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115.2.1: +6 -6
lines
update from HEAD
Revision 1.116.4.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:03 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.116.4.4: preferred, colored; branchpoint 1.116: preferred, colored; next MAIN 1.117: preferred, colored
Changes since revision 1.116.4.4: +5 -4
lines
Sync with HEAD
Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:46 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120: +5 -4
lines
Sync with HEAD
Revision 1.119.2.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:28 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.119.2.1: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.2.1: +5 -4
lines
Sync with HEAD
Revision 1.121: download - view: text, markup, annotated - select for diffs
Mon Feb 20 07:43:29 2017 UTC (7 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
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,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: pgoyette-compat,
netbsd-8
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +5 -4
lines
Apply deferred if_start to more drivers
Revision 1.116.4.4: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:28 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.116.4.3: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.4.3: +2 -3
lines
Sync with HEAD
Revision 1.119.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:31 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -3
lines
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
Revision 1.120: download - view: text, markup, annotated - select for diffs
Thu Dec 15 09:28:05 2016 UTC (7 years, 11 months ago) by ozaki-r
Branches: MAIN
CVS tags: pgoyette-localcount-20170107,
nick-nhusb-base-20170204,
bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +2 -3
lines
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.116.4.3: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:02 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.116.4.2: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.4.2: +3 -3
lines
Sync with HEAD
Revision 1.119: download - view: text, markup, annotated - select for diffs
Fri Jun 10 13:27:13 2016 UTC (8 years, 5 months ago) by ozaki-r
Branches: 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
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +3 -3
lines
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.116.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:09 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.116.4.1: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.4.1: +3 -3
lines
Sync with HEAD
Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:32:10 2016 UTC (8 years, 9 months ago) by ozaki-r
Branches: MAIN
CVS tags: nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +3 -3
lines
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.116.4.1: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:07 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3
lines
Sync with HEAD
Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Apr 13 16:33:24 2015 UTC (9 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3
lines
Convert sys/dev to use <sys/rndsource.h>.
Revision 1.115.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:38 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +3 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:35 2014 UTC (10 years, 3 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base,
nick-nhusb-base-20150406,
nick-nhusb-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +3 -3
lines
Merge tls-earlyentropy branch into HEAD.
Revision 1.115.12.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:32 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.115: preferred, colored; next MAIN 1.116: preferred, colored
Changes since revision 1.115: +3 -3
lines
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.
Revision 1.113.8.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:02 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.113.8.1: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.8.1: +5 -5
lines
sync with head
Revision 1.115: download - view: text, markup, annotated - select for diffs
Sun Jul 22 14:32:57 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
tls-earlyentropy-base,
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,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys,
tls-earlyentropy
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +5 -5
lines
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.
Revision 1.113.8.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:33 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -12
lines
sync with head
Revision 1.113.12.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:18 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +2 -12
lines
merge to -current.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu Feb 2 19:43:03 2012 UTC (12 years, 10 months ago) by tls
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
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-1,
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,
netbsd-6-0,
netbsd-6,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
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
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -12
lines
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.
Revision 1.110.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:15 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.110.4.1: preferred, colored; branchpoint 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110.4.1: +2 -4
lines
sync with head
Revision 1.113: download - view: text, markup, annotated - select for diffs
Sat Nov 13 13:52:01 2010 UTC (14 years ago) by uebayasi
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
jruoho-x86intr,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-pagecache,
jmcneill-usbmp
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +2 -4
lines
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.
Revision 1.104.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:25 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104.4.4: preferred, colored; branchpoint 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.4.4: +14 -10
lines
sync with head.
Revision 1.110.4.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:21 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +14 -10
lines
sync with head
Revision 1.110.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:14 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +14 -10
lines
Sync with HEAD.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Mon Apr 5 07:19:34 2010 UTC (14 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -7
lines
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.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Mon Mar 22 17:11:19 2010 UTC (14 years, 8 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +12 -5
lines
Add a self-suspensor. It's not used, yet.
In ex_detach(), call ex_stop(), first. ex_stop() stops the callout.
Destroy the callout in ex_detach().
Revision 1.104.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:30 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104.4.3: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.4.3: +5 -11
lines
sync with head
Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Jan 19 22:06:24 2010 UTC (14 years, 10 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
uebayasi-xip-base
Branch point for: uebayasi-xip,
rmind-uvmplock
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +5 -11
lines
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.
Revision 1.104.4.3: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:37:47 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104.4.2: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.4.2: +9 -18
lines
sync with head
Revision 1.109: download - view: text, markup, annotated - select for diffs
Tue Sep 15 19:20:30 2009 UTC (15 years, 2 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8,
matt-premerge-20091211,
jym-xensuspend-nbase
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +5 -15
lines
Simplify activation routines: don't call mii_activate(), it's a
no-op. Don't block interrupts, if_deactivate() does it.
Compile-tested, only.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Sat Sep 5 14:19:30 2009 UTC (15 years, 3 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +6 -5
lines
Invert logic around nested pmf(9) registrations for readability.
Revision 1.104.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:41 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104.4.1: preferred, colored; branchpoint 1.104: preferred, colored
Changes since revision 1.104.4.1: +20 -19
lines
sync with head.
Revision 1.105.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:55 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +20 -19
lines
Sync with HEAD.
Revision 1.100.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:55 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.100.6.1: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.6.1: +18 -17
lines
Sync with HEAD.
Revision 1.105.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:14 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105: +20 -19
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Dec 3 15:36:11 2008 UTC (16 years ago) by tsutsui
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base2,
nick-hppapmap-base,
mjf-devfs2-base,
jymxensuspend-base,
jym-xensuspend-base,
jym-xensuspend,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -3
lines
Fix typo in comment.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Fri Nov 7 00:20:02 2008 UTC (16 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +19 -18
lines
*** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.
Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address. (Thanks matt@.)
Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior. Make network drivers share more code.
Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.
Return consistent, appropriate error codes from network drivers.
Improve readability. KNF.
*** Details ***
In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.
In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.
Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr. That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.
In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.
Pull device initialization out of switch statements under
SIOCINITIFADDR. For example, pull ..._init() out of any switch
statement that looks like this:
switch (...->sa_family) {
case ...:
..._init();
...
break;
...
default:
..._init();
...
break;
}
Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,
switch (x & (IFF_UP|IFF_RUNNING)) {
case 0:
...
break;
case IFF_RUNNING:
...
break;
case IFF_UP:
...
break;
case IFF_UP|IFF_RUNNING:
...
break;
}
unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).
In ipw(4), remove an if_set_sadl() call that is out of place.
In nfe(4), reuse the jumbo MTU logic in ether_ioctl().
Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure. Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.
Return ENOTTY instead of EINVAL for inappropriate ioctls. In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.
Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source. In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.
Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.
In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.
Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.
In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.
Let ifioctl_common() handle SIOCGIFADDR.
Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.
In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.
bzero -> memset. Delete unnecessary casts to void *. Use
sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with
NULL instead of "testing truth". Replace some instances of (type
*)0 with NULL. Change some K&R prototypes to ANSI C, and join
lines.
Revision 1.100.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:21 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +135 -237
lines
Sync with HEAD.
Revision 1.104.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:42 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.104: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104: +2 -9
lines
sync with head.
Revision 1.104.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:03 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -9
lines
sync with head.
Revision 1.105: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:49 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
wrstuden-revivesa,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
hpcarm-cleanup-nbase,
haad-dm-base1
Branch point for: nick-hppapmap,
haad-dm
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon Apr 14 21:20:41 2008 UTC (16 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base
Branch point for: yamt-pf42,
yamt-nfs-mp
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -3
lines
- ansify
- use POSIX integers
Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Apr 14 20:03:13 2008 UTC (16 years, 7 months ago) by spz
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +84 -126
lines
pretty up if_ex: pmf'ify, device split, and improve printing a bit too.
Reviewed and function-tested on if_ex_cardbus by cube (thanks).
Function-tested on if_ex_pci by myself.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Mon Apr 14 10:54:21 2008 UTC (16 years, 7 months ago) by cegger
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +58 -106
lines
ansify
Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue Apr 8 12:07:26 2008 UTC (16 years, 7 months ago) by cegger
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +53 -58
lines
use aprint_*_dev and device_xname
Revision 1.98.2.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:37 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.98.2.1: preferred, colored; branchpoint 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.1: +11 -7
lines
sync with HEAD
Revision 1.99.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:41 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.99: preferred, colored; next MAIN 1.100: preferred, colored
Changes since revision 1.99: +11 -7
lines
Sync with HEAD.
Revision 1.83.2.5: download - view: text, markup, annotated - select for diffs
Mon Feb 11 14:59:33 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.83.2.4: preferred, colored; next MAIN 1.84: preferred, colored
Changes since revision 1.83.2.4: +11 -7
lines
sync with head.
Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Feb 7 01:21:52 2008 UTC (16 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base,
ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +11 -7
lines
Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs. This will ease extending the kernel and sharing of code
between drivers.
First steps: Make the signature of ifioctl_common() match struct
ifinet->if_ioctl. Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
Revision 1.98.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:26:35 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +5 -5
lines
sync with HEAD
Revision 1.83.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:30:39 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.83.2.3: preferred, colored
Changes since revision 1.83.2.3: +5 -5
lines
sync with head.
Revision 1.97.6.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:44:43 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.97.6.1: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.6.1: +5 -5
lines
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.
Revision 1.98.6.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:37:38 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98: +5 -5
lines
Sync with HEAD.
Revision 1.96.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:07:22 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.96.2.2: preferred, colored; branchpoint 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96.2.2: +5 -5
lines
Sync with head.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Oct 19 11:59:51 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking2,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
matt-armv6-base,
jmcneill-pm-base,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xeni386-nbase,
bouyer-xeni386-merge1,
bouyer-xeni386-base,
bouyer-xeni386,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: mjf-devfs
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +5 -5
lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
Revision 1.96.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:23 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.96.2.1: preferred, colored; branchpoint 1.96: preferred, colored
Changes since revision 1.96.2.1: +3 -3
lines
Sync with head.
Revision 1.97.6.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:48:00 2007 UTC (17 years, 3 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3
lines
Sync with HEAD.
Revision 1.83.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:34:32 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.83.2.2: preferred, colored
Changes since revision 1.83.2.2: +19 -19
lines
sync with head.
Revision 1.97.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:20:20 2007 UTC (17 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +3 -3
lines
Sync with HEAD.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Aug 26 22:45:55 2007 UTC (17 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking-base,
nick-csl-alignment-base5
Branch point for: matt-armv6,
bouyer-xenamd64
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -3
lines
Constify: LLADDR -> CLLADDR. I'm aiming here to make it easier to
identify sockaddr_dl abuse that remains in the kernel, especially
the potential for overwriting memory past the end of a sockaddr_dl
with, e.g., memcpy(LLADDR(), ...).
Revision 1.96.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:46 2007 UTC (17 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +3 -3
lines
Sync with head.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Mon Jul 9 21:00:35 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: nick-csl-alignment-base,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3
lines
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
Revision 1.96.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 1 21:47:48 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3
lines
Adapt to callout API change.
Revision 1.95.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:31 2007 UTC (17 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95: +17 -17
lines
Sync with HEAD.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:54 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +17 -17
lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.83.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:02 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.83.2.1: preferred, colored
Changes since revision 1.83.2.1: +178 -76
lines
sync with head.
Revision 1.72.2.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 16 11:04:25 2006 UTC (17 years, 11 months ago) by bouyer
Branches: netbsd-2
Diff to: previous 1.72.2.1.2.2: preferred, colored; branchpoint 1.72.2.1: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72.2.1.2.2: +2 -2
lines
Back out 1.72.2.1.2.2 (requested by itohy in ticket #10825)
The problem fixed by 1.85 (pulled up in ticket #5942) is an
inconsistency between elinkxl.c and elink3reg.h, that was introduced
by elink3reg.h rev 1.27. elink3reg.h in netbsd-2 branch is 1.26, and
pulling up the change made them inconsistent, and caused problem
kern/31455 that had not been in netbsd-2 branch.
Revision 1.88.8.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:05 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.88.8.1: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.8.1: +176 -75
lines
sync with head.
Revision 1.88.6.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:11 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +178 -76
lines
Sync with head.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Nov 12 07:16:14 2006 UTC (18 years ago) by itohy
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
post-newlock2-merge,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm,
ad-audiomp-base,
ad-audiomp
Branch point for: yamt-idlelwp
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +32 -13
lines
Oops, I didn't notice the file had been updated and overwrote
the changes in 1.93....
Rescue the changes in 1.93 (IPv4 checksum fix).
Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Nov 12 07:07:39 2006 UTC (18 years ago) by itohy
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +41 -48
lines
- In some rare cases, both Tx Complete and Dn Complete bits are set.
I'm not sure what it exactly means, but at least, the packet in question
is reloaded in ex_txstat() and should not handle the Dn Complete event
at the moment --- it should be served on later interrupt.
- Reload packet on collision, too.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Nov 12 02:49:46 2006 UTC (18 years ago) by tsutsui
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +32 -13
lines
Add a workaround for a hardware ip4csum-tx bug which would sometimes put
wrong IPv4 checksum on sending 21 or 22 byte IP packets.
See discussion on tech-kern and tech-net for details:
http://mail-index.netbsd.org/tech-kern/2006/11/04/0004.html
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Nov 5 07:59:21 2006 UTC (18 years, 1 month ago) by itohy
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +108 -40
lines
Restart transmitter, not reset the entire chip, on transmission errors
like Tx underrun.
This should improve performance on such errors.
Handle fifo threshold properly --- actually it did not handled at all.
Note that the Tx Complete interrupts occur only on errors, and ex_txstat()
is not good place to increment sc->tx_succ_ok. Increase the sc->tx_succ_ok
count from 100 to 256, since the ex(4) does busmastering and underruns
should rarely happen in normal operations.
Possibly improve some situation for the hang-on-heavy-load problems,
such as kern/11450 and kern/27096.
Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Nov 4 05:18:26 2006 UTC (18 years, 1 month ago) by tsutsui
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +12 -6
lines
Preserve m_pkthdr.csum_flags in TX packets because
it could be lost if bus_dmamap_load_mbuf(9) returns EFBIG.
(though I've never seen the "too mamy segments" message
which indicates the packet has more than 32 fragments)
Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Oct 29 05:56:35 2006 UTC (18 years, 1 month ago) by itohy
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +15 -19
lines
Turn on PHY power earlier in the initialization.
This should make 3c575CT work and fix following PRs:
kern/12965: 3com 575CT does not work
port-i386/16295: Problems in pci routing table and ex0 (3c575c-tx) networking
Revision 1.88.8.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:44 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3
lines
sync with head
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Sep 24 03:53:08 2006 UTC (18 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3
lines
Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
Revision 1.86.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:50:02 2006 UTC (18 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +11 -11
lines
sync with head
Revision 1.83.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:54 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +19 -15
lines
sync with head.
Revision 1.87.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 03:58:13 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +9 -9
lines
Sync with head.
Revision 1.86.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:24 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.86.6.1: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86.6.1: +9 -9
lines
Sync with head.
Revision 1.87.6.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:25 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +9 -9
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.87.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:41 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.87: preferred, colored; next MAIN 1.88: preferred, colored
Changes since revision 1.87: +9 -9
lines
sync with head.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sun May 21 23:56:09 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9,
yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
simonb-timecounters-base,
rpaulo-netinet-merge-pcb-base,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: yamt-splraiseipl,
newlock2
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +9 -9
lines
void casts to functions whose return values are ignored.
Revision 1.86.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:38:55 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -4
lines
Sync with head.
Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:12 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +4 -4
lines
sync with head.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Mon Feb 20 16:50:37 2006 UTC (18 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base,
elad-kernelauth-base,
elad-kernelauth
Branch point for: yamt-pdpolicy,
peter-altq,
chap-midi
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -4
lines
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:21:26 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +2 -2
lines
merge ktrace-lwp.
Revision 1.70.2.10: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:04:14 2005 UTC (19 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.9: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.2.9: +16 -10
lines
Sync with HEAD. Here we go again...
Revision 1.79.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 28 19:46:55 2005 UTC (19 years, 1 month ago) by jmc
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.79.2.1: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.2.1: +2 -2
lines
Pullup rev 1.85 (requested by christos in ticket #913)
The previous change (to use bus_space_read_2), was broken because it was
reading from an odd offset.
Revision 1.72.2.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 28 19:35:21 2005 UTC (19 years, 1 month ago) by jmc
Branches: netbsd-2
Diff to: previous 1.72.2.1.2.1: preferred, colored; branchpoint 1.72.2.1: preferred, colored
Changes since revision 1.72.2.1.2.1: +4 -4
lines
Pullup rev 1.85 (requested by christos in ticket #5942)
The previous change (to use bus_space_read_2), was broken because it was
reading from an odd offset.
Revision 1.84.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 26 08:32:45 2005 UTC (19 years, 1 month ago) by yamt
Branches: yamt-vop
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +4 -4
lines
sync with head
Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Oct 23 20:03:04 2005 UTC (19 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -4
lines
The previous change (to use bus_space_read_2), was broken because it was
reading from an odd offset. From Robert Elz
Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 6 11:48:49 2005 UTC (19 years, 2 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +10 -6
lines
Pull up following revision(s) (requested by christos in ticket #863):
sys/dev/ic/elinkxl.c: revision 1.84
PR/31455: Robert Elz: ex (905[BC]) cards can hang in -current kernels
- fix bus_space_read_1 -> bus_space_read_2 since revision 1.27 changed
the bit defines to assume 2 byte reads.
- Increment oerrors in case of collisions
- Clamp success counter to 100, instead of letting rotate freely.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue Oct 4 17:37:26 2005 UTC (19 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base
Branch point for: yamt-vop
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +10 -6
lines
PR/31455: Robert Elz: ex (905[BC]) cards can hang in -current kernels
- fix bus_space_read_1 -> bus_space_read_2 since revision 1.27 changed
the bit defines to assume 2 byte reads.
- Increment oerrors in case of collisions
- Clamp success counter to 100, instead of letting rotate freely.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue May 31 01:48:22 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
revert previous and fix LLADDR instead.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue May 31 01:43:36 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3
lines
use const cast.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Mon May 30 04:43:46 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +4 -4
lines
- add missing const
- fix variable shadowing
- remove unneeded casts
Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon May 2 15:34:31 2005 UTC (19 years, 7 months ago) by yamt
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +6 -4
lines
split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.
Revision 1.75.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:28:49 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +67 -48
lines
sync with -current
Revision 1.75.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:34:02 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.75.6.1: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.6.1: +15 -15
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.70.2.9: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:41:28 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.8: preferred, colored
Changes since revision 1.70.2.8: +15 -15
lines
Sync with HEAD.
Hi Perry!
Revision 1.79: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:01 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +15 -15
lines
nuke trailing whitespace
Revision 1.75.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:43 2005 UTC (19 years, 9 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +54 -35
lines
sync with head.
Revision 1.70.2.8: download - view: text, markup, annotated - select for diffs
Mon Feb 7 08:36:32 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.7: preferred, colored
Changes since revision 1.70.2.7: +3 -2
lines
Sunc with HEAD.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sun Feb 6 09:33:23 2005 UTC (19 years, 10 months ago) by skrll
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -2
lines
Initialize 'error' in all cases in ioctl handler, otherwise it doesn't
compile (and of course might return garbage). [hi kim!]
Revision 1.70.2.7: download - view: text, markup, annotated - select for diffs
Sun Feb 6 08:59:23 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.6: preferred, colored
Changes since revision 1.70.2.6: +21 -3
lines
Sync with HEAD.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Feb 6 03:15:14 2005 UTC (19 years, 10 months ago) by kim
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +21 -3
lines
If the interface is up and running, only modify the receive filter
when setting promiscuous or debug mode. This avoids resetting the
chip unnecessarily.
Fixes PR kern/29126.
Revision 1.70.2.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:45:25 2005 UTC (19 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.5: preferred, colored
Changes since revision 1.70.2.5: +34 -34
lines
Sync with HEAD.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Feb 4 02:10:36 2005 UTC (19 years, 10 months ago) by perry
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +34 -34
lines
de-__P
Revision 1.72.2.1.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 24 21:40:47 2005 UTC (19 years, 10 months ago) by he
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1
Diff to: previous 1.72.2.1: preferred, colored
Changes since revision 1.72.2.1: +3 -4
lines
Pull up revision 1.75 (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.
Revision 1.70.2.5: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:30 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.4: preferred, colored
Changes since revision 1.70.2.4: +3 -4
lines
Sync with HEAD.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Oct 30 18:08:36 2004 UTC (20 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -4
lines
When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.
Fixes kern/27678.
Revision 1.70.2.4: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:56:53 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.3: preferred, colored
Changes since revision 1.70.2.3: +4 -4
lines
Sync with HEAD
Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Sep 28 11:35:21 2004 UTC (20 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4
lines
ex_add_rxbuf: use MRESETDATA macro.
Revision 1.70.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:27:55 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.2: preferred, colored
Changes since revision 1.70.2.2: +2 -2
lines
Fix the sync with head I botched.
Revision 1.70.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:45:57 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70.2.1: preferred, colored
Changes since revision 1.70.2.1: +0 -0
lines
Sync with HEAD.
Revision 1.70.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:46:13 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +24 -14
lines
Sync with HEAD
Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 2 18:32:55 2004 UTC (20 years, 5 months ago) by he
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +18 -16
lines
Pull up revision 1.73 (requested by bouyer in ticket #581):
Make this driver work also on alpha systems, instead of
producing a machine check, by only reading the mii media
status if the interface is up. Fixes PR#25788.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Jul 2 16:58:36 2004 UTC (20 years, 5 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +18 -16
lines
Fix PR 25788 by Arto Huusko using a cleaned up version of the provided patch.
Not reading the mii media status if the interface isn't up doesn't hurt,
as the real media status isn't reported if the interface isn't up anyway
(checked on i386).
On my alpha500, I tracked down the machine check to the GO_WINDOW(4) at
line 1858 of elinkxl.c. It's possible that the problem which was fixed in
rev 1.72 was also the GO_WINDOW(4) used in the non-mii case. tr from ddb
and a single-step show different results, and I trust the single-step
one :)
Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Nov 10 12:30:27 2003 UTC (21 years ago) by drochner
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +8 -5
lines
Reading the (non-MII) media status if the card is not running yields
"0xffff" (eg on i386) or a machine check (on alpha).
So don't read the status if !(UP&RUNNING).
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Jul 6 09:12:59 2003 UTC (21 years, 5 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +7 -2
lines
actually do gather some randomness (if it's enabled)
modelled after what elink3.c does
Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Jun 5 22:11:21 2003 UTC (21 years, 6 months ago) by dogcow
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +7 -2
lines
Some models of the 556B don't turn on the transmitter without magic
values getting written. Fix from FreeBSD; cf sys/pci/if_xl.c, rev 1.110
Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri May 9 20:54:18 2003 UTC (21 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +32 -22
lines
PR/13653: Onno van der Linden: Set tranceiver media properly.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Jan 31 00:26:29 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +28 -20
lines
Use aprint_*().
Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Thu Dec 12 21:34:39 2002 UTC (21 years, 11 months ago) by he
Branches: netbsd-1-6
CVS tags: netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +40 -22
lines
Pull up revision 1.67 (requested by taca in ticket #992):
Fix multicast handling on 3C905B or later card;
o Handle IFF_ALLMULTI case correctly. This is necessary
to mrouted working.
o Clear unnecessary multicast hash bit. Otherwise,
unnecessary multicast packet is received.
Revision 1.47.2.10: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:09:25 2002 UTC (22 years ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.47.2.9: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.2.9: +39 -21
lines
Catch up to -current
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Nov 9 11:45:18 2002 UTC (22 years ago) by enami
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ucred,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +40 -22
lines
Fix multicast handling on 3C905B or later card;
- Handle IFF_ALLMULTI case correctly. This is necessary to mrouted working.
Tested by taca@netbsd.org.
- Clear unnecessary multicast hash bit. Otherwise, unnecessary multicast
packet is received. Tested by me with the 3C905C bought at akihabara.
It was 2980yen.
The code is written by fvdl@netbsd.org and me.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Oct 22 00:01:56 2002 UTC (22 years, 1 month ago) by fair
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-aftermerge
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -3
lines
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.
Revision 1.54.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:44:15 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.54.2.3: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.2.3: +7 -4
lines
sync kqueue branch with HEAD
Revision 1.47.2.9: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:44:41 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.8: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.8: +7 -4
lines
Catch up to -current.
Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:35:17 2002 UTC (22 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +7 -4
lines
catch up with -current.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Jul 1 16:16:37 2002 UTC (22 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-base,
gehenna-devsw-base
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +7 -2
lines
In ex_shutdown(), call ex_enable() to make sure the interface is
powered up and the PCI configuration registers restored. If we
don't do this, the firmware on some machines gets REALLY confused.
Revision 1.54.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:46:21 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.54.2.2: preferred, colored
Changes since revision 1.54.2.2: +12 -8
lines
catch up with -current on kqueue branch
Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Jun 20 23:47:25 2002 UTC (22 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -4
lines
more proper fix to ex_disable.
Revision 1.47.2.8: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:44:32 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.7: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.7: +3 -3
lines
Catch up to -current.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun May 12 15:48:38 2002 UTC (22 years, 6 months ago) by wiz
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1
Branch point for: netbsd-1-6,
gehenna-devsw
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3
lines
Spelling fixes, from Sergey Svishchev in kern/16650.
Revision 1.47.2.7: download - view: text, markup, annotated - select for diffs
Wed Apr 17 00:05:36 2002 UTC (22 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.6: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.6: +11 -7
lines
Catch up to -current.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Apr 6 19:28:01 2002 UTC (22 years, 8 months ago) by mhitch
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +11 -7
lines
Interface byte counts are counted in ether_input() and ether_output(). Don't
count them when reading the NIC counters - it doubles the count. Read the
NIC counters to prevent counter overflow interrupts, but don't add them to
the interface counters. Don't bother reading the upper counts because they
are just latched when reading the totals.
Fixes final part of PR#11549.
Revision 1.34.2.7: download - view: text, markup, annotated - select for diffs
Wed Feb 13 22:15:10 2002 UTC (22 years, 9 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.34.2.6: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.2.6: +2 -2
lines
Apply patch (requested by joda):
Correct typo in previous pull-up.
Revision 1.54.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:54:28 2002 UTC (22 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.54.2.1: preferred, colored
Changes since revision 1.54.2.1: +26 -19
lines
Sync kqueue branch with -current.
Revision 1.47.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:29:43 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.5: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.5: +16 -14
lines
Catch up to -current.
Revision 1.34.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 1 12:07:38 2002 UTC (22 years, 11 months ago) by he
Branches: netbsd-1-5
Diff to: previous 1.34.2.5: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.5: +83 -2
lines
Pull up revisions 1.47-1.48 (via patch, requested by kanaoka):
Add Power Management support for Cardbus Etherlink XL cards, and
some cleanup.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Dec 28 20:35:46 2001 UTC (22 years, 11 months ago) by christos
Branches: MAIN
CVS tags: newlock-base,
newlock,
ifpoll-base,
eeh-devprop-base,
eeh-devprop
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +16 -14
lines
Clean up the C_ and S_ constants. We don't really need two sets of them.
Also make the interrupt handler for older 3com cards look like the xl one.
I.e. don't ack the interrupt latch bit before checking if it is set.
At the same time, introduce constants for the watched interrupts, so that
we don't copy them all over the place.
Revision 1.34.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 23:23:17 2001 UTC (23 years ago) by he
Branches: netbsd-1-5
Diff to: previous 1.34.2.4: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.4: +2 -2
lines
Pull up revision 1.39 (requested by haya):
Set correct bit for LED polarity. Affects CardBus cards, such
as 3c575[BC].
Revision 1.47.2.5: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:14:22 2001 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.4: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.4: +5 -2
lines
Catch up to -current.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Nov 13 13:14:37 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -1
lines
add/cleanup RCSID
Revision 1.58.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:18:02 2001 UTC (23 years ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +2 -2
lines
Sync the thorpej-mips-cache branch with -current.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Nov 10 22:48:09 2001 UTC (23 years ago) by perry
Branches: MAIN
CVS tags: thorpej-mips-cache-base
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -2
lines
trivially rename some macro parameters to avoid lint warnings.
Revision 1.55.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:03 2001 UTC (23 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.55.2.1: preferred, colored; branchpoint 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55.2.1: +8 -6
lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
Revision 1.47.2.4: download - view: text, markup, annotated - select for diffs
Mon Oct 8 20:10:59 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.3: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.3: +8 -6
lines
Catch up to -current.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Oct 3 06:58:47 2001 UTC (23 years, 2 months ago) by yamt
Branches: MAIN
CVS tags: thorpej-devvp-base3
Branch point for: thorpej-mips-cache
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +2 -4
lines
ack intr only when intr is for us.
Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:45:34 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2
lines
Catch up with -current.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Oct 1 09:26:29 2001 UTC (23 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +7 -3
lines
avoid losing a desc on error.
Revision 1.47.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:35:36 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.2: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.2: +2 -2
lines
Catch up to -current.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Sep 16 16:34:37 2001 UTC (23 years, 2 months ago) by wiz
Branches: MAIN
CVS tags: thorpej-devvp-base2
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +2 -2
lines
Spell 'occurred' with two 'r's.
Revision 1.47.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:09:23 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47.2.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.2.1: +7 -6
lines
Catch up with -current.
Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:12:59 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -3
lines
update to -current
Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Jul 19 16:25:25 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -3
lines
Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Jul 7 16:13:48 2001 UTC (23 years, 5 months ago) by thorpej
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -2
lines
bzero -> memset
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Jul 7 15:57:51 2001 UTC (23 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2
lines
bcopy -> strcpy
Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Jul 7 05:35:39 2001 UTC (23 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -2
lines
bcmp -> memcmp
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:02:29 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +72 -24
lines
Catch up to -current.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Jun 12 22:32:50 2001 UTC (23 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -16
lines
Don't need INET or NS includes here.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Jun 2 16:17:07 2001 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +48 -1
lines
Implement support for IP/TCP/UDP checksum offloading provided by
network interfaces. This works by pre-computing the pseudo-header
checksum and caching it, delaying the actual checksum to ip_output()
if the hardware cannot perform the sum for us. In-bound checksums
can either be fully-checked by hardware, or summed up for final
verification by software. This method was modeled after how this
is done in FreeBSD, although the code is significantly different in
most places.
We don't delay checksums for IPv6/TCP, but we do take advantage of the
cached pseudo-header checksum.
Note: hardware-assisted checksumming defaults to "off". It is
enabled with ifconfig(8). See the manual page for details.
Implement hardware-assisted checksumming on the DP83820 Gigabit Ethernet,
3c90xB/3c90xC 10/100 Ethernet, and Alteon Tigon/Tigon2 Gigabit Ethernet.
Revision 1.34.2.4: download - view: text, markup, annotated - select for diffs
Tue May 15 21:34:06 2001 UTC (23 years, 6 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Diff to: previous 1.34.2.3: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.3: +8 -3
lines
Pull up revision 1.49 (requested by fvdl):
Wait longer after a card reset, avoids reading bad values from
the eeprom.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu May 10 22:57:44 2001 UTC (23 years, 6 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -3
lines
Despite what the hardware docs say, the global reset command is not
done when the command-in-progress bit has been cleared. The 1ms
time that is mentioned also seems wrong; 20,000us is not enough
on at least one machine. So, do a delay(100000) in ex_reset.
Fortunately, this function is only called when the card is
attached or when hardware failure is suspected.
While here, only mask one 1 bit in the 'reset hack' case.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Apr 26 08:21:51 2001 UTC (23 years, 7 months ago) by kanaoka
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +18 -7
lines
- Fix typo in comment.
- Add (missed)powerhook_disestablish() in ex_detach().
- Sync with below. Original commit log message:
Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
PWR_SOFTRESUME. Apm calls powerhook with the values in normal interrupt
priority level while others are protected with splhigh().
Revision 1.34.2.3: download - view: text, markup, annotated - select for diffs
Tue Mar 20 17:25:14 2001 UTC (23 years, 8 months ago) by he
Branches: netbsd-1-5
Diff to: previous 1.34.2.2: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.2: +21 -23
lines
Pull up revision 1.40 (via patch, requested by chuck):
Add support for the 3Com 3c555, 3c556 and 3c556B MiniPCI Ethernet
cards.
Revision 1.15.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:15:29 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.3: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.3: +80 -9
lines
Sync with HEAD.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Jan 30 19:27:39 2001 UTC (23 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +80 -9
lines
Power management support for the CardBus Etherlink XL cards.
From Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>.
Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:35:36 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.2: +8 -7
lines
Sync with HEAD
Revision 1.34.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 31 20:14:46 2000 UTC (23 years, 11 months ago) by jhawk
Branches: netbsd-1-5
Diff to: previous 1.34.2.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.2.1: +10 -3
lines
Pull up revision 1.43 via patch (requested by bouyer):
Add support for 802.1Q virtual LANs.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Dec 14 06:27:25 2000 UTC (23 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +9 -8
lines
ALTQ'ify.
Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:03:18 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +5 -11
lines
Sync with HEAD.
Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:40:33 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +282 -368
lines
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.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed Nov 15 01:02:16 2000 UTC (24 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -9
lines
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Nov 14 18:21:01 2000 UTC (24 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +5 -3
lines
NBPG -> PAGE_SIZE
Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue Oct 17 16:16:52 2000 UTC (24 years, 1 month ago) by bouyer
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +10 -2
lines
Support ETHERCAP_VLAN_MTU by ignoring the EX_UPD_ERROR and EX_UPD_OVERSIZED
status bits. Tested with a 3c905-TX.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Oct 11 16:57:45 2000 UTC (24 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +26 -86
lines
Use ether_ioctl().
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Oct 1 23:32:42 2000 UTC (24 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -25
lines
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).
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Sep 19 01:15:28 2000 UTC (24 years, 2 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +21 -23
lines
Add support for the 3c555, 556 and 556B MiniPCI cards. Based on the
cardbus code and the FreeBSD xl driver.
Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 1 00:54:06 2000 UTC (24 years, 3 months ago) by haya
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +36 -19
lines
Pull up rev 1.37 and 1.38: Support 3C[CX]FE575CT.
This pullup is approved by <thorpej@netbsd.org>.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Aug 31 08:42:29 2000 UTC (24 years, 3 months ago) by haya
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2
lines
Correct LED polarity bit. This bit and PHY power bit should be
defined in elinkxlreg.h.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Tue Aug 29 08:54:50 2000 UTC (24 years, 3 months ago) by haya
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +26 -3
lines
Add support 3C[CX]FE575CT.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Aug 25 09:01:59 2000 UTC (24 years, 3 months ago) by haya
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +11 -17
lines
Access on ELINK_W3_INTERNAL_CONFIG register with 32-bit mode. Remove
16-bit access code. This register is 32-bit. 16-bit access with the
register causes data inconsistency (especially for CardBus cards).
Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jun 28 17:12:56 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -3
lines
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Jun 27 04:18:48 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -2
lines
remove redudant <vm/pmap.h> includes. <vm/pmap.h> -> <uvm/uvm_pmap.h>
Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:06:42 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +8 -1
lines
Sync w/ netbsd-1-5-base.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon May 29 17:37:13 2000 UTC (24 years, 6 months ago) by jhawk
Branches: MAIN
CVS tags: netbsd-1-5-base,
netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +8 -1
lines
For all network drivers that call ether_ifattach(), and also
have _detach() functions:
Ensure that softc keeps state about whether the attach succeeded,
and make the detach function return immediately if the attach did
not complete.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri May 12 16:44:19 2000 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -31
lines
Use ether_crc32_be().
Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri May 12 15:22:33 2000 UTC (24 years, 6 months ago) by tsutsui
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -2
lines
Read upd_pktstatus from DMA buffer after bus_dmamap_sync() called.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Mar 30 12:45:30 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -5
lines
Remove register declarations.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Mar 23 07:01:30 2000 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +8 -5
lines
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.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Mar 6 21:02:00 2000 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -3
lines
No longer necessary to futz with ifp->if_baudrate here.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Mar 2 01:21:56 2000 UTC (24 years, 9 months ago) by enami
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +11 -6
lines
Check if device is active in the interrupt handler and the one second
tick handler.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Mar 1 20:53:11 2000 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -2
lines
Amend previous; pay attention to EX_CONF_MII on deactivate, too.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Mar 1 20:51:50 2000 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -29
lines
Only detach PHYs if we have MII in the first place, and remove a bunch
of #if 0'd code which was copied from the Tulip driver.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Feb 5 18:11:56 2000 UTC (24 years, 10 months ago) by augustss
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +115 -12
lines
Support detach.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Feb 2 17:09:46 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -2
lines
Don't dry to diving MIIF_NOISOLATE in the PHY drivers. Instead, pass
flags down from the parent to child vi mii_attach().
Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Feb 2 08:05:26 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -2
lines
Bring some order to the chaos which was the MII code function naming
"conventions".
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jan 18 03:35:40 2000 UTC (24 years, 10 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +23 -13
lines
Rearrange ex_intr() to use C_INTR_LATCH the same way the ep driver does,
to prevent race conditions.
Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:34:46 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +71 -160
lines
Pull up to last week's -current.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Dec 12 03:00:47 1999 UTC (24 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +13 -21
lines
Use htole32() and le32toh().
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Nov 19 10:42:48 1999 UTC (25 years ago) by bouyer
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -4
lines
Adapt printf format for 64bit stats counters.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Nov 17 17:56:52 1999 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +35 -108
lines
Use the common MII bit-bang module.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Wed Nov 17 08:03:30 1999 UTC (25 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +59 -85
lines
Make the MII code match the `ep' driver's (*again*).
Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:40:32 1999 UTC (25 years ago) by fvdl
Branches: fvdl-softdep
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +5 -2
lines
Sync with -current
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Nov 12 18:14:18 1999 UTC (25 years ago) by thorpej
Branches: MAIN
CVS tags: fvdl-softdep-base
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -1
lines
Call mii_down() as appropriate.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Nov 4 00:24:01 1999 UTC (25 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2
lines
Adapt to mii_phy_probe() change.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Oct 15 06:07:26 1999 UTC (25 years, 1 month ago) by haya
Branches: MAIN
CVS tags: comdex-fall-1999-base,
comdex-fall-1999
Branch point for: thorpej_scsipi,
fvdl-softdep
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +13 -2
lines
This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.
TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.
The affected files are listed below.
sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h
The added files are listed below.
sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h
Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 00:56:24 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002
Diff to: previous 1.7.2.3: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.3: +52 -14
lines
pull up rev 1.14 from trunk (cgd):
Select the right tranceiver type when configuring the driver,
and change the timing for the MII code a bit. Fixes a problem
with MII not being reported correctly (PR#8363). (cgd)
Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Sep 1 21:03:02 1999 UTC (25 years, 3 months ago) by fvdl
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +52 -14
lines
Select the right transceiver type when configuring the driver. Change the
timing for the mii code a bit. From Robert Elz / the FreeBSD xl driver.
Revision 1.7.2.3.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:17:45 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.7.2.3: preferred, colored; next MAIN 1.7.2.4: preferred, colored
Changes since revision 1.7.2.3: +4 -8
lines
Sync w/ -current.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue May 18 23:52:55 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -7
lines
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.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri May 14 15:54:16 1999 UTC (25 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -1
lines
The last change made the driver go into an interrupt loop after a while.
Obviously, the TX_DEFERRALS counter must be read.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed May 12 15:33:29 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -2
lines
Don't count deferrals as output errors. It's only a (single) output error
if an excessive number of deferrals causes the transmission to abort.
Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 28 18:47:25 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE,
netbsd-1-4-PATCH001,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.2: +2 -1
lines
pullup 1.9->1.10 (Dean Huxley): fix kern/7483
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Apr 28 17:34:01 1999 UTC (25 years, 7 months ago) by dean
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -1
lines
Fix for PR kern/7483: ex driver gets bogus MAC address with 3c905B
Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 27 00:12:57 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +25 -14
lines
pullup 1.8->1.9 (thorpej)
Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 27 00:10:53 1999 UTC (25 years, 7 months ago) by perry
Branches: netbsd-1-4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +11 -3
lines
pullup 1.7->1.8 (Jonathan Stone)
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Apr 26 23:28:31 1999 UTC (25 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +25 -14
lines
Make the 3Com Etherlink XL driver work on big-endian systems. From
Izumi Tsutsui, PR #7279.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Apr 13 23:07:25 1999 UTC (25 years, 7 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +11 -3
lines
Fix ex_read_eeprom() for 3c57x.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Mar 29 11:11:34 1999 UTC (25 years, 8 months ago) by fvdl
Branches: MAIN
CVS tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -2
lines
Fix multicast hashing function. PR 7274, from Izumi Tsutsui
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Mar 25 23:18:32 1999 UTC (25 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -5
lines
Use ETHER_*_LEN constants from <net/if_ether.h> instead of defining them
ourselves.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Feb 28 17:10:53 1999 UTC (25 years, 9 months ago) by explorer
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -2
lines
Update to slightly altered rnd_attach_source() api
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Feb 17 03:41:00 1999 UTC (25 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -2
lines
Avoid initializing the interface in the SIOCSIFFLAGS if ! UP and ! RUNNING.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Jan 10 14:19:46 1999 UTC (25 years, 10 months ago) by drochner
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +20 -6
lines
- Set up the interface watchdog timer on sends. This fixes the hangups
reported by Matthias Scheler <tron@lyssa.owl.de> in PR kern/6772.
- After receiving, check whether the receive DMA pointer became 0
what obviously happens if the list runs out of entries. Simply reinit
in this case. This fixes receive lockups after DDB use observed
by myself.
Unstall the receive engine if the ELINK_UPPKTSTATUS indicates that it
was stalled. (Don't know when this might happen. FreeBSD does so.)
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Nov 29 01:40:46 1998 UTC (26 years ago) by thorpej
Branches: MAIN
CVS tags: kenh-if-detach-base,
kenh-if-detach
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +123 -43
lines
Fix media probe on non-MII chips.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 00:29:29 1998 UTC (26 years, 1 month ago) by fvdl
Branches: MAIN
CVS tags: chs-ubc-base,
chs-ubc
Add the 'ex' driver, a DMA driver for 3Com 90x and 90xB cards. Rename
constants from EP_ to ELINK_ since they're now used in the ex driver as well.
CVSweb <webmaster@jp.NetBSD.org>