diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-06-10 06:08:23 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-06-10 06:08:23 +0000 |
commit | 2f4dcf2de37bda468a822cddb711f6e30ba2f82e (patch) | |
tree | c5e26e701807ae9b7bcdab47bf0738e6b9232306 | |
parent | 8292c15de9ad88f33156380279b95674574b06df (diff) |
Sort functions.
-rw-r--r-- | sys/dev/usb/uvideo.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 69546b43d76..b1e1295037e 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.29 2008/06/09 20:51:31 mglocker Exp $ */ +/* $OpenBSD: uvideo.c,v 1.30 2008/06/10 06:08:22 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -146,11 +146,11 @@ int uvideo_qbuf(void *, struct v4l2_buffer *); int uvideo_dqbuf(void *, struct v4l2_buffer *); int uvideo_streamon(void *, int); int uvideo_try_fmt(void *, struct v4l2_format *); -caddr_t uvideo_mappage(void *, off_t, int); /* * Other hardware interface related functions */ +caddr_t uvideo_mappage(void *, off_t, int); int uvideo_get_bufsize(void *); void uvideo_start_read(void *); @@ -1945,6 +1945,20 @@ uvideo_try_fmt(void *v, struct v4l2_format *fmt) return (0); } +caddr_t +uvideo_mappage(void *v, off_t off, int prot) +{ + struct uvideo_softc *sc = v; + caddr_t p; + + if (!sc->sc_mmap_flag) + sc->sc_mmap_flag = 1; + + p = sc->sc_mmap_buffer + off; + + return (p); +} + int uvideo_get_bufsize(void *v) { @@ -1963,17 +1977,3 @@ uvideo_start_read(void *v) uvideo_vs_start(sc); } - -caddr_t -uvideo_mappage(void *v, off_t off, int prot) -{ - struct uvideo_softc *sc = v; - caddr_t p; - - if (!sc->sc_mmap_flag) - sc->sc_mmap_flag = 1; - - p = sc->sc_mmap_buffer + off; - - return (p); -} |