The NetBSD Project

CVS log for src/sys/dev/video.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Mar 3 06:23:25 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -15 lines
video(9): Make softc argument mandatory for video_attach_mi.

No separate video_attach_mi_softc function any more.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Mar 3 06:22:23 2022 UTC (2 years, 9 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +16 -3 lines
video(4): Allow drivers to pass the softc explicitly.

This way one device driver can have multiple video0, video1, &c.,
interfaces attached, using independent state and a common parent.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Dec 8 20:50:02 2021 UTC (3 years ago) by andvar
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4 lines
fix various typos in comments and log messages.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Aug 9 21:38:04 2021 UTC (3 years, 4 months ago) by andvar
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3 lines
s/fist/first/

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:08 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -4 lines
Merge thorpej-cfargs2.

Revision 1.40.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 23:24:57 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +3 -4 lines
Adapt to CFARGS().

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:52 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -3 lines
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 2 22:17:43 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +5 -3 lines
config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Aug 13 16:45:58 2020 UTC (4 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +49 -49 lines
Nix trailing whitespace.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Mon Aug 10 19:27:27 2020 UTC (4 years, 4 months ago) by rjs
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +64 -7 lines
Add some extra V4L ioctl() requests to latest V4L userland to work.

Import sys/videoio.h from OpenBSD, this is just the Linux headers
concatenated together.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri May 22 11:23:51 2020 UTC (4 years, 6 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +66 -2 lines
Support VIDIOC_G_PARM/VIDIOC_S_PARM

Revision 1.34.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:02 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.34.4.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.4.1: +3 -3 lines
Merge changes from current as of 20200406

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Dec 27 09:41:50 2019 UTC (4 years, 11 months ago) by msaitoh
Branches: 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, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
s/transfered/transferred/

Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:04 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -6 lines
Sync with HEAD

Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:48 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +6 -6 lines
Sync with HEAD

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

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:30 2018 UTC (6 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, netbsd-9-base, netbsd-9-4-RELEASE, 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, isaki-audio2-base, isaki-audio2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -6 lines
Rename min/max -> uimin/uimax for better honesty.

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

HOWEVER!  Some subsystems have

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

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

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

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

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

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

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

Revision 1.28.6.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.28.6.2: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.6.2: +4 -32 lines
update from HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Oct 28 03:47:24 2017 UTC (7 years, 1 month ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
Kill some more extern cfdriver xyz_cd in favour of #include "ioconf.h".

Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:00 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +4 -32 lines
Sync with HEAD

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:09 2017 UTC (7 years, 6 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -32 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.32.18.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:35 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +144 -72 lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.32.8.2: download - view: text, markup, annotated - select for diffs
Tue Jul 26 07:44:44 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.32.8.1: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.8.1: +3 -3 lines
Typo

Revision 1.32.8.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:20 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +144 -72 lines
Sync with HEAD

Revision 1.28.6.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.28.6.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.6.1: +16 -7 lines
Rebase to HEAD as of a few days ago.

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:50 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +3 -2 lines
Rebase.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:35 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2, pgoyette-localcount, nick-nhusb
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2 lines
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.27.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.27.2.2: preferred, colored; branchpoint 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27.2.2: +15 -7 lines
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.29.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +15 -7 lines
sync with head

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:26 2014 UTC (10 years, 8 months ago) by dholland
Branches: 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
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +13 -4 lines
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.30: download - view: text, markup, annotated - select for diffs
Thu Oct 17 21:20:10 2013 UTC (11 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -5 lines
- remove unused variables
- moved debugging variable into debugging ifdef

Revision 1.28.6.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:11 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -3 lines
resync with head

Revision 1.27.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:04 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.27.2.1: preferred, colored; branchpoint 1.27: preferred, colored
Changes since revision 1.27.2.1: +4 -3 lines
sync with head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Jan 7 15:07:40 2013 UTC (11 years, 11 months ago) by prlw1
Branches: MAIN
CVS tags: yamt-pagecache-base8, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -3 lines
Allow USB memory allocation by multiple segments in scatter/gather lists
rather than in a single contiguous block which causes problems with
large USB video frames.
Based on a patch by Jeremy Morse in the thread
http://mail-index.netbsd.org/current-users/2011/01/26/msg015532.html
Tested by developing http://code.opencv.org/issues/2360
OK jmcneill@

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:26 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -2 lines
sync with head

Revision 1.27.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:07 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +10 -2 lines
merge to -current.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Feb 2 17:21:18 2012 UTC (12 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6, 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
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -2 lines
fill in timestamps in outgoing data buffers

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Aug 13 02:49:06 2011 UTC (13 years, 4 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +72 -50 lines
Restore binary compatibility with NetBSD 5 binaries that utilize video(4).

Revision 1.23.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:00 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +607 -42 lines
sync with head

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Dec 26 23:41:45 2010 UTC (13 years, 11 months ago) by jmcneill
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +15 -3 lines
don't try to set frequencies lower or higher than the tuner's allowed
range -- the v4l2 spec says "when the requested frequency is not possible
the driver assumes the closest possible value".

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Dec 24 20:54:28 2010 UTC (13 years, 11 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +10 -6 lines
VIDIOC_QUERYCAP changes:
 - use driver name instead of device instance name in 'driver' field
 - add 'get_businfo' callback to fill in 'bus_info' field instead of
   hard-coding "USB"
 - use the kernel version for the 'version' field instead of 1
 - adapt pseye and uvideo drivers to changes in struct video_hw_if

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Dec 14 03:25:16 2010 UTC (14 years ago) by jmcneill
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +587 -38 lines
video(4) changes to support analog tv capture devices:
 - support interlacing with VIDIOC_G_FMT
 - set V4L2_CAP_TUNER if driver implements the set_tuner/get_tuner
   callbacks
 - set V4L2_CAP_AUDIO if driver implements the set_audio/get_audio/enum_audio
   callbacks
 - add support for the following ioctls: VIDIOC_ENUMSTD, VIDIOC_G_STD,
   VIDIOC_S_STD, VIDIOC_ENUMINPUT, VIDIOC_G_INPUT, VIDIOC_S_INPUT,
   VIDIOC_ENUMAUDIO, VIDIOC_G_AUDIO, VIDIOC_S_AUDIO, VIDIOC_G_TUNER,
   VIDIOC_S_TUNER, VIDIOC_G_FREQUENCY, VIDIOC_S_FREQUENCY
 - in video_submit_payload(), fix support for signaling sample complete
   using frame numbers
 - new optional callbacks for drivers: enum_standard, get_standard,
   set_standard, enum_input, get_input, set_input, enum_audio, get_audio,
   set_audio, get_tuner, set_tuner, get_frequency, set_frequency

for drivers that don't provide enum_standard, get_standard, set_standard,
enum_input, get_input and set_input, the original stub implementations are
provided

Revision 1.20.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:21 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.20.2.4: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.2.4: +6 -9 lines
sync with head

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Dec 6 22:42:48 2009 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211
Branch point for: rmind-uvmplock
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -9 lines
Simplify these device-activation hooks using the following semantic
patch.

XXX sc_dying must die.

@@
type device_t;

identifier act, midi_softc, midiactivate, sc, self;
@@

int
midiactivate(device_t self, enum devact act)
{
(
	struct midi_softc *sc = device_private(self);
|
-	struct midi_softc *sc;
+	struct midi_softc *sc = device_private(self);
...
-	sc = device_private(self);
)
...
	switch (act) {
-	case DVACT_ACTIVATE:
-		return (EOPNOTSUPP);
-
	case DVACT_DEACTIVATE:
(
	sc->dying
|
	sc->sc_dying
)
		=
(
	1
|
	true
)
		;
-		break;
+		return 0;
+	default:
+		return EOPNOTSUPP;
	}
-	return (0);
}

Revision 1.20.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:47:02 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.20.2.3: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.3: +76 -8 lines
sync with head.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Aug 18 02:17:09 2009 UTC (15 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, jym-xensuspend-nbase
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +76 -8 lines
1. some of the video24linux structs are not as machine independent as their
   authors want them to be. For the buffer ioctls, define new ioctls with
   the 32 bit buffer sizes. For the format struct, define it as packed
   so it is the same on 32 and 64 bit. (I might need to version this)
2. the mmapped buffers need to be page aligned, otherwise mmap(2) does
   not work. Make it so.
All this makes my ricoh camera work with emul-linux and skype running on
amd64. Next is sound!

Revision 1.19.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:45 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.19.2.1: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.2.1: +3 -3 lines
Sync with HEAD.

Revision 1.20.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 18 14:52:59 2009 UTC (15 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.20.2.2: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.2: +3 -3 lines
sync with head.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Jul 7 21:55:17 2009 UTC (15 years, 5 months ago) by njoly
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, jymxensuspend-base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Fix amd64 build with VIDEO_DEBUG.

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:05 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Sync with HEAD.

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

Revision 1.20.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:33 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.20.2.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.2.1: +2154 -0 lines
sync with head.

Revision 1.17.6.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:35:13 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.17.6.2: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.6.2: +3 -3 lines
Sync with HEAD.

Revision 1.17.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 15 20:34:29 2009 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: 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-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, 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
Diff to: previous 1.17.8.2: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.8.2: +3 -3 lines
Pull up following revision(s) (requested by jmcneill in ticket #576):
	sys/dev/video.c: revision 1.20
PR# kern/41008: possible simple mistake of field check in video(9)
video_set_format() requires hw->set_format to be set, not get_format,
from fukumoto@imasy.or.jp

Revision 1.20.2.1
Sat Mar 14 00:33:25 2009 UTC (15 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.20: +0 -2154 lines
file video.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:33 +0000

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Mar 14 00:33:25 2009 UTC (15 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
PR# kern/41008: possible simple mistake of field check in video(9)

video_set_format() requires hw->set_format to be set, not get_format,
from fukumoto@imasy.or.jp

Revision 1.17.6.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:30:31 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.17.6.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.6.1: +9 -3 lines
Sync with HEAD.

Revision 1.17.8.2: download - view: text, markup, annotated - select for diffs
Thu Jan 22 23:21:19 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC2, netbsd-5-0-RC1
Diff to: previous 1.17.8.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.8.1: +9 -3 lines
Pull up following revision(s) (requested by drochner in ticket #305):
	sys/dev/video.c: revision 1.19
-avoid eternal block if device is not streaming
-apply locking to avoid race in poll()
-fix an obviously wrong flag check

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Jan 20 20:18:28 2009 UTC (15 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +9 -3 lines
-avoid eternal block if device is not streaming
-apply locking to avoid race in poll()
-fix an obviously wrong flag check

Revision 1.17.6.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:52 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
Sync with HEAD.

Revision 1.17.2.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:52 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.17.2.2: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.2: +1 -0 lines
Sync with HEAD.

Revision 1.17.8.1: download - view: text, markup, annotated - select for diffs
Sat Dec 27 03:47:55 2008 UTC (15 years, 11 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
Pull up following revision(s) (requested by jmorse in ticket #204):
	sys/dev/video.c: revision 1.18
	sys/dev/usb/uvideo.c: revision 1.24
Fix UVC webcam output by:
- Storing updated video format after user changes format
- Round up number of xfers queued to multiple of 8, due to ehci inefficiencies
- Remove random debugging line I slipped in earlier

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Dec 23 03:22:29 2008 UTC (15 years, 11 months ago) by jmorse
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
Fix UVC webcam output by:
- Storing updated video format after user changes format
- Round up number of xfers queued to multiple of 8, due to ehci inefficiencies
- Remove random debugging line I slipped in earlier

Revision 1.17.4.2: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:18 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.17.4.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.4.1: +2147 -0 lines
Sync with HEAD.

Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:30:57 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +28 -2 lines
Sync with HEAD.

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:18 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.1: +2147 -0 lines
Sync with HEAD.

Revision 1.17.4.1
Sun Sep 21 19:29:50 2008 UTC (16 years, 2 months ago) by haad
Branches: haad-dm
FILE REMOVED
Changes since revision 1.17: +0 -2147 lines
file video.c was added on branch haad-dm on 2008-10-19 22:16:18 +0000

Revision 1.17.2.1
Sun Sep 21 19:29:50 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.17: +0 -2147 lines
file video.c was added on branch mjf-devfs2 on 2008-09-28 10:40:18 +0000

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Sep 21 19:29:50 2008 UTC (16 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, mjf-devfs2, haad-dm
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -2 lines
Register with pmf

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Sep 20 18:13:40 2008 UTC (16 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +23 -2 lines
Add RGB555, RGB565, UYVY support

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:35:01 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.2.1: +2121 -0 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.15.2.1
Thu Sep 18 02:47:57 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
FILE REMOVED
Changes since revision 1.15: +0 -2121 lines
file video.c was added on branch wrstuden-revivesa on 2008-09-18 04:35:01 +0000

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Sep 18 02:47:57 2008 UTC (16 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3
Branch point for: wrstuden-revivesa
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +26 -8 lines
Use get_format instead of set_format in videoopen

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Sep 14 16:03:27 2008 UTC (16 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +9 -2 lines
Add VIDEO_FORMAT_YUV420 support

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Sep 14 14:31:33 2008 UTC (16 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -6 lines
Allow VIDIOC_ENUM_FORMAT to return more than one result.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Sep 14 03:33:44 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -5 lines
Revert previous double-free hack, needs revisiting.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Sep 13 23:50:54 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +12 -2 lines
Add RGB24 support, and prevent a double-free on videoclose

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Sep 9 04:28:54 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
VIDIOC_QUERYCAP: device_xname on device_t, not softc

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Sep 9 04:23:53 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
More pixelformat mapping typo fixes

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Sep 9 04:23:02 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Map VIDEO_FORMAT_MJPEG to V4L2_PIX_FMT_MJPEG, not V4L2_PIX_FMT_JPEG

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Sep 9 01:36:48 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -2 lines
Fix "select timeout" and low framerate issues with mplayer, from drochner@

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Sep 8 00:39:27 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Limit VIDEO_MAX_BUFS to 32 instead of 255

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Sep 7 20:05:13 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -2 lines
Missing aprint newline in video_attach

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Sep 7 19:06:14 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3 lines
Actually, EINVAL is correct for an unimplemented ioctl. ENOTTY is only
needed for the VIDIOC_*_FMT ioctls.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 7 17:13:21 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -7 lines
Return ENOTTY instead of EINVAL if a driver doesn't implement one of the
set, try, get, or enum format ioctls.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Sep 6 21:21:49 2008 UTC (16 years, 3 months ago) by rmind
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +6 -5 lines
Unbreak build when VIDEO_DEBUG is not defined.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Sep 6 19:00:54 2008 UTC (16 years, 3 months ago) by jmcneill
Branches: MAIN
Add MI video4linux2 layer, part of Patrick Mahoney's Google Summer
of Code 2008 project.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>