The NetBSD Project

CVS log for src/sys/dev/scsipi/if_se.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.119 / (download) - annotate - [select for diffs], Wed Dec 20 18:09:19 2023 UTC (2 months, 1 week ago) by skrll
Branch: MAIN
CVS Tags: HEAD
Changes since 1.118: +2 -3 lines
Diff to previous 1.118 (colored)

Remove unnecssary #include

Revision 1.118 / (download) - annotate - [select for diffs], Mon Aug 29 07:32:46 2022 UTC (18 months ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.117: +7 -3 lines
Diff to previous 1.117 (colored)

Make this build again.  Sorry about that.

Revision 1.117 / (download) - annotate - [select for diffs], Sun Aug 28 09:48:12 2022 UTC (18 months ago) by skrll
Branch: MAIN
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored)

se(4): don't set if_watchdog as it's not used.

if_timer is never set in this driver and so if_watchdog will never be
called.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Jul 7 06:11:28 2022 UTC (19 months, 3 weeks ago) by skrll
Branch: MAIN
Changes since 1.115: +5 -5 lines
Diff to previous 1.115 (colored)

Trailing whitespace

Revision 1.115 / (download) - annotate - [select for diffs], Sat Jan 1 10:32:29 2022 UTC (2 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

s/sytem/system/

Revision 1.114 / (download) - annotate - [select for diffs], Sun Sep 19 10:34:09 2021 UTC (2 years, 5 months ago) by andvar
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

fix various typos in comments, messages and documentation.

Revision 1.112.6.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:30 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.112: +3 -7 lines
Diff to previous 1.112 (colored) next main 1.113 (colored)

Sync w/ HEAD.

Revision 1.113 / (download) - annotate - [select for diffs], Wed Jun 16 00:21:19 2021 UTC (2 years, 8 months ago) by riastradh
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
Changes since 1.112: +3 -7 lines
Diff to previous 1.112 (colored)

if_attach and if_initialize cannot fail, don't test return value

These were originally made failable back in 2017 when if_initialize
allocated a softint in every interface for link state changes, so
that it could fail gracefully instead of panicking:

https://mail-index.NetBSD.org/source-changes/2017/10/23/msg089053.html

However, this spawned many seldom- or never-tested error branches,
which are risky to have around.  And that softint in every interface
has since been replaced by a single global workqueue, because link
state changes require thread context but not low latency or high
throughput:

https://mail-index.NetBSD.org/source-changes/2020/02/06/msg113759.html

So there is no longer any reason for if_initialize to fail.  (The
subroutine if_stats_init can't fail because percpu_alloc can't fail
either.)

There is a snag: the softint_establish in if_percpuq_create could
fail, potentially leading to bad consequences later on trying to use
the softint.  This change doesn't introduce any new bugs because of
the snag -- if_percpuq_attach was already broken.  However, the snag
can be better addressed without spawning error branches, either by
using a single softint or making softints less scarce.

(Separate commit will change the signatures of if_attach and
if_initialize to return void, scheduled to ride whatever is the next
convenient kernel bump.)

Patch and testing on amd64 and evbmips64-eb by maya@; commit message
soliloquy, and compile-testing on evbppc/i386/earmv7hf, by me.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Sep 29 02:58:52 2020 UTC (3 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored)

s/occurence/occurrence/

Revision 1.111 / (download) - annotate - [select for diffs], Mon Jul 27 15:41:03 2020 UTC (3 years, 7 months ago) by jdc
Branch: MAIN
Changes since 1.110: +22 -23 lines
Diff to previous 1.110 (colored)

Improve the workqueue and callout handling.  Prompted by riastradh@.

Revision 1.110 / (download) - annotate - [select for diffs], Wed Jul 22 17:18:10 2020 UTC (3 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.109: +21 -22 lines
Diff to previous 1.109 (colored)

Sort #includes.  Nix trailing whitespace.

No functional change intended.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Jul 22 17:17:36 2020 UTC (3 years, 7 months ago) by riastradh
Branch: MAIN
Changes since 1.108: +2 -3 lines
Diff to previous 1.108 (colored)

Omit needless <sys/pcq.h>.

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jun 29 23:04:57 2020 UTC (3 years, 8 months ago) by riastradh
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

Nix trailing whitespace.

Revision 1.107 / (download) - annotate - [select for diffs], Mon Jun 22 17:38:27 2020 UTC (3 years, 8 months ago) by jdc
Branch: MAIN
Changes since 1.106: +56 -14 lines
Diff to previous 1.106 (colored)

Add sedetach() and also use it to remove duplicate code from seattach().
Correct a comment about sedone().

Revision 1.106 / (download) - annotate - [select for diffs], Mon Jun 22 16:05:20 2020 UTC (3 years, 8 months ago) by jdc
Branch: MAIN
Changes since 1.105: +182 -123 lines
Diff to previous 1.105 (colored)

Use workqueues so that we don't call into the scsipi subsystem via
a softint from the network stack.
Don't recurse through scsipi_command() when we have multiple packets
in the send queue - use a loop instead.  This means that we no longer
need sestart(), as we can now handle everything in sedone().
Fix a couple of XXX's.
Rework the locking logic slightly from the previous revision.
Now this works with DIAGNOSTIC+LOCKDEBUG.

Revision 1.105 / (download) - annotate - [select for diffs], Fri Jun 19 10:30:27 2020 UTC (3 years, 8 months ago) by jdc
Branch: MAIN
Changes since 1.104: +62 -46 lines
Diff to previous 1.104 (colored)

First pass at making this work again.
Remove spl and add some locking around network access (needs more work).
Make sure that we consistently use the channel lock for scsipi commands.
Remove the preference for send over receive, as this can lead to deadlocks
- we only advertise 1 opening, but we can try to send before the receive is
complete in this case.
Don't use XS_CTL_ASYNC because we don't provide a buffer.
Tested on UP sparc and compile-tested on atari.
Tested with LOCKDEBUG.
Still fails with DIAGNOSTIC because we can call into the scsipi routines
from a softint.

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:48 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.97.2.2: +3 -12 lines
Diff to previous 1.97.2.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:12 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.97.2.1: +7 -7 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored)

Merge changes from current as of 20200406

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:16 2020 UTC (3 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.103: +7 -7 lines
Diff to previous 1.103 (colored) next main 1.104 (colored)

Sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Wed Jan 29 05:59:50 2020 UTC (4 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.103: +7 -7 lines
Diff to previous 1.103 (colored)

Adopt <net/if_stats.h>.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Nov 10 21:16:37 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.102: +5 -14 lines
Diff to previous 1.102 (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.97.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:32 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.97: +38 -36 lines
Diff to previous 1.97 (colored)

Sync with HEAD

Revision 1.102 / (download) - annotate - [select for diffs], Tue May 28 07:41:50 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.101: +6 -2 lines
Diff to previous 1.101 (colored)

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

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

 Whitespace fix (mainly tabify).

Revision 1.100 / (download) - annotate - [select for diffs], Thu May 23 10:30:36 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.99: +26 -27 lines
Diff to previous 1.99 (colored)

No functional change:
 - Change ac(was arpcom) to ec(ethercom)
 - Simplify MII structure initialization.
 - u_int*_t -> uint*_t.
 - KNF

Revision 1.99 / (download) - annotate - [select for diffs], Tue Feb 5 06:17:03 2019 UTC (5 years ago) by msaitoh
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.98: +3 -4 lines
Diff to previous 1.98 (colored)

 Remove very old IFF_NOTRAILERS flag.

Revision 1.95.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:04 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.95.2.2: +3 -3 lines
Diff to previous 1.95.2.2 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.98 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:33 2018 UTC (5 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:57 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.95.2.1: +3 -3 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored)

Sync with HEAD

Revision 1.94.8.2 / (download) - annotate - [select for diffs], Thu Jul 26 23:55:30 2018 UTC (5 years, 7 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.94.8.1: +3 -5 lines
Diff to previous 1.94.8.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #938):
	sys/arch/acorn32/podulebus/if_ie.c: revision 1.41
	sys/arch/amiga/dev/if_es.c: revision 1.58
	sys/arch/amiga/dev/if_qn.c: revision 1.45
	sys/arch/arm/at91/at91emac.c: revision 1.20
	sys/arch/arm/ep93xx/epe.c: revision 1.37
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.14
	sys/arch/emips/ebus/if_le_ebus.c: revision 1.15
	sys/arch/mac68k/dev/if_mc.c: revision 1.46
	sys/arch/macppc/dev/am79c950.c: revision 1.39
	sys/arch/newsmips/apbus/if_sn.c: revision 1.40
	sys/arch/next68k/dev/mb8795.c: revision 1.59
	sys/arch/playstation2/dev/if_smap.c: revision 1.25
	sys/arch/playstation2/dev/if_smap.c: revision 1.26
	sys/arch/sun2/dev/if_ec.c: revision 1.28
	sys/arch/sun3/dev/if_ie.c: revision 1.63
	sys/arch/x68k/dev/if_ne_intio.c: revision 1.19
	sys/arch/xen/xen/if_xennet_xenbus.c: revision 1.75
	sys/arch/xen/xen/xennetback_xenbus.c: revision 1.63
	sys/dev/bi/if_ni.c: revision 1.45
	sys/dev/cadence/if_cemac.c: revision 1.12
	sys/dev/ic/am7990.c: revision 1.78
	sys/dev/ic/am79900.c: revision 1.27
	sys/dev/ic/an.c: revision 1.67
	sys/dev/ic/cs89x0.c: revision 1.40
	sys/dev/ic/dm9000.c: revision 1.13
	sys/dev/ic/dm9000.c: revision 1.14
	sys/dev/ic/dp8390.c: revision 1.88
	sys/dev/ic/elink3.c: revision 1.141
	sys/dev/ic/elinkxl.c: revision 1.122
	sys/dev/ic/hme.c: revision 1.98
	sys/dev/ic/i82586.c: revision 1.77
	sys/dev/ic/lance.c: revision 1.53
	sys/dev/ic/mb86950.c: revision 1.27
	sys/dev/ic/mb86960.c: revision 1.86
	sys/dev/ic/mtd803.c: revision 1.34
	sys/dev/ic/pdq_ifsubr.c: revision 1.59
	sys/dev/ic/rrunner.c: revision 1.86
	sys/dev/ic/seeq8005.c: revision 1.58
	sys/dev/ic/sgec.c: revision 1.47
	sys/dev/ic/smc90cx6.c: revision 1.72
	sys/dev/ic/smc91cxx.c: revision 1.96
	sys/dev/ic/tropic.c: revision 1.49
	sys/dev/ic/wi.c: revision 1.245
	sys/dev/isa/if_eg.c: revision 1.93
	sys/dev/isa/if_el.c: revision 1.95
	sys/dev/isa/if_iy.c: revision 1.101
	sys/dev/ofw/ofnet.c: revision 1.58
	sys/dev/pci/if_alc.c: revision 1.27
	sys/dev/pci/if_de.c: revision 1.152
	sys/dev/pci/if_fpa.c: revision 1.61
	sys/dev/pci/if_jme.c: revision 1.34
	sys/dev/pci/if_tl.c: revision 1.108
	sys/dev/pci/if_vte.c: revision 1.19
	sys/dev/pci/ixgbe/ixgbe.h: revision 1.50
	sys/dev/pcmcia/if_cnw.c: revision 1.62
	sys/dev/pcmcia/if_malo_pcmcia.c: revision 1.17
	sys/dev/pcmcia/if_ray.c: revision 1.89
	sys/dev/pcmcia/if_xi.c: revision 1.81
	sys/dev/pcmcia/mhzc.c: revision 1.51
	sys/dev/pcmcia/xirc.c: revision 1.34
	sys/dev/qbus/if_de.c: revision 1.33
	sys/dev/qbus/if_qe.c: revision 1.78
	sys/dev/qbus/if_qt.c: revision 1.22
	sys/dev/sbus/be.c: revision 1.87
	sys/dev/sbus/qe.c: revision 1.68
	sys/dev/scsipi/if_se.c: revision 1.96
	sys/dev/usb/if_atu.c: revision 1.59
	sys/net/if_l2tp.c: revision 1.28 via patch
	sys/net/if_ppp.c: revision 1.160
It's not required to include net/bpfdesc.h. Remove it.
--
Simplify like other drivers. NULL check of ifp->if_bpf is done in
bpf_mtap(), so it's not required to do it here.
--
Remove duplicated inclusion of net/bpf.h.
--
Remove duplicated inclusion of net/bpf.h.
--
Simplify bpf_mtap() call. No functional change.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Jun 26 06:48:02 2018 UTC (5 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (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.95.2.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:01 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.95: +3 -5 lines
Diff to previous 1.95 (colored)

Sync with HEAD

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jun 22 04:17:42 2018 UTC (5 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.95: +3 -5 lines
Diff to previous 1.95 (colored)

 It's not required to include net/bpfdesc.h. Remove it.

Revision 1.94.8.1 / (download) - annotate - [select for diffs], Sun Dec 10 10:10:24 2017 UTC (6 years, 2 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.94: +10 -3 lines
Diff to previous 1.94 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #427):
	sys/arch/amiga/dev/if_bah_zbus.c: 1.17
	sys/arch/arm/broadcom/bcm53xx_eth.c: 1.30
	sys/arch/powerpc/booke/dev/pq3etsec.c: 1.32
	sys/arch/usermode/dev/if_veth.c: 1.9
	sys/dev/ic/an.c: 1.66
	sys/dev/ic/athn.c: 1.17
	sys/dev/ic/atw.c: 1.162
	sys/dev/ic/bwi.c: 1.33
	sys/dev/ic/dwc_gmac.c: 1.41-1.42
	sys/dev/ic/malo.c: 1.10
	sys/dev/ic/rt2560.c: 1.31
	sys/dev/ic/rt2661.c: 1.36
	sys/dev/ic/rt2860.c: 1.29
	sys/dev/ic/rtw.c: 1.127
	sys/dev/ic/rtwvar.h: 1.46
	sys/dev/ic/smc90cx6.c: 1.71
	sys/dev/ic/smc90cx6var.h: 1.12
	sys/dev/ic/wi.c: 1.244
	sys/dev/pci/if_ipw.c: 1.66
	sys/dev/pci/if_iwi.c: 1.104
	sys/dev/pci/if_iwm.c: 1.76
	sys/dev/pci/if_iwn.c: 1.86
	sys/dev/pci/if_rtwn.c: 1.13
	sys/dev/pci/if_wm.c: 1.541
	sys/dev/pci/if_wpi.c: 1.79
	sys/dev/pci/ixgbe/ixgbe.c: 1.106
	sys/dev/pci/ixgbe/ixv.c: 1.73 via patch
	sys/dev/pcmcia/if_malo_pcmcia.c: 1.15
	sys/dev/scsipi/if_se.c: 1.95
	sys/dev/usb/if_upl.c: 1.60
	sys/net/if.c: 1.396
	sys/net/if.h: 1.241
	sys/net/if_arc.h: 1.23
	sys/net/if_arcsubr.c: 1.78
	sys/net/if_bridge.c: 1.136-1.137
	sys/net/if_etherip.c: 1.39
	sys/net/if_faith.c: 1.56
	sys/net/if_gif.c: 1.131
	sys/net/if_loop.c: 1.96
	sys/net/if_mpls.c: 1.30
	sys/net/if_pppoe.c: 1.129
	sys/net/if_srt.c: 1.27
	sys/net/if_stf.c: 1.102
	sys/net/if_tap.c: 1.100
	sys/net/if_vlan.c: 1.105
	sys/netinet/ip_carp.c: 1.91
	sys/rump/net/lib/libshmif/if_shmem.c: 1.73-1.74
	sys/rump/net/lib/libvirtif/if_virt.c: 1.55-1.56
 if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
 Return if bah_attach_subr() failed.
 If if_attach() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add some missing frees in bridge_clone_destroy().
- KNF
 If error occured in bcmeth_ccb_attach(), free resources and return.
 If error occured in pq3etsec_attach(), free resources and return.
 If error occured in the attach function, free resources and return.
- If if_initialize() failed in athn_attach(), free resources and return.
- Add missing pmf_event_deregister() in athn_detach().
- Free resources correctly on some errors in atw_attach().
- Use apint*() insread of printf() in the attach function.
 If if_initialize() failed in the attach function, return.
- If if_initialize() failed in the attach function, free resources and return.
- Add missing dwc_gmac_free_dma_rings() and mutex_destroy() when attach
   failed.
- If if_initialize() failed in the attach function, free resources and return.
- ifp is always not NULL in iwi_detach(). Check correctly with ifp->if_softc.
- If if_initialize() failed in the attach function, free resources and return.
- Fix error path in the attach function correctly.
 If if_initialize() failed in the attach function, free resources and return.
 If if_attach() failed in the attach function, free resources and return.
 - If if_initialize() failed in the attach function, free resources and return.
 - KNF
 - If if_attach() failed in the attach function, free resources and return.
 - KNF
 Fix compile error.
 Fix compile error.
We don't need '&mii', but just 'mii' for mii_detach().
Don't free sc_rthash twice

Revision 1.84.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:32 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.84.6.2: +18 -14 lines
Diff to previous 1.84.6.2 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

update from HEAD

Revision 1.95 / (download) - annotate - [select for diffs], Mon Oct 23 09:31:18 2017 UTC (6 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.94: +10 -3 lines
Diff to previous 1.94 (colored)

 If if_initialize() failed in the attach function, free resources and return.

Revision 1.87.4.6 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:46 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.87.4.5: +2 -9 lines
Diff to previous 1.87.4.5 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

Sync with HEAD

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:41 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.90.2.1: +2 -11 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

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

Revision 1.94 / (download) - annotate - [select for diffs], Thu Dec 15 09:28:06 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, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.93: +2 -9 lines
Diff to previous 1.93 (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.87.4.5 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:17 2016 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.87.4.4: +2 -4 lines
Diff to previous 1.87.4.4 (colored) to branchpoint 1.87 (colored)

Sync with HEAD

Revision 1.93 / (download) - annotate - [select for diffs], Sun Nov 20 15:37:19 2016 UTC (7 years, 3 months ago) by mlelstv
Branch: MAIN
CVS Tags: nick-nhusb-base-20161204
Changes since 1.92: +2 -4 lines
Diff to previous 1.92 (colored)

Make scsipi framework MPSAFE.

Data structures are now protected by a per-adapter mutex at IPL_BIO
that is created by the scsibus or atapibus instance when the adapter
is configured.
The enable reference counter and the channel freeze counter which are
currently used by HBA code before the adapter is configured, are made
atomic.
The target drivers are now all tagged as D_MPSAFE.

Almost all HBA drivers still require the kernel lock to present,
so all callbacks into HBA code are still protected by kernel lock
unless the driver is tagged as SCSIPI_ADAPT_MPSAFE.

TODO: refactor sd and cd to use dksubr.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:15 2016 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.90: +3 -4 lines
Diff to previous 1.90 (colored)

Sync with HEAD

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

Sync with HEAD

Revision 1.92 / (download) - annotate - [select for diffs], Sun Oct 2 14:16:03 2016 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004
Changes since 1.91: +3 -4 lines
Diff to previous 1.91 (colored)

MFREE -> m_free

Revision 1.91 / (download) - annotate - [select for diffs], Wed Sep 7 14:21:01 2016 UTC (7 years, 5 months ago) by jakllsch
Branch: MAIN
CVS Tags: localcount-20160914
Changes since 1.90: +6 -2 lines
Diff to previous 1.90 (colored)

'#if 0' a static inline function used only by an already #if 0 function.

Revision 1.87.4.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:15 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.87.4.2: +3 -3 lines
Diff to previous 1.87.4.2 (colored) to branchpoint 1.87 (colored)

Sync with HEAD

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:15 2016 UTC (7 years, 8 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (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.87.4.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:19 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.87.4.1: +5 -4 lines
Diff to previous 1.87.4.1 (colored) to branchpoint 1.87 (colored)

Sync with HEAD

Revision 1.89 / (download) - annotate - [select for diffs], Tue Feb 9 08:32:12 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.88: +5 -4 lines
Diff to previous 1.88 (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.87.4.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:00 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Mon Aug 24 23:13:15 2015 UTC (8 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)

would you like some freshly ground _KERNEL_OPT with that?
yes?  excellent choice, sir/madam.

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

Rebase to HEAD as of a few days ago.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:57 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.86: +3 -2 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

Rebase.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jul 25 08:10:38 2014 UTC (9 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.86: +3 -2 lines
Diff to previous 1.86 (colored)

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.83.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:35 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.83.4.2: +13 -4 lines
Diff to previous 1.83.4.2 (colored) to branchpoint 1.83 (colored) next main 1.84 (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.85.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:46 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.85: +13 -4 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

sync with head

Revision 1.86 / (download) - annotate - [select for diffs], Sun Mar 16 05:20:29 2014 UTC (9 years, 11 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.85: +13 -4 lines
Diff to previous 1.85 (colored)

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.84.6.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:32 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.84: +17 -15 lines
Diff to previous 1.84 (colored)

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

Revision 1.83.4.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:01 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.83.4.1: +17 -15 lines
Diff to previous 1.83.4.1 (colored) to branchpoint 1.83 (colored)

sync with head

Revision 1.85 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:38 2012 UTC (11 years, 4 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.84: +17 -15 lines
Diff to previous 1.84 (colored)

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

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:02 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.83: +5 -13 lines
Diff to previous 1.83 (colored)

sync with head

Revision 1.83.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:59 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.83: +5 -13 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

merge to -current.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Feb 3 23:39:59 2012 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.83: +5 -13 lines
Diff to previous 1.83 (colored)

ansi prototypes

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:36 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) next main 1.83 (colored)

Sync with HEAD.

Revision 1.80.4.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:01 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.80.4.2: +1 -1 lines
Diff to previous 1.80.4.2 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

sync with head

Revision 1.83 / (download) - annotate - [select for diffs], Sat Apr 2 08:11:32 2011 UTC (12 years, 11 months ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

Fix misplaced parenthesis.  From henning.petersen@t-online.de, thanks.

Revision 1.80.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:05 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.80.4.1: +3 -3 lines
Diff to previous 1.80.4.1 (colored) to branchpoint 1.80 (colored)

sync with head

Revision 1.80.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:38 2010 UTC (13 years, 6 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.80.2.1: +1 -1 lines
Diff to previous 1.80.2.1 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored)

Sync with HEAD.

Revision 1.71.4.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:10 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.71.4.3: +5 -7 lines
Diff to previous 1.71.4.3 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored)

sync with head.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Jul 27 14:04:55 2010 UTC (13 years, 7 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Use %zu instead of %d for size_t.
Just in case anyone ever debugs se(4) on LP64.

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

sync with head

Revision 1.80.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:49 2010 UTC (13 years, 10 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.80: +4 -6 lines
Diff to previous 1.80 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Apr 5 07:21:47 2010 UTC (13 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.80: +4 -6 lines
Diff to previous 1.80 (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.71.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:03 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.71.4.2: +6 -15 lines
Diff to previous 1.71.4.2 (colored) to branchpoint 1.71 (colored)

sync with head

Revision 1.80 / (download) - annotate - [select for diffs], Tue Jan 19 22:07:43 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.79: +4 -13 lines
Diff to previous 1.79 (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.79 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:05 2009 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

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

sync with head

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:22 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.74: +30 -80 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

Sync with HEAD.

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

Revision 1.78 / (download) - annotate - [select for diffs], Tue May 12 14:44:31 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.77: +6 -6 lines
Diff to previous 1.77 (colored)

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

Revision 1.77 / (download) - annotate - [select for diffs], Tue May 12 13:20:33 2009 UTC (14 years, 9 months ago) by cegger
Branch: MAIN
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

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

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:18 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.71: +47 -96 lines
Diff to previous 1.71 (colored)

sync with head.

Revision 1.72.6.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:33 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.72.6.1: +28 -78 lines
Diff to previous 1.72.6.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored)

Sync with HEAD.

Revision 1.76 / (download) - annotate - [select for diffs], Sat Mar 14 21:04:23 2009 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Changes since 1.75: +6 -15 lines
Diff to previous 1.75 (colored)

ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:21 2009 UTC (14 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.74: +24 -65 lines
Diff to previous 1.74 (colored)

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.72.6.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:03 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.72: +18 -15 lines
Diff to previous 1.72 (colored)

Sync with HEAD.

Revision 1.70.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:08 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.70.6.2: +16 -13 lines
Diff to previous 1.70.6.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored)

Sync with HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Jan 11 10:11:10 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

make this compile

Revision 1.72.4.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:48 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.72: +17 -14 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

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

Revision 1.73 / (download) - annotate - [select for diffs], Fri Nov 7 00:20:12 2008 UTC (15 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.72: +17 -14 lines
Diff to previous 1.72 (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.70.6.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:10 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.70.6.1: +3 -5 lines
Diff to previous 1.70.6.1 (colored) to branchpoint 1.70 (colored)

Sync with HEAD.

Revision 1.71.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:29 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.71: +5 -7 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Tue Jun 17 09:14:57 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.71: +5 -7 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jun 8 18:18:34 2008 UTC (15 years, 8 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, 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, haad-dm-base1
Branch point for: nick-hppapmap, haad-dm
Changes since 1.71: +5 -7 lines
Diff to previous 1.71 (colored)

Use device_lookup_private() rather than using cd_devs[] directly to get softc.

XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.

Revision 1.70.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:50 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.70: +10 -12 lines
Diff to previous 1.70 (colored)

Sync with HEAD.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Apr 5 15:47:00 2008 UTC (15 years, 10 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.70: +10 -12 lines
Diff to previous 1.70 (colored)

use aprint_*_dev and device_xname

Revision 1.58.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:34 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.58.2.4: +5 -3 lines
Diff to previous 1.58.2.4 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

sync with head

Revision 1.66.8.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:30 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.66.8.1: +5 -3 lines
Diff to previous 1.66.8.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync with HEAD

Revision 1.69.12.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:11 2008 UTC (16 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.69: +5 -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], Wed Dec 26 19:47:21 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.69: +5 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync with head.

Revision 1.70 / (download) - annotate - [select for diffs], Thu Dec 20 21:08:19 2007 UTC (16 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.69: +5 -3 lines
Diff to previous 1.69 (colored)

Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:15 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.66: +18 -8 lines
Diff to previous 1.66 (colored)

sync with HEAD

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Tue Oct 9 13:42:04 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.65.2.1: +18 -8 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Sync with head.

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

Sync with HEAD.

Revision 1.58.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:39 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.58.2.3: +25 -15 lines
Diff to previous 1.58.2.3 (colored) to branchpoint 1.58 (colored)

sync with head.

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

Sync with HEAD.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Sep 1 17:59:45 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, mjf-devfs, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.68: +8 -2 lines
Diff to previous 1.68 (colored)

Remark that the data-length argument passed to se_scsipi_cmd() is
questionable.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Sep 1 17:57:02 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.67: +11 -4 lines
Diff to previous 1.67 (colored)

Create a temporary, non-const copy of a sockaddr.  Pass that to
se_set_multi() or se_remove_multi(), because neither is easily
constified.  Thanks jmmv@ for reporting the issue.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Sep 1 07:32:32 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.66: +5 -8 lines
Diff to previous 1.66 (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.65.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:16 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored) next main 1.66 (colored)

Sync with head.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jul 9 21:01:21 2007 UTC (16 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 21:48:57 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

Adapt to callout API change.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:57:09 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.63: +7 -7 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Mar 4 15:17:20 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

fix fallout from caddr_t changes.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:42 2007 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.63: +7 -7 lines
Diff to previous 1.63 (colored)

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

Revision 1.58.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:41 2007 UTC (17 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.58.2.2: +18 -16 lines
Diff to previous 1.58.2.2 (colored) to branchpoint 1.58 (colored)

sync with head.

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:28 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.62: +18 -16 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Sync with head.

Revision 1.63 / (download) - annotate - [select for diffs], Sat Jan 13 18:42:45 2007 UTC (17 years, 1 month ago) by cube
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.62: +18 -16 lines
Diff to previous 1.62 (colored)

Complete initializers so those files compile.

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:34 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.58.2.1: +2 -44 lines
Diff to previous 1.58.2.1 (colored) to branchpoint 1.58 (colored)

sync with head.

Revision 1.60.8.2 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:40 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.60.8.1: +2 -44 lines
Diff to previous 1.60.8.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

sync with head.

Revision 1.60.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:54:25 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.60: +3 -45 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

sync with head

Revision 1.62 / (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-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-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
Branch point for: newlock2
Changes since 1.61: +2 -44 lines
Diff to previous 1.61 (colored)

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

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

sync with head.

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

Sync with head.

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

sync with head.

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

sync with head.

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

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

Revision 1.61 / (download) - annotate - [select for diffs], Thu Mar 30 16:09:28 2006 UTC (17 years, 11 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.60: +3 -3 lines
Diff to previous 1.60 (colored)

Use device_private().

Revision 1.60 / (download) - annotate - [select for diffs], Sat Dec 24 20:27:52 2005 UTC (18 years, 2 months ago) by perry
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.59: +6 -6 lines
Diff to previous 1.59 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:50 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.58: +9 -9 lines
Diff to previous 1.58 (colored)

merge ktrace-lwp.

Revision 1.44.6.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:07:47 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.44.6.7: +3 -3 lines
Diff to previous 1.44.6.7 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

Sync with HEAD. Here we go again...

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jun 3 13:44:11 2005 UTC (18 years, 9 months ago) by jdc
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.57: +3 -3 lines
Diff to previous 1.57 (colored)

Remove cast to non-const and make this compile again.

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:16 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.51: +29 -29 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

sync with -current

Revision 1.51.6.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:47 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.51.6.1: +3 -3 lines
Diff to previous 1.51.6.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

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

Revision 1.44.6.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:33 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.44.6.6: +3 -3 lines
Diff to previous 1.44.6.6 (colored) to branchpoint 1.44 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.57 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:48 2005 UTC (19 years 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.56: +3 -3 lines
Diff to previous 1.56 (colored)

nuke trailing whitespace

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

sync with head.

Revision 1.44.6.6 / (download) - annotate - [select for diffs], Fri Feb 4 11:47:23 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.44.6.5: +28 -28 lines
Diff to previous 1.44.6.5 (colored) to branchpoint 1.44 (colored)

Sync with HEAD.

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

de-__P

Revision 1.55 / (download) - annotate - [select for diffs], Tue Feb 1 00:19:34 2005 UTC (19 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.54: +24 -24 lines
Diff to previous 1.54 (colored)

Backing out changes to clean up scsipi. I was pointed out there were
problems i hadn't seen. To prevent lossage i'd decided to back off all
changes and let them be reviewed on tech-kern.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jan 31 23:46:33 2005 UTC (19 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

Revert incorrect u_long->uint32_t conversion.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Jan 31 23:06:41 2005 UTC (19 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.52: +19 -19 lines
Diff to previous 1.52 (colored)

Part of the cleanup of sys/scsipi's use of types; rename all u_int* to
uint* and change the u_long's to uint32_t's where possible. Note that the
iocl definitions/hooks have to be ulong (or u_long) or they'll bomb out.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jan 31 21:13:16 2005 UTC (19 years, 1 month ago) by reinoud
Branch: MAIN
Changes since 1.51: +7 -7 lines
Diff to previous 1.51 (colored)

As part of cleaning up sys/scsipi, replace all u_char by uint8_t and
replace all `short' with int16_t.

Revision 1.45.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jan 24 21:43:22 2005 UTC (19 years, 1 month ago) by he
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.45.2.1: +12 -18 lines
Diff to previous 1.45.2.1 (colored) next main 1.46 (colored)

Pull up revision 1.51 (requested by thorpej in ticket #939):
  When adding or deleting multicast addresses, only change
  the address filter if the interface is marked RUNNING.
  Fixes PR#27678.

Revision 1.44.6.5 / (download) - annotate - [select for diffs], Sun Nov 21 08:53:49 2004 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.44.6.4: +9 -9 lines
Diff to previous 1.44.6.4 (colored) to branchpoint 1.44 (colored)

Adapt to branch. Alpha kernels now compile.

Revision 1.44.6.4 / (download) - annotate - [select for diffs], Tue Nov 2 07:52:46 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.44.6.3: +12 -18 lines
Diff to previous 1.44.6.3 (colored) to branchpoint 1.44 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Oct 30 18:10:06 2004 UTC (19 years, 4 months ago) by thorpej
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.50: +12 -18 lines
Diff to previous 1.50 (colored)

When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.

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

Fix the sync with head I botched.

Revision 1.44.6.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:51:24 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.44.6.1: +17 -20 lines
Diff to previous 1.44.6.1 (colored) to branchpoint 1.44 (colored)

Sync with HEAD.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 18 00:08:16 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +14 -15 lines
Diff to previous 1.49 (colored)

Standardize some variable names and the calling pattern for scsipi_command().
Use void pointer casts.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Sep 17 23:43:17 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

Remove the "xfer" argument to scsipi_command().

Revision 1.48 / (download) - annotate - [select for diffs], Fri Sep 17 23:10:50 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.47: +5 -7 lines
Diff to previous 1.47 (colored)

Do not manipulate xs->bp in "generic" code -- do it only in the psw_done
routine.  As part of this, pass down our pre-parsed error code -- though this
interface will probably change later to accomodate better error handling.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Sat Sep 11 12:51:35 2004 UTC (19 years, 5 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Pull up revision 1.47 (via patch, requested by bouyer in ticket #837):
  Improve handling of memory shortage, to fix problems like:
    sd3(mpt0:0:1:0): unable to allocate scsipi_xfer
    sd3: not queued, error 12
  The theory is that other consumers of pool memory is causing
  this memory shortage in certain somewhat hard to reproduce
  situations.
  This is done by giving scsipi_command an extra argument to
  optionally pass a preallocated scsipi_xfer, and allocating a
  scsipi_xfer before dequeueing a buffer in the various *start()
  functions.  If the allocation of a scsipi_xfer fails, schedule
  a callout for delayed invocation of the start function.  Also
  reserve one page for scsipi_xfer structs, to ensure that we will
  eventually have some available once pending commands complete.
  Should fix PR#25670.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Sep 9 19:35:30 2004 UTC (19 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

Make the xxstart() functions reentrant again, as some drivers HBA can call
scsipi_done() from their scsipi_request().
For this, add a struct scsipi_xfer * argument to scsipi_command().
If not NULL scsipi_command() will use this to enqueue this xfer, otherwise
it'll try to allocate a new one. This scsipi_xfer has to be allocated
and initialised by scsipi_make_xs() or equivalent.
In xxstart(), allocate a scsipi_xfer using scsipi_make_xs(), and if not NULL,
dequeue the buffer before calling scsipi_command(). This makes sure that
scsipi_command() will not fail, and also makes sure that xxstart() won't
be called again between the BUFQ_PEEK() and BUFQ_GET().

Fix "dequeued wrong buf" panics reported by Juergen Hannken-Illjes in
private mail and Andreas Wrede on current-users@.
Thanks to Jason Thorpe and Chuck Silver for review, and Andreas Wrede for
testing the patch.

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:51:14 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Fri Apr 23 21:52:17 2004 UTC (19 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

use bounded string ops

Revision 1.45 / (download) - annotate - [select for diffs], Mon Sep 8 01:27:09 2003 UTC (20 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Use the const shaker.

Revision 1.33.2.7 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:14 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.33.2.6: +1 -1 lines
Diff to previous 1.33.2.6 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Catch up to -current

Revision 1.44 / (download) - annotate - [select for diffs], Wed Oct 23 09:13:47 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

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

Catch up to -current.

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:42:14 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.34.2.2: +13 -7 lines
Diff to previous 1.34.2.2 (colored) next main 1.35 (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.43 / (download) - annotate - [select for diffs], Wed Oct 2 16:52:51 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Sep 30 23:12:51 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +4 -5 lines
Diff to previous 1.41 (colored)

Use CFATTACH_DECL().

Revision 1.41 / (download) - annotate - [select for diffs], Fri Sep 27 20:41:44 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

Declare all cfattach structures const.

Revision 1.33.2.5 / (download) - annotate - [select for diffs], Tue Sep 17 21:21:14 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.4: +11 -4 lines
Diff to previous 1.33.2.4 (colored) to branchpoint 1.33 (colored)

Catch up to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 5 months ago) by gehenna
Branch: MAIN
Changes since 1.39: +11 -4 lines
Diff to previous 1.39 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.39.8.1 / (download) - annotate - [select for diffs], Thu May 16 11:38:53 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.39: +11 -4 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Add the character device switch.

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:58:19 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.34.2.1: +4 -2 lines
Diff to previous 1.34.2.1 (colored)

Sync kqueue branch with -current.

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

Catch up to -current.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:16 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, 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, netbsd-1-6, ifpoll-base, gehenna-devsw-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.38: +2 -3 lines
Diff to previous 1.38 (colored)

don't need <sys/types.h> when including <sys/param.h>

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

Catch up to -current.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 13 06:56:39 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.37: +4 -1 lines
Diff to previous 1.37 (colored)

add RCSIDs

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:17 2001 UTC (22 years, 5 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.37.2.1: +13 -7 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:31 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.37: +16 -11 lines
Diff to previous 1.37 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:45 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33.2.1: +8 -8 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored)

Catch up with -current.

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

update to -current

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jul 18 18:27:08 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

bcmp -> memcmp

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jul 18 18:25:41 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.35: +6 -6 lines
Diff to previous 1.35 (colored)

bcopy -> memcpy

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jul 18 18:21:05 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

bzero -> memset

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:05:48 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.33: +51 -42 lines
Diff to previous 1.33 (colored)

Catch up to -current.

Revision 1.34 / (download) - annotate - [select for diffs], Wed Apr 25 17:53:39 2001 UTC (22 years, 10 months ago) by bouyer
Branch: MAIN
Branch point for: kqueue
Changes since 1.33: +51 -42 lines
Diff to previous 1.33 (colored)

Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
  will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge

Revision 1.25.2.5 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:26 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.25.2.4: +3 -2 lines
Diff to previous 1.25.2.4 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored)

Sync with HEAD

Revision 1.33 / (download) - annotate - [select for diffs], Thu Dec 14 07:27:21 2000 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

ALTQ'ify.

Revision 1.25.2.4 / (download) - annotate - [select for diffs], Wed Nov 22 16:04:48 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.25.2.3: +1 -5 lines
Diff to previous 1.25.2.3 (colored) to branchpoint 1.25 (colored)

Sync with HEAD.

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Mon Nov 20 09:59:25 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.25.2.2: +34 -38 lines
Diff to previous 1.25.2.2 (colored) to branchpoint 1.25 (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.

Main changes to the scsipi code itself:
- add a scsipi_channel->type to allow umass to attach to both atapibus and
  scsibus. Will die when IDE is converted from ata_atapi_attach to
  scsipi_channel/scsipi_adapter
- Add a chan_defquirks to scsipi_channel so that adapters can pass a default
  set of quirks to be set for each device attached
- add adapt_getgeom and adapt_accesschk callbacks

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

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

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 1 23:32:45 2000 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +2 -20 lines
Diff to previous 1.30 (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.29.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:08:12 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jun 9 08:54:22 2000 UTC (23 years, 8 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.29: +5 -3 lines
Diff to previous 1.29 (colored)

Prevent a process being swapped out during I/O if the data buffer is
allocated on stack.  This potential problem is noticed by Noriyuki Soda
and the idea and sample code to fix is given by Jason R. Thorpe.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 30 00:00:55 2000 UTC (23 years, 11 months ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.28: +9 -9 lines
Diff to previous 1.28 (colored)

Get rid of register declarations.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 23 07:01:43 2000 UTC (23 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +17 -6 lines
Diff to previous 1.27 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 13 23:52:37 2000 UTC (23 years, 11 months ago) by soren
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Fix doubled 'the's in comments.

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

Pull up to last week's -current.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:24 1999 UTC (24 years, 3 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with -current

Revision 1.26 / (download) - annotate - [select for diffs], Sat Nov 13 18:03:34 1999 UTC (24 years, 3 months ago) by matthias
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, chs-ubc2-newbase
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Make this work again by adding XS_CTL_ASYNC to the SCSI requests in
se_ifstart and se_recv.

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Mon Nov 1 22:54:18 1999 UTC (24 years, 4 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.25.2.1: +5 -5 lines
Diff to previous 1.25.2.1 (colored) to branchpoint 1.25 (colored)

Fixup the SC_DEBUG() stuff for the new world order.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Tue Oct 19 17:39:31 1999 UTC (24 years, 4 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.25: +46 -38 lines
Diff to previous 1.25 (colored)

Completely rewritten scsipi_xfer execution engine:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).

There is a lot more work to do, but this correctly functions for the most
part on several file servers I run.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Sep 30 22:57:53 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.24: +9 -9 lines
Diff to previous 1.24 (colored)

Cleanup the scsipi_xfer flags:
- `flags' is now gone, replaced with `xs_control' and `xs_status'.
- Massive cleanup of the control flags.  Now we explicitly say that
  a job is to complete asynchronously, rather than relying on side-effects,
  and use a new flag to now that device discovery is being performed.
- Do SCSI device discovery interrupt-driven.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:19:10 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.23: +3 -4 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync w/ -current.

Revision 1.24 / (download) - annotate - [select for diffs], Tue May 18 23:52:59 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.23: +3 -4 lines
Diff to previous 1.23 (colored)

Rework layer 2 protocol input routines.  Instead of calling e.g. ether_input()
directly, call the function pointer (*if_input)(ifp, m).  The input routine
expects the packet header to be at the head of the packet, and will adjust
as necessary.  Privatize the layer 2 input and output routines, allowing
*_ifattach() to set them up as appropriate.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 12 17:08:14 1998 UTC (25 years, 2 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.22: +33 -29 lines
Diff to previous 1.22 (colored)

Simplify the copy loops a bit.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 8 00:19:27 1998 UTC (25 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.21: +4 -1 lines
Diff to previous 1.21 (colored)

When closing, wait for pending xfers to drain before deleting the reference
to the adapter.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 20 00:35:39 1998 UTC (25 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +70 -7 lines
Diff to previous 1.20 (colored)

Add adapter reference counting for SCSI and ATAPI devices.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Oct 13 02:34:31 1998 UTC (25 years, 4 months ago) by kim
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Use ETHERTYPE_ATALK instead of ETHERTYPE_AT.  The former seems more common.
Our other constants also use "ATALK".

Added many new ETHERTYPE constants to sys/net/ethertypes.h, including the
ones from libpcap and tcpdump "ethertype.h" files.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 25 21:50:38 1998 UTC (25 years, 5 months ago) by is
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

correct obvious typo

Revision 1.18 / (download) - annotate - [select for diffs], Mon Aug 31 22:28:06 1998 UTC (25 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.17: +1 -9 lines
Diff to previous 1.17 (colored)

kill the last remnants of __BROKEN_INDIRECT_CONFIG.  (only the pica port
used it, and it's non-working and apparently slated for replacement.)

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jul 5 06:49:16 1998 UTC (25 years, 8 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

defopt NS, NSIP.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jul 5 03:14:43 1998 UTC (25 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

defopt LLC

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 5 02:12:30 1998 UTC (25 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

defopt CCITT.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 5 00:51:25 1998 UTC (25 years, 8 months ago) by jonathan
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

defopt INET, NETATALK.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 12 09:49:14 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.12: +2 -4 lines
Diff to previous 1.12 (colored)

Adjust for changes to config.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 18 19:50:58 1997 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Implement two macros, scsipi_command() and scsipi_command_direct(), and
use them to hide the structure of the function pointers we jump through
to issue a command.

Revision 1.9.2.4 / (download) - annotate - [select for diffs], Wed Oct 15 05:37:22 1997 UTC (26 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.9.2.3: +55 -35 lines
Diff to previous 1.9.2.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 14 11:18:18 1997 UTC (26 years, 4 months ago) by matthias
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.10: +55 -35 lines
Diff to previous 1.10 (colored)

Apply Ian Dall's patch from kern/4004. Ian's comment:
	The following patch employs a smarter adaptive polling
	scheme. It also improves the comments, in particular giving
	due credit to Phil Budne for his efforts in nunderstanding
	the device. It also relaxes the pattern for auto config so
	more devices match.

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Tue Oct 14 10:24:57 1997 UTC (26 years, 4 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.9.2.2: +85 -106 lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 1 01:18:53 1997 UTC (26 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.9: +85 -106 lines
Diff to previous 1.9 (colored)

Cosmetic changes to keep coding style consistency in this directory;

- Indent with tab of width 8.
- Use four column to indent continuation line.
- Fold long line if possible.
- Use return (xx) instead of return xx.
- Compare pointer against NULL instead of testing like boolean.
- Delete whitespace at the end of line.
- Delete whitespace in front of function call operator.
- Delete whitespace after cast.
- Dereference a pointer to function explicitly.
- Add an empty line after local variable declaration.
- Use NULL instead of (char *)0.
- Dont use block for single statement.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Wed Aug 27 23:33:07 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.9.2.1: +1168 -0 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.9.2.1, Wed Aug 27 11:26:29 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.9: +0 -1168 lines
FILE REMOVED

file if_se.c was added on branch marc-pcmcia on 1997-08-27 23:33:07 +0000

Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 27 11:26:29 1997 UTC (26 years, 6 months ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Branch point for: marc-pcmcia
Changes since 1.8: +44 -44 lines
Diff to previous 1.8 (colored)

Merge scsipi branch in the mainline. This add support for ATAPI devices
(currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2
busses to which devices can attach (scsibus and atapibus). This needed to
change some include files and structure names in the low level scsi drivers.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Apr 28 17:04:01 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: bouyer-scsipi
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Oops; forgot to GC the last mbuf allocated when out of clusters.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 24 08:06:15 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Fix typo in previous.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Apr 24 02:36:46 1997 UTC (26 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +7 -4 lines
Diff to previous 1.5 (colored)

If we fail to allocate a cluster to hold a large packet, simply
drop it rather than using a chain of tiny mbufs.
Do not force the initial part of a packet into a separate mbuf.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 4 19:02:43 1997 UTC (26 years, 11 months ago) by matthias
Branch: MAIN
Changes since 1.4: +125 -90 lines
Diff to previous 1.4 (colored)

* Do some KNFing.
* Make all local functions static.
* Add some untested netatalk support.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Apr 2 02:29:34 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +45 -51 lines
Diff to previous 1.3 (colored)

Push the buffer cleanup code into scsi_done(), and split it so that biodone()
is called *after* the driver `done' routine.  This fixes disk I/O statistics
on SCSI devices.

Also, calling the `done' routine with a `complete' argument of 0 and actually
having it do anything meaningful loses in at least 3 ways, so just nuke the
argument altogether and don't call it this way.  If the driver needs to do
some error handling, that's what `err_handler' is for.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Mar 24 00:04:53 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +10 -4 lines
Diff to previous 1.2 (colored)

Fix a screwup (my fault, oops) that caused the stack to get corrupted.
From Ian Dall <Ian.Dall@dsto.defence.gov.au> on port-pc532.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Mar 18 04:45:04 1997 UTC (26 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.1: +14 -1 lines
Diff to previous 1.1 (colored)

add appropriate includes so that this deals properly with NS and CCITT+LLC.
(Includes stolen from dev/ic/am7990.c, because it's a (the?) canonical
networking hardware driver.)

Revision 1.1 / (download) - annotate - [select for diffs], Tue Mar 18 01:31:16 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN

Driver for the Cabletron EA41x SCSI Ethernet Adaptor, written by
Ian Dall <ian.dall@dsto.defence.gov.au>.  Converted to "new arp"
and some other (very) minor changes by me.

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>