meye driver updates
Subsystems (2)
PATCH 1/1 meye driver updates
Hi,
The attached patch updates the meye driver with some tiny changes:
* use SetPageReserved instead of mem_map_reserve, and remove the wrapper.h dependency
* document the supported hardware.
Marcelo, please apply.
Stelian.
===== Documentation/video4linux/meye.txt 1.6 vs edited =====
Documentation/video4linux/meye.txt +17 -0
@@ -16,6 +16,23 @@ MJPEG hardware grabbing is supported via a private API (see below). +Hardware supported: +------------------- + +This driver supports the 'second' version of the MotionEye camera :) + +The first version was connected directly on the video bus of the Neomagic +video card and is unsupported. + +The second one, made by Kawasaki Steel is fully supported by this +driver (PCI vendor/device is 0x136b/0xff01) + +The third one, present in recent (more or less last year) Picturebooks +(C1M* models), is not supported. The manufacturer has given the specs +to the developers under a NDA (which allows the develoment of a GPL +driver however), but things are not moving very fast (see +http://r-engine.sourceforge.net/) (PCI vendor/device is 0x10cf/0x2011). + Driver options: ---------------
===== drivers/media/video/meye.c 1.14 vs edited =====
drivers/media/video/meye.c +2 -3
@@ -35,7 +35,6 @@#include <asm/uaccess.h> #include <asm/io.h> #include <linux/delay.h> -#include <linux/wrapper.h> #include <linux/interrupt.h> #include <linux/vmalloc.h>
@@ -139,7 +138,7 @@memset (mem,0 , size);/* Clear the ram out, no junk to the user */ adr = (unsigned long )mem;while (size >0 ) { -mem_map_reserve (vmalloc_to_page ((void *)adr)); +SetPageReserved (vmalloc_to_page ((void *)adr)); adr +=PAGE_SIZE ; size -=PAGE_SIZE ; }
@@ -153,7 +152,7 @@if (mem) { adr = (unsigned long ) mem;while ((long ) size >0 ) { -mem_map_unreserve (vmalloc_to_page ((void *)adr)); +ClearPageReserved (vmalloc_to_page ((void *)adr)); adr +=PAGE_SIZE ; size -=PAGE_SIZE ; }
Signature · 1 line
Stelian Pop <[email protected]>