The NetBSD Project

CVS log for src/sys/dev/pci/if_ti.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.123 / (download) - annotate - [select for diffs], Mon May 23 13:53:37 2022 UTC (21 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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, HEAD
Changes since 1.122: +23 -18 lines
Diff to previous 1.122 (colored)

Audit unload/unmap v.s. free against DMA buffer for sys/dev/pci;
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

XXX XXX XXX
Compile test only (for amd64/ALL).

Thanks riastradh@ for double check.

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

s/desciptor/descriptor/ in comment.

Revision 1.120.8.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:29 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.120: +25 -38 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Sync w/ HEAD.

Revision 1.120.12.1 / (download) - annotate - [select for diffs], Sun Jun 6 20:30:52 2021 UTC (2 years, 8 months ago) by cjep
Branch: cjep_sun2x
Changes since 1.120: +25 -38 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

sync with head

Revision 1.121 / (download) - annotate - [select for diffs], Sat Jun 5 14:28:28 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1
Changes since 1.120: +25 -38 lines
Diff to previous 1.120 (colored)

Back out the following changes:

  http://mail-index.netbsd.org/source-changes/2020/02/29/msg114581.html
  http://mail-index.netbsd.org/source-changes/2020/02/29/msg114583.html

They have reportedly caused some issues with link detection, and will
be revisited later.

Revision 1.101.8.3 / (download) - annotate - [select for diffs], Wed Aug 5 16:08:09 2020 UTC (3 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.101.8.2: +138 -138 lines
Diff to previous 1.101.8.2 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1590:

	sys/dev/pci/if_ti.c				1.103, 1.106, 1.108,
							1.116-1.120 via patch
	sys/dev/pci/if_tireg.h				1.26

- Use pci_intr_establish_xname()
- Don't clear CFI and priority bit to pass them to the upper layer.
- Add support for Farallon PN9000SX from FreeBSD.
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- Fix typo in comment.
- Style fix.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Wed Jul 15 17:16:59 2020 UTC (3 years, 7 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.112: +14 -14 lines
Diff to previous 1.112 (colored) next main 1.113 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1014:

	sys/dev/pci/if_ti.c				1.116-1.120 via patch
	sys/dev/pci/if_tireg.h				1.26

- Don't clear CFI and priority bit to pass them to the upper layer.
- Add support for Farallon PN9000SX from FreeBSD.
- Fix typo in comment.
- Style fix.

Revision 1.104.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:26 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.104.2.2: +2 -8 lines
Diff to previous 1.104.2.2 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:09 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.104.2.1: +66 -54 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored)

Merge changes from current as of 20200406

Revision 1.120 / (download) - annotate - [select for diffs], Thu Mar 5 15:45:48 2020 UTC (3 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, cjep_sun2x-base, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: thorpej-i2c-spi-conf, cjep_sun2x
Changes since 1.119: +4 -2 lines
Diff to previous 1.119 (colored)

Add support for Farallon PN9000SX from FreeBSD.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Mar 5 15:40:06 2020 UTC (3 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.118: +6 -6 lines
Diff to previous 1.118 (colored)

No functional change:

 - Remove extra semicolon
 - Remove extra whitespace

Revision 1.118 / (download) - annotate - [select for diffs], Thu Mar 5 15:36:39 2020 UTC (3 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.117: +6 -6 lines
Diff to previous 1.117 (colored)

No functional change:

 - Fix typo in comment.
 - Whitespace

Revision 1.117 / (download) - annotate - [select for diffs], Thu Mar 5 15:33:13 2020 UTC (3 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored)

s/Intialize/Initialize/ in comment.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Mar 3 05:41:36 2020 UTC (3 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.115: +4 -6 lines
Diff to previous 1.115 (colored)

Don't clear CFI and priority bit to pass them to the upper layer.

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:10 2020 UTC (3 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.113: +54 -42 lines
Diff to previous 1.113 (colored) next main 1.114 (colored)

Sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Feb 29 18:49:53 2020 UTC (3 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.114: +38 -25 lines
Diff to previous 1.114 (colored)

- Change the definition and usage of TI_HOSTADDR() to allow for 64-bit
  DMA addresses.  Modeled after similar usage in the bge(4) driver (the
  chips supported by bge(4) are descendants of those supported by ti(4)).
- Use the 64-bit PCI DMA tag if available, otherwise we're allocating (and
  using) bounce buffers needlessly.

Revision 1.114 / (download) - annotate - [select for diffs], Sat Feb 1 06:38:58 2020 UTC (4 years ago) by thorpej
Branch: MAIN
Changes since 1.113: +18 -19 lines
Diff to previous 1.113 (colored)

Adopt <net/if_stats.h>.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:36 2019 UTC (4 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.112: +3 -10 lines
Diff to previous 1.112 (colored)

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Jul 9 08:46:59 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.111: +3 -2 lines
Diff to previous 1.111 (colored)

 Don't automatically set ec_capenable's ETHERCAP_VLAN_HWTAGGING bit in
vlan_config() to make it user-controllable. Instead, set the bit in
xxx_attach().

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:16 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.104: +141 -138 lines
Diff to previous 1.104 (colored)

Sync with HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Wed May 29 10:07:29 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.110: +3 -6 lines
Diff to previous 1.110 (colored)

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

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

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

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

-No functional change:
  - Simplify struct ethercom's pointer near ETHER_FIRST_MULTI().
  - Simplify MII structure initialization.
  - u_int*_t -> uint*_t.
  - KNF

Revision 1.101.8.2 / (download) - annotate - [select for diffs], Mon May 13 12:40:13 2019 UTC (4 years, 9 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.101.8.1: +4 -4 lines
Diff to previous 1.101.8.1 (colored) to branchpoint 1.101 (colored)

Pull up the following, via patch, requested by msaitoh in ticket #1263:

	sys/dev/mii/brgphy.c				1.84
	sys/dev/mii/ciphy.c				1.33 via patch
	sys/dev/mii/rgephy.c				1.53
	sys/arch/arm/imx/if_enet.c			1.18
	sys/arch/mips/adm5120/dev/if_admsw.c		1.19-1.20
	sys/dev/pci/if_bge.c				1.329
	sys/dev/pci/if_bnx.c				1.81
	sys/dev/pci/if_et.c				1.21
	sys/dev/pci/if_lii.c				1.22
	sys/dev/pci/if_msk.c				1.87
	sys/dev/pci/if_nfe.c				1.68
	sys/dev/pci/if_sk.c				1.95
	sys/dev/pci/if_ti.c				1.107
	sys/dev/pci/if_txp.c				1.52
	sys/dev/pci/if_vge.c				1.69
	sys/dev/usb/if_axen.c				1.38
	sys/dev/usb/if_aue.c				1.149

Fix a bug that the duplex of manual media setting may be wrong
when the IFM_GMASK bit other than IFM_[FH]DX is set.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Apr 26 06:33:34 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.107: +122 -123 lines
Diff to previous 1.107 (colored)

No functional change:
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Apr 11 08:50:59 2019 UTC (4 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.106: +4 -4 lines
Diff to previous 1.106 (colored)

 Fix a bug that the duplex of manual media setting may be wrong
when the IFM_GMASK bit other than IFM_[FH]DX is set.

Revision 1.103.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:50 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.103.2.1: +4 -3 lines
Diff to previous 1.103.2.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.106 / (download) - annotate - [select for diffs], Sun Dec 9 11:14:02 2018 UTC (5 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.105: +4 -3 lines
Diff to previous 1.105 (colored)

use pci_intr_establish_xname() everywhere

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:46 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.103: +4 -4 lines
Diff to previous 1.103 (colored)

Sync with HEAD

Revision 1.105 / (download) - annotate - [select for diffs], Wed Jul 18 23:10:28 2018 UTC (5 years, 7 months ago) by sevan
Branch: MAIN
CVS Tags: pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

Be consistent among ethernet drivers on the convention for printing ethernet
addresses.

NFC

Revision 1.104 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:01 2018 UTC (5 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base
Branch point for: phil-wifi
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

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

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

Revision 1.103 / (download) - annotate - [select for diffs], Thu Feb 8 09:05:19 2018 UTC (6 years ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.102: +4 -4 lines
Diff to previous 1.102 (colored)

Typos.

Revision 1.90.18.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:08 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.90.18.2: +62 -71 lines
Diff to previous 1.90.18.2 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

update from HEAD

Revision 1.101.8.1 / (download) - annotate - [select for diffs], Tue Oct 24 08:38:59 2017 UTC (6 years, 3 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.101: +8 -12 lines
Diff to previous 1.101 (colored)

Pull up following revision(s) (requested by knakahara in ticket #302):
	sys/arch/powerpc/booke/dev/pq3etsec.c: 1.30-1.31
	sys/arch/x86/pci/if_vmx.c: 1.20
	sys/dev/ic/i82557.c: 1.148
	sys/dev/ic/rtl8169.c: 1.152
	sys/dev/pci/cxgb/cxgb_sge.c: 1.5
	sys/dev/pci/if_age.c: 1.51
	sys/dev/pci/if_alc.c: 1.25
	sys/dev/pci/if_ale.c: 1.23
	sys/dev/pci/if_bge.c: 1.311
	sys/dev/pci/if_bge.c: 1.312
	sys/dev/pci/if_bnx.c: 1.62
	sys/dev/pci/if_jme.c: 1.32
	sys/dev/pci/if_nfe.c: 1.64
	sys/dev/pci/if_sip.c: 1.167
	sys/dev/pci/if_stge.c: 1.63-1.64
	sys/dev/pci/if_ti.c: 1.102
	sys/dev/pci/if_txp.c: 1.48
	sys/dev/pci/if_vge.c: 1.61
	sys/dev/pci/if_wm.c: 1.538
	sys/dev/pci/ixgbe/ix_txrx.c: 1.29 via patch
	sys/net/agr/if_agrether_hash.c: 1.4
	sys/net/if_ether.h: 1.67-1.68
	sys/net/if_ethersubr.c: 1.244
	sys/net/if_vlan.c: 1.100
	sys/net80211/ieee80211_input.c: 1.89
	sys/net80211/ieee80211_output.c: 1.59
	sys/sys/mbuf.h: 1.171
VLAN ID uses pkthdr instead of mtag now. Contributed by s-yamaguchi@IIJ.
I just commit by proxy. Reviewed by joerg@n.o and christos@n.o, thanks.
See http://mail-index.netbsd.org/tech-net/2017/09/26/msg006459.html
--
only get vtag when we have vtag like the other drivers.
--
- only get the vtag if we have it like the other drivers
- mask the hardware vlan tag
--
- add a constant for the vlan mask.
- enforce that we have a tag before we get it.
only get vtag when we have vtag like the other drivers.
like if_bge.c:1.312 and if_stge.c:1.64.
fixed by s-yamaguchi@IIJ, thanks.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Sep 26 07:42:06 2017 UTC (6 years, 4 months ago) by knakahara
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.101: +8 -12 lines
Diff to previous 1.101 (colored)

VLAN ID uses pkthdr instead of mtag now. Contributed by s-yamaguchi@IIJ.

I just commit by proxy. Reviewed by joerg@n.o and christos@n.o, thanks.
See http://mail-index.netbsd.org/tech-net/2017/09/26/msg006459.html

XXX need pullup to -8 branch

Revision 1.93.6.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:30 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.93.6.5: +5 -14 lines
Diff to previous 1.93.6.5 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored)

Sync with HEAD

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:33 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.99: +5 -14 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

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

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

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

Proposed on tech-kern and tech-net

Revision 1.100 / (download) - annotate - [select for diffs], Thu Dec 8 01:12:01 2016 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.99: +5 -5 lines
Diff to previous 1.99 (colored)

Apply deferred if_start framework

if_schedule_deferred_start checks if the if_snd queue contains packets,
so drivers don't need to check it by themselves.

Revision 1.93.6.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:43 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.93.6.4: +45 -44 lines
Diff to previous 1.93.6.4 (colored) to branchpoint 1.93 (colored)

Sync with HEAD

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jul 14 04:15:27 2016 UTC (7 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.98: +45 -44 lines
Diff to previous 1.98 (colored)

- Use aprint_normal_dev() instead of aprint_error_dev() when printing
  Ethernet address.
- Use aprint() more.
- KNF.

Revision 1.93.6.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:04 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.93.6.3: +13 -12 lines
Diff to previous 1.93.6.3 (colored) to branchpoint 1.93 (colored)

Sync with HEAD

Revision 1.98 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:41 2016 UTC (7 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907
Changes since 1.97: +12 -11 lines
Diff to previous 1.97 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:14 2016 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.93.6.3 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:10 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.93.6.2: +3 -3 lines
Diff to previous 1.93.6.2 (colored) to branchpoint 1.93 (colored)

Sync with HEAD

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

Introduce softint-based if_input

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

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

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

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

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

Revision 1.93.6.2 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:59 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.93.6.1: +3 -2 lines
Diff to previous 1.93.6.1 (colored) to branchpoint 1.93 (colored)

Sync with HEAD

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Tue Aug 4 21:14:49 2015 UTC (8 years, 6 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.93: +4 -2 lines
Diff to previous 1.93 (colored) next main 1.94 (colored)

Pull up following revision(s) (requested by maxv in ticket #913):
	sys/dev/pci/if_ti.c: revisions 1.94, 1.95
fix mbuf leak on failure (Brainy)
--
Memory leak. Same as r1.93. I don't know why Brainy didn't detect it
earlier; or perhaps I forgot to report it.
Found by Brainy.

Revision 1.95 / (download) - annotate - [select for diffs], Sat Jul 25 08:36:44 2015 UTC (8 years, 7 months ago) by maxv
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.94: +3 -2 lines
Diff to previous 1.94 (colored)

Memory leak. Same as r1.93. I don't know why Brainy didn't detect it
earlier; or perhaps I forgot to report it.

Found by Brainy.

Revision 1.93.6.1 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:09 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored)

Sync with HEAD

Revision 1.94 / (download) - annotate - [select for diffs], Mon Apr 27 17:41:26 2015 UTC (8 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored)

fix mbuf leak on failure (Brainy)

Revision 1.90.18.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:42 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.90.18.1: +4 -9 lines
Diff to previous 1.90.18.1 (colored) to branchpoint 1.90 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.90.8.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:25 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.90.8.1: +4 -9 lines
Diff to previous 1.90.8.1 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:40 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.91: +4 -9 lines
Diff to previous 1.91 (colored) next main 1.92 (colored)

sync with head

Revision 1.93 / (download) - annotate - [select for diffs], Sat Mar 29 19:28:25 2014 UTC (9 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-base, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: nick-nhusb, netbsd-7
Changes since 1.92: +4 -3 lines
Diff to previous 1.92 (colored)

make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Feb 27 01:30:42 2014 UTC (9 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.91: +2 -8 lines
Diff to previous 1.91 (colored)

Remove impossible checks.

Revision 1.90.18.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:18 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.90: +52 -51 lines
Diff to previous 1.90 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.90.8.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:32 2012 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.90: +52 -51 lines
Diff to previous 1.90 (colored)

sync with head

Revision 1.91 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:34 2012 UTC (11 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.90: +52 -51 lines
Diff to previous 1.90 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.88.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:44 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.88.4.1: +2 -4 lines
Diff to previous 1.88.4.1 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

sync with head

Revision 1.90 / (download) - annotate - [select for diffs], Sat Nov 13 13:52:07 2010 UTC (13 years, 3 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-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, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.89: +2 -4 lines
Diff to previous 1.89 (colored)

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.81.4.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:48 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.81.4.3: +4 -6 lines
Diff to previous 1.81.4.3 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored)

sync with head.

Revision 1.88.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:35 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.88: +4 -6 lines
Diff to previous 1.88 (colored)

sync with head

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:37 2010 UTC (13 years, 9 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.88: +4 -6 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Apr 5 07:20:27 2010 UTC (13 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.88: +4 -6 lines
Diff to previous 1.88 (colored)

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.81.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:48 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.81.4.2: +24 -24 lines
Diff to previous 1.81.4.2 (colored) to branchpoint 1.81 (colored)

sync with head

Revision 1.88 / (download) - annotate - [select for diffs], Tue Jan 19 22:07:01 2010 UTC (14 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.87: +4 -11 lines
Diff to previous 1.87 (colored)

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.87 / (download) - annotate - [select for diffs], Thu Nov 26 15:17:10 2009 UTC (14 years, 2 months ago) by njoly
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.86: +5 -5 lines
Diff to previous 1.86 (colored)

Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Sep 27 12:52:59 2009 UTC (14 years, 4 months ago) by tsutsui
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.85: +19 -12 lines
Diff to previous 1.85 (colored)

Replace shutdownhook_establish(9) with pmf_device_register1(9).
Compile test only.

Revision 1.81.4.2 / (download) - annotate - [select for diffs], Sat May 16 10:41:35 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.81.4.1: +7 -7 lines
Diff to previous 1.81.4.1 (colored) to branchpoint 1.81 (colored)

sync with head

Revision 1.82.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:26 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.82: +7 -7 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.85 / (download) - annotate - [select for diffs], Tue May 12 08:23:01 2009 UTC (14 years, 9 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.

Revision 1.84 / (download) - annotate - [select for diffs], Wed May 6 10:34:32 2009 UTC (14 years, 9 months ago) by cegger
Branch: MAIN
Changes since 1.83: +6 -6 lines
Diff to previous 1.83 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.83 / (download) - annotate - [select for diffs], Wed May 6 09:25:16 2009 UTC (14 years, 9 months ago) by cegger
Branch: MAIN
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:57 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.81: +6 -5 lines
Diff to previous 1.81 (colored)

sync with head.

Revision 1.81.12.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:26 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.81: +6 -5 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Sync with HEAD.

Revision 1.80.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:00 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.80.6.1: +4 -3 lines
Diff to previous 1.80.6.1 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

Sync with HEAD.

Revision 1.81.10.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:35 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.81: +6 -5 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:07 2008 UTC (15 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.81: +6 -5 lines
Diff to previous 1.81 (colored)

*** 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.80.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:40 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.80: +74 -77 lines
Diff to previous 1.80 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Apr 10 19:13:37 2008 UTC (15 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, 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: yamt-nfs-mp, nick-hppapmap, haad-dm
Changes since 1.80: +74 -77 lines
Diff to previous 1.80 (colored)

use aprint_*_dev and device_xname

Revision 1.74.16.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:48 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.74.16.2: +16 -14 lines
Diff to previous 1.74.16.2 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

sync with HEAD

Revision 1.78.2.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:57 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.78.2.1: +16 -14 lines
Diff to previous 1.78.2.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored)

Sync with HEAD.

Revision 1.68.2.6 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:39 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.5: +16 -14 lines
Diff to previous 1.68.2.5 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

sync with head.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Feb 7 01:21:57 2008 UTC (16 years ago) by dyoung
Branch: 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
Changes since 1.79: +16 -14 lines
Diff to previous 1.79 (colored)

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.78.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:11 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Sync with HEAD.

Revision 1.68.2.5 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:22 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.4: +3 -3 lines
Diff to previous 1.68.2.4 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.77.4.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:21 2007 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.77.4.1: +1 -1 lines
Diff to previous 1.77.4.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

Sync with HEAD

Revision 1.74.14.4 / (download) - annotate - [select for diffs], Sun Nov 11 16:47:42 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.74.14.3: +3 -3 lines
Diff to previous 1.74.14.3 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Sync with HEAD.

Revision 1.74.16.2 / (download) - annotate - [select for diffs], Thu Nov 8 10:59:55 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.74.16.1: +3 -3 lines
Diff to previous 1.74.16.1 (colored) to branchpoint 1.74 (colored)

sync with -HEAD

Revision 1.79 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:19 2007 UTC (16 years, 3 months ago) by ad
Branch: 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, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.74.16.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:07 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.74: +172 -232 lines
Diff to previous 1.74 (colored)

sync with HEAD

Revision 1.68.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:33:02 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.3: +169 -226 lines
Diff to previous 1.68.2.3 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.74.14.3 / (download) - annotate - [select for diffs], Fri Oct 26 15:46:21 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.74.14.2: +3 -3 lines
Diff to previous 1.74.14.2 (colored) to branchpoint 1.74 (colored)

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.77.4.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:39:05 2007 UTC (16 years, 4 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

Sync with HEAD.

Revision 1.74.2.3 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:02 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.74.2.2: +3 -3 lines
Diff to previous 1.74.2.2 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:48 2007 UTC (16 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Branch point for: mjf-devfs
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:46 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.74.2.1: +171 -231 lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored)

Sync with head.

Revision 1.74.14.2 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:32 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.74.14.1: +168 -225 lines
Diff to previous 1.74.14.1 (colored) to branchpoint 1.74 (colored)

Sync with HEAD.

Revision 1.74.10.2 / (download) - annotate - [select for diffs], Mon Sep 10 10:55:15 2007 UTC (16 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.74.10.1: +168 -225 lines
Diff to previous 1.74.10.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Sep 7 23:05:27 2007 UTC (16 years, 5 months ago) by tnn
Branch: 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: bouyer-xenamd64
Changes since 1.76: +168 -225 lines
Diff to previous 1.76 (colored)

First part of ti(4) overhaul:
- Sanitise macros
- Apply KNF
Should have no functional changes.

Revision 1.74.14.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:18 2007 UTC (16 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.74: +5 -8 lines
Diff to previous 1.74 (colored)

Sync with HEAD.

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:37:03 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.2: +34 -36 lines
Diff to previous 1.68.2.2 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.74.10.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:21:03 2007 UTC (16 years, 5 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.74: +5 -8 lines
Diff to previous 1.74 (colored)

Sync with HEAD.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Sat Sep 1 12:56:46 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Update for pool_cache API changes.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Sep 1 07:32:30 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.75: +3 -6 lines
Diff to previous 1.75 (colored)

Change a bazillion occurrences of code resembling this,

	error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Aug 29 22:33:43 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

Constify: LLADDR() -> CLLADDR().

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:55:21 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.73: +31 -30 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Sync with HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:23 2007 UTC (16 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.73: +31 -30 lines
Diff to previous 1.73 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:45 2006 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68.2.1: +9 -33 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored)

sync with head.

Revision 1.71.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:44 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.71.4.1: +5 -5 lines
Diff to previous 1.71.4.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

sync with head.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:31 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.71: +9 -14 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:09 2006 UTC (17 years, 3 months ago) by christos
Branch: 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
Changes since 1.72: +5 -5 lines
Diff to previous 1.72 (colored)

__unused removal on arguments; approved by core.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:17 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.71: +9 -14 lines
Diff to previous 1.71 (colored)

sync with head

Revision 1.72 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:30 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.71: +9 -14 lines
Diff to previous 1.71 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.69.8.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:33 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.69.8.1: +2 -21 lines
Diff to previous 1.69.8.1 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored)

sync with head.

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:18 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.69: +3 -22 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Thu Sep 7 02:40:33 2006 UTC (17 years, 5 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.70: +2 -21 lines
Diff to previous 1.70 (colored)

remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:05 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored)

sync with head.

Revision 1.69.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:14 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync with head.

Revision 1.69.10.1 / (download) - annotate - [select for diffs], Wed Apr 19 03:25:35 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

sync with head.

Revision 1.69.8.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:16 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

sync with head.

Revision 1.69.12.1 / (download) - annotate - [select for diffs], Fri Mar 31 09:45:23 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Mar 28 17:38:34 2006 UTC (17 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

Use device_unit().

Revision 1.69 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:49 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

merge ktrace-lwp.

Revision 1.57.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:02 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.7: +52 -53 lines
Diff to previous 1.57.2.7 (colored) next main 1.58 (colored)

Sync with HEAD. Here we go again...

Revision 1.68 / (download) - annotate - [select for diffs], Mon May 30 04:35:22 2005 UTC (18 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, 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
Branch point for: yamt-lazymbuf
Changes since 1.67: +31 -36 lines
Diff to previous 1.67 (colored)

- const poisoning
- avoid variable shadowing.

Revision 1.67 / (download) - annotate - [select for diffs], Mon May 2 15:34:32 2005 UTC (18 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.66: +23 -19 lines
Diff to previous 1.66 (colored)

split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:06 2005 UTC (18 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.63: +83 -107 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

sync with -current

Revision 1.63.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:11 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.63.6.1: +26 -45 lines
Diff to previous 1.63.6.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.57.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:19 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.6: +26 -45 lines
Diff to previous 1.57.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.66 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:33 2005 UTC (18 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, 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, netbsd-3, kent-audio2-base
Changes since 1.65: +12 -12 lines
Diff to previous 1.65 (colored)

nuke trailing whitespace

Revision 1.65 / (download) - annotate - [select for diffs], Sun Feb 20 15:48:35 2005 UTC (19 years ago) by jdolecek
Branch: MAIN
Changes since 1.64: +16 -35 lines
Diff to previous 1.64 (colored)

use VLAN_* macros for VLAN tag extraction/addition

also restructure and simplify input VLAN ID code handling somewhat, to not use
local have_vlan/vlan_tag variables, and use the appropriate cur_rx condition
on the one place where it's needed

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:47 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.63: +59 -64 lines
Diff to previous 1.63 (colored)

sync with head.

Revision 1.57.2.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:46:38 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.5: +59 -64 lines
Diff to previous 1.57.2.5 (colored)

Sync with HEAD.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Feb 4 02:10:45 2005 UTC (19 years ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.63: +59 -64 lines
Diff to previous 1.63 (colored)

de-__P

Revision 1.57.2.5 / (download) - annotate - [select for diffs], Tue Oct 19 15:56:59 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.4: +4 -4 lines
Diff to previous 1.57.2.4 (colored)

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Wed Sep 29 11:22:03 2004 UTC (19 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored)

- mbuf external storage is of (caddr_t), not (caddr_t *).
- remove a needless cast.

Revision 1.57.2.4 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:28 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.3: +3 -2 lines
Diff to previous 1.57.2.3 (colored)

Sync with HEAD.

Revision 1.62 / (download) - annotate - [select for diffs], Tue Sep 21 21:57:30 2004 UTC (19 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored)

introduce M_EXT_RW to allow mbuf external storage R/W.
discussed on tech-net@.

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:03 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.2: +2 -2 lines
Diff to previous 1.57.2.2 (colored)

Fix the sync with head I botched.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:04 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57.2.1: +2 -2 lines
Diff to previous 1.57.2.1 (colored)

Sync with HEAD.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:09 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.57: +18 -7 lines
Diff to previous 1.57 (colored)

Sync with HEAD

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Wed Jul 28 11:00:54 2004 UTC (19 years, 6 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, 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, 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, netbsd-2
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Pull up revision 1.61 (requested by he in ticket #719):
Make the SSLOTS, MSLOTS and JSLOTS tunable (redefineable).
Bump the default values for these to the values used by FreeBSD,
and also adjust ti_init_rx_ring_jumbo() to use the same constant
that FreeBSD uses.  Yes, this consumes more kernel memory.
The effect of this is that you can use jumbo frames in a back-to-back
setup with TCP windows up to about 250KB and get ~930Mbit/s throughput,
while we were earlier limited to around 3-400Mbit/s, and trying to push
above that mark by widening the TCP window caused
  ti0: jumbo buffer allocation failed
messages to be logged and a corresponding stall in the traffic.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jul 27 07:59:51 2004 UTC (19 years, 7 months ago) by he
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Make the SSLOTS, MSLOTS and JSLOTS tunable (redefineable).
Bump the default values for these to the values used by FreeBSD,
and also adjust ti_init_rx_ring_jumbo() to use the same constant
that FreeBSD uses.  Yes, this consumes more kernel memory.

The effect of this is that you can use jumbo frames in a back-to-back
setup with TCP windows up to about 250KB and get ~930Mbit/s throughput,
while we were earlier limited to around 3-400Mbit/s, and trying to push
above that mark by widening the TCP window caused
  ti0: jumbo buffer allocation failed
messages to be logged and a corresponding stall in the traffic.

Revision 1.47.4.3 / (download) - annotate - [select for diffs], Wed May 26 14:02:31 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-1-6
Changes since 1.47.4.2: +9 -2 lines
Diff to previous 1.47.4.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

Pull up revision 1.60 (requested by bouyer in ticket #1698):
Use the bus_space_*_stream_* methods to access the chip's registers.
As we turn the chip to big-endian mode on big-endian systems, we should
never byte-swap the data read/written from/to registers. Tested on sparc64.
Finally fix kern/13341 by Jason R. Thorpe (really, the hard work of putting
bus_dmamap_sync() calls at the right places has been done my Jason mid-2001 :)

Revision 1.47.4.2 / (download) - annotate - [select for diffs], Wed May 26 14:00:59 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-1-6
Changes since 1.47.4.1: +7 -3 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored)

Pull up revision 1.59 (requested by bouyer in ticket #1697):
cur_rx->ti_vlan_tag holds the 802.1q VLAN tag and the 802.1p priority.
Trimm the priority, as the upper layers won't do it and will drop the packet
if priority is not 0.
While there, print the revision in the "unsupported chip revision" printf.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Mar 18 23:20:32 2004 UTC (19 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.59: +9 -2 lines
Diff to previous 1.59 (colored)

Use the bus_space_*_stream_* methods to access the chip's registers.
As we turn the chip to big-endian mode on big-endian systems, we should
never byte-swap the data read/written from/to registers. Tested on sparc64.
Finally fix kern/13341 by Jason R. Thorpe (really, the hard work of putting
bus_dmamap_sync() calls at the right places has been done my Jason mid-2001 :)

Revision 1.59 / (download) - annotate - [select for diffs], Thu Mar 18 22:45:35 2004 UTC (19 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.58: +9 -5 lines
Diff to previous 1.58 (colored)

cur_rx->ti_vlan_tag holds the 802.1q VLAN tag and the 802.1p priority.
Trimm the priority, as the upper layers won't do it and will drop the packet
if priority is not 0.
While there, print the revision in the "unsupported chip revision" printf.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Feb 24 15:05:55 2004 UTC (20 years ago) by wiz
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

becuase -> because. From Peter Postma.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Feb 9 21:43:43 2003 UTC (21 years ago) by mjacob
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.56: +7 -5 lines
Diff to previous 1.56 (colored)

Add missing binding of VLAN tag to received packet.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Jan 31 05:00:25 2003 UTC (21 years ago) by thorpej
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored)

Change ext_size to a size_t, and update the signature of ext_free.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jan 21 05:39:57 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

vlan tagging mistake during m_tag transition

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jan 20 05:30:07 2003 UTC (21 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

The Double-Semi-Colon Police.

Revision 1.20.2.9 / (download) - annotate - [select for diffs], Fri Jan 17 16:31:44 2003 UTC (21 years, 1 month ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.20.2.8: +17 -16 lines
Diff to previous 1.20.2.8 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 17 08:11:51 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.52: +17 -16 lines
Diff to previous 1.52 (colored)

switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag
implementation.  it will simplify porting across *bsd (such as kame/altq),
and make us more synchronized.  from Joel Wilsson

Revision 1.20.2.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:07 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.7: +2 -3 lines
Diff to previous 1.20.2.7 (colored) to branchpoint 1.20 (colored)

Catch up to -current.

Revision 1.39.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:40:47 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.5: +4 -5 lines
Diff to previous 1.39.2.5 (colored) next main 1.40 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.52 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:32 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Sep 30 20:37:39 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +4 -5 lines
Diff to previous 1.50 (colored)

Use CFATTACH_DECL().

Revision 1.50 / (download) - annotate - [select for diffs], Fri Sep 27 20:40:18 2002 UTC (21 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored)

Declare all cfattach structures const.

Revision 1.39.2.5 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:19 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.4: +4 -4 lines
Diff to previous 1.39.2.4 (colored)

sync kqueue branch with HEAD

Revision 1.20.2.7 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:18 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.6: +4 -4 lines
Diff to previous 1.20.2.6 (colored) to branchpoint 1.20 (colored)

Catch up to -current.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Sat Jul 20 11:35:09 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.47.2.1: +4 -4 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored)

catch up with -current.

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Thu Jul 18 04:27:26 2002 UTC (21 years, 7 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, 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
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

Pull up revision 1.49 (requested by thorpej in ticket #513):
Add missing BUS_DMA_NOWAIT to bus_dmamap_load_mbuf() calls. Should fix
port-alpha/17615.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jul 16 20:20:01 2002 UTC (21 years, 7 months ago) by bouyer
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored)

Add missing BUS_DMA_NOWAIT to bus_dmamap_load_mbuf() calls. Should fix
port-alpha/17615.

Revision 1.39.2.4 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:44 2002 UTC (21 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.2.3: +24 -27 lines
Diff to previous 1.39.2.3 (colored)

catch up with -current on kqueue branch

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:33:37 2002 UTC (21 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.47: +11 -15 lines
Diff to previous 1.47 (colored)

catch up with -current.

Revision 1.20.2.6 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:28 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.5: +23 -26 lines
Diff to previous 1.20.2.5 (colored) to branchpoint 1.20 (colored)

Catch up to -current.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jun 1 23:50:59 2002 UTC (21 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.47: +11 -15 lines
Diff to previous 1.47 (colored)

SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups

Revision 1.47 / (download) - annotate - [select for diffs], Thu May 2 16:22:45 2002 UTC (21 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.46: +11 -6 lines
Diff to previous 1.46 (colored)

Change the semantics of mbuf external storage "ext_free" routines
so that they're more useful for arbitrary types of external storage:

* Add an "mbuf *" argument to (*ext_free)().  If non-NULL, (*ext_free)()
  is expected to free the mbuf itself.  This allows (*ext_free)() to use
  the mbuf for bookkeeping (e.g. deferring the work to a helper thread).
  If the "mbuf *" argument is NULL, we are assumed to be in a context
  which is safe for performing the destructor operation *now*.
* Adjust MEXTREMOVE() and MFREE() routines for above change.
* Update "ade" and "ti" drivers for new semantics.

Revision 1.46 / (download) - annotate - [select for diffs], Sun Apr 28 01:00:26 2002 UTC (21 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +5 -9 lines
Diff to previous 1.45 (colored)

Use MEXTADD() rather than open-coding it.

Revision 1.20.2.5 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:24 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.4: +3 -3 lines
Diff to previous 1.20.2.4 (colored) to branchpoint 1.20 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 20 17:32:23 2002 UTC (21 years, 11 months ago) by eeh
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Use bus_space_vaddr() correctly.  (Why use bus_space_vaddr() at all?)

Revision 1.39.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:45 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.39.2.2: +6 -1 lines
Diff to previous 1.39.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.20.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:05 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.3: +4 -2 lines
Diff to previous 1.20.2.3 (colored) to branchpoint 1.20 (colored)

Catch up to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Nov 26 02:41:20 2001 UTC (22 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base
Changes since 1.43: +4 -2 lines
Diff to previous 1.43 (colored)

make it compile without INET

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:18 2001 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.2: +4 -1 lines
Diff to previous 1.20.2.2 (colored) to branchpoint 1.20 (colored)

Catch up to -current.

Revision 1.8.4.4 / (download) - annotate - [select for diffs], Tue Nov 13 21:45:36 2001 UTC (22 years, 3 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.8.4.3: +6 -6 lines
Diff to previous 1.8.4.3 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Pull up revision 1.26 (requested by bouyer):
  When setting/changing an address, do not call ti_init() if the
  interface is already up.  This allows netatalk to start when
  using this interface.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:45 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.42: +4 -1 lines
Diff to previous 1.42 (colored)

add RCSID

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Sat Aug 25 06:16:23 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.39.2.1: +3 -3 lines
Diff to previous 1.39.2.1 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:08 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20.2.1: +299 -128 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored)

Catch up with -current.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Aug 20 12:00:53 2001 UTC (22 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

precede, not preceed.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Aug 14 11:55:38 2001 UTC (22 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

add (u_long) casts for sparc64.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:16 2001 UTC (22 years, 6 months ago) by lukem
Branch: kqueue
Changes since 1.39: +7 -5 lines
Diff to previous 1.39 (colored)

update to -current

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jul 19 16:36:15 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +7 -5 lines
Diff to previous 1.39 (colored)

Use BUS_DMA_READ and BUS_DMA_WRITE in some obvious places.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jul 7 16:46:35 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: kqueue
Changes since 1.38: +7 -7 lines
Diff to previous 1.38 (colored)

bzero -> memset

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jul 7 16:40:24 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

bcopy -> memcpy, strcpy

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 5 21:27:31 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored)

For product names that include the media in the name, don't bother
saying "Gigabit".

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jun 30 17:53:59 2001 UTC (22 years, 7 months ago) by bjh21
Branch: MAIN
Changes since 1.35: +8 -8 lines
Diff to previous 1.35 (colored)

IFM_1000_TX -> IFM_1000_T, as (breifly) discussed on tech-net.

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 30 17:02:54 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +13 -3 lines
Diff to previous 1.34 (colored)

Sync the Tx descriptors pre- and post- on the Tigon 2.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jun 30 16:34:59 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +11 -2 lines
Diff to previous 1.33 (colored)

When we're done setting up the General Information Block, sync it.
Sync the NIC-maintained stats structure as appropriate, as well.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jun 30 15:39:51 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.32: +13 -25 lines
Diff to previous 1.32 (colored)

Use macros (like those in every other network driver I have written)
to compute the offset of a structure in the DMA'd control data, and
the DMA address of that structure.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jun 30 14:56:59 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.31: +64 -20 lines
Diff to previous 1.31 (colored)

Split the tx-end-of-frame routine into Tigon 1 and Tigon 2 verions,
for the same reason we split the tx encap routine.

Revision 1.31 / (download) - annotate - [select for diffs], Sat Jun 30 14:47:23 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +155 -48 lines
Diff to previous 1.30 (colored)

Split the transmit encap routine into two versions: one for the Tigon 1
and another for the Tigon 2.  This eliminates a conditional in the
loop around the DMA segments, and will make further cleanup easier.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jun 30 14:16:55 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

Move the `ti_tx_ring_nic' pointer out of the ring-data structure
and into the softc.  Garbage-collect the `ti_cmd_ring' pointer,
since bus_space is properly used to access the command ring.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jun 30 05:48:24 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +15 -5 lines
Diff to previous 1.28 (colored)

When a transmit is complete, sync (and unload!!) the DMA map used
for the packet.  When setting up a packet for transmit, sync the
DMA map being used.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jun 30 04:33:11 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored)

Move the Tigon/Tigon2 firmware, version 12.4.13+wpaul, to a
more appropriate location.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jun 29 23:58:08 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

Correct spelling of media in the product names.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 27 16:47:33 2001 UTC (22 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.25: +6 -6 lines
Diff to previous 1.25 (colored)

When setting/changing an address, no need to call ti_init() if the interface
is already up.
Especially this allow netatalk to start properly on a ti interface.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:04:51 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.20: +128 -56 lines
Diff to previous 1.20 (colored)

Catch up to -current.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jun 12 15:17:25 2001 UTC (22 years, 8 months ago) by wiz
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

receive, not recieve

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 7 14:35:58 2001 UTC (22 years, 8 months ago) by bouyer
Branch: MAIN
Changes since 1.23: +5 -4 lines
Diff to previous 1.23 (colored)

Set TI_OPMODE_1_DMA_ACTIVE only if hardware assisted checksum isn't used
(FreeBSD does it this way). My Tigon II works with hardware assisted checksum
now.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jun 3 03:46:43 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +7 -8 lines
Diff to previous 1.22 (colored)

In ti_init2(), use a simpler, more obvious, and correct MTU
calculation to give the firmware.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jun 3 03:29:44 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +8 -8 lines
Diff to previous 1.21 (colored)

Replace a bunch of home-grown Ethernet related constants with
ones defined in <net/if_ether.h>

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jun 2 16:17:08 2001 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +111 -39 lines
Diff to previous 1.20 (colored)

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.8.4.3 / (download) - annotate - [select for diffs], Tue Mar 13 20:44:13 2001 UTC (22 years, 11 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.8.4.2: +45 -21 lines
Diff to previous 1.8.4.2 (colored) to branchpoint 1.8 (colored)

Pull up revision 1.20 (requested by tsutsui):
  Handle allmulti case correctly as a NetBSD network driver;
  if we are requested range of multicast address or too many
  multicast address, program multicast filter to receive all
  multicast address.   And set/clear IFF_ALLMULTI flag properly.

Revision 1.2.2.5 / (download) - annotate - [select for diffs], Sun Feb 11 19:15:56 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.4: +52 -27 lines
Diff to previous 1.2.2.4 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Sync with HEAD.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 29 01:24:42 2001 UTC (23 years ago) by enami
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.19: +45 -21 lines
Diff to previous 1.19 (colored)

Handle allmulti case correctly as a NetBSD network driver;
if we are requested range of multicast address or too many multicast address,
program multicast filter to receive all multicast address.   And set/clear
IFF_ALLMULTI flag properly.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:15 2001 UTC (23 years, 1 month ago) by jdolecek
Branch: MAIN
Changes since 1.18: +8 -7 lines
Diff to previous 1.18 (colored)

constify

Revision 1.2.2.4 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:26 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.3: +2 -2 lines
Diff to previous 1.2.2.3 (colored) to branchpoint 1.2 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 14 17:41:17 2001 UTC (23 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Use splnet() to block network interrupts, not splimp().

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:08 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.2: +17 -6 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored)

Sync with HEAD

Revision 1.8.4.2 / (download) - annotate - [select for diffs], Sun Dec 31 21:19:53 2000 UTC (23 years, 1 month ago) by jhawk
Branch: netbsd-1-5
Changes since 1.8.4.1: +128 -94 lines
Diff to previous 1.8.4.1 (colored) to branchpoint 1.8 (colored)

Pull up revision 1.12, 1.15 via patch (requested by bouyer):
  For the ti driver, add hardware 802.1Q support, update firmware
  to 12.4.13+wpaul, and support the Netgear GA620T copper gigabit card,
  and the Alteon ACEnic 100baseSX and 1000baseT gigabit cards. Various
  small changes from FreeBSD.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Dec 28 22:59:13 2000 UTC (23 years, 1 month ago) by sommerfeld
Branch: MAIN
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored)

Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 14 06:42:57 2000 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +17 -5 lines
Diff to previous 1.15 (colored)

ALTQ'ify.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:04:06 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2.2.1: +132 -101 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored)

Sync with HEAD.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:23 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.2: +119 -223 lines
Diff to previous 1.2 (colored)

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.15 / (download) - annotate - [select for diffs], Fri Nov 17 19:33:25 2000 UTC (23 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.14: +114 -91 lines
Diff to previous 1.14 (colored)

Pull up FreeBSD changes:
1.39:
Have if_ti stop "hiding" the softc pointer in the buffer region. Rather,
use the available void * passed to the free routine and pass the softc
pointer through there.
1.33:
Add support for the Netgear GA620T copper gigabit card.
1.32:
Tweak probe message so that 1000baseSX and 1000baseT cards are
explicitly identified.
1.31:
Update the Tigon driver to support 1000baseTX gigE over copper AceNIC
cards. This basically involves switching to the 12.4.13 firmware, plus
a couple of minor tweaks to the driver.

NetBSD changes:
get rid of ti_inuse, the mbuf ref counting code should call ti_free() when
needed.
Use hardware 802.1q support.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 15 01:02:15 2000 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +1 -6 lines
Diff to previous 1.13 (colored)

Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 14 18:42:57 2000 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.12: +5 -3 lines
Diff to previous 1.12 (colored)

NBPG -> PAGE_SIZE

Revision 1.12 / (download) - annotate - [select for diffs], Sun Nov 12 18:32:43 2000 UTC (23 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.11: +16 -5 lines
Diff to previous 1.11 (colored)

- use jumbo rx if mtu is too big to fit in one mbuf, not when larger than
  ETHERMTU.
- add support for ETHERCAP_VLAN_MTU.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 1 23:32:43 2000 UTC (23 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +2 -12 lines
Diff to previous 1.10 (colored)

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.8.4.1 / (download) - annotate - [select for diffs], Tue Sep 26 20:18:16 2000 UTC (23 years, 5 months ago) by martin
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.8: +5 -1 lines
Diff to previous 1.8 (colored)

Pullup revision 1.10 (approved by thorpej).

  Fix multicast filters. Patch from Keijiro Ehara.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Sep 24 14:19:52 2000 UTC (23 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.9: +5 -1 lines
Diff to previous 1.9 (colored)

Add calls to ether_addmulti and ether_delmulti. This code looks a bit
different than other drivers due to the way ti_setmulti manages the
filters. Patch from Keijiro Ehara.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 24 12:37:03 2000 UTC (23 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

use new generic bootverbose instead of local definition

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Thu Jul 6 10:42:25 2000 UTC (23 years, 7 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.1.2.5: +6 -6 lines
Diff to previous 1.1.2.5 (colored) next main 1.2 (colored)

Pull up revision 1.3 (requested by he):
  Make the ti(4) driver compile again after the wi(4) related
  pullups of if_media.h changed IFM_1000_FX to IFM_1000_SX.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Thu Jun 1 18:04:43 2000 UTC (23 years, 8 months ago) by he
Branch: netbsd-1-4
Changes since 1.1.2.4: +2 -1 lines
Diff to previous 1.1.2.4 (colored)

Apply patch (requested by bouyer):
  Fix compile error.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Sun Apr 30 13:07:07 2000 UTC (23 years, 9 months ago) by he
Branch: netbsd-1-4
Changes since 1.1.2.3: +88 -191 lines
Diff to previous 1.1.2.3 (colored)

Pull up revisions 1.6-1.7 (via patch, requested by bouyer):
  Fix bug which could result in a panic.  Add a shutdown hook to
  stop the board to avoid memory corruption on reboot.  Use bus_space
  for TIGON 2 chips, so that they will work even if we can't map
  the memory space linearly (e.g. on alpha).

Revision 1.8 / (download) - annotate - [select for diffs], Thu Mar 30 12:45:35 2000 UTC (23 years, 10 months ago) by augustss
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.7: +13 -13 lines
Diff to previous 1.7 (colored)

Remove register declarations.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 17 09:25:22 2000 UTC (23 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

Fix botched merge in previous.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Mar 17 09:20:16 2000 UTC (23 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.5: +89 -191 lines
Diff to previous 1.5 (colored)

- remove leftovers of FreeBSD code in #if 0/#endif
- fix a bug in ti_encap() where a NULL pointer could be used if we run out
  of tx descriptors (return ENOMEM instead, and let the caller assert OACTIVE)
- sync boot messages with NetBSD's pci standart (print ti_name and irq
  line)
- add a shutdown hook to stop the board, so that the board will not DMA at
  random places while we're rebooting
- convert all but TIGON 1 transmit descriptors to use bus_space
  (this last one isn't trivial to get rigth and I don't have the hardware to
  test)
- If we can't map the mem space linar, retry to map it nolinear. Punt if
  we couldn't map the mem space linear and we found a Tigon 1 chip.

With these changes a Tigon 2 board (netgear BA620 at last) can be used in
my DS20.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 6 21:02:37 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +9 -3 lines
Diff to previous 1.4 (colored)

Set ifp->if_baudrate as appropriate.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 25 23:23:48 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

"i/o" -> "memory"

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 25 20:19:14 2000 UTC (24 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.2: +6 -6 lines
Diff to previous 1.2 (colored)

IFM_1000_FX -> IFM_1000_SX

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:17 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.1: +7 -2 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Pull up to last week's -current.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Wed Oct 6 13:29:34 1999 UTC (24 years, 4 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002
Changes since 1.1.2.2: +7 -2 lines
Diff to previous 1.1.2.2 (colored)

Pull up revision 1.2 (requested by drochner):
  Make it compile in GENERIC by including NS headers.
  Pull in fix from FreeBSD.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 6 11:23:33 1999 UTC (24 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.1: +7 -2 lines
Diff to previous 1.1 (colored)

1. include headers for NS support
2. pull in a fix from FreeBSD:
revision 1.18
date: 1999/09/17 18:04:14;  author: wpaul;  state: Exp;  lines: +3 -3
Remember to account for ETHER_ALIGN when setting the maxmimum packet
length for mini receive ring. The max length was MHLEN, however the mbufs
are actually shortened to MHLEN - ETHER_ALIGN to force payload alignment.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Oct 5 22:08:51 1999 UTC (24 years, 4 months ago) by he
Branch: netbsd-1-4
Changes since 1.1.2.1: +2757 -0 lines
Diff to previous 1.1.2.1 (colored)

Pull up revision 1.1+patch (new, requested by drochner):
  Back-port of driver for Alteon Gigabit Ethernet driver, originally
  from FreeBSD.

Revision 1.1.2.1, Wed Sep 1 11:47:46 1999 UTC (24 years, 5 months ago) by he
Branch: netbsd-1-4
Changes since 1.1: +0 -2756 lines
FILE REMOVED

file if_ti.c was added on branch netbsd-1-4 on 1999-10-05 22:08:51 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 1 11:47:46 1999 UTC (24 years, 5 months ago) by drochner
Branch: MAIN
Branch point for: wrstuden-devbsize, netbsd-1-4

quick 'n dirty port of FreeBSD's Alteon Gigabit Ethernet driver.
todo:
-IPv6
-clean up jumbo buffer allocation - NetBSD provides an opaque argument
 to the free function, thus doesn't need the hack done here
-deal correctly with the mapping of the shared memory

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




CVSweb <webmaster@jp.NetBSD.org>