Permalink
Browse files

Add Genlock support

  • Loading branch information...
1 parent 68d37f9 commit 213b2658a2cf1a5ea0d971b610f67d36a8a96c73 @lupohirp lupohirp committed Mar 2, 2012
Showing with 637 additions and 1 deletion.
  1. +14 −0 drivers/base/Kconfig
  2. +1 −1 drivers/base/Makefile
  3. +622 −0 drivers/base/genlock.c
View
@@ -169,4 +169,18 @@ config SYS_HYPERVISOR
bool
default n
+config GENLOCK
+ bool "Enable a generic cross-process locking mechanism"
+ depends on ANON_INODES
+ help
+ Enable a generic cross-process locking API to provide protection
+ for shared memory objects such as graphics buffers.
+
+config GENLOCK_MISCDEVICE
+ bool "Enable a misc-device for userspace to access the genlock engine"
+ depends on GENLOCK
+ help
+ Create a miscdevice for the purposes of allowing userspace to create
+ and interact with locks created using genlock.
+
endmenu
@@ -3,7 +3,7 @@
obj-y := core.o sys.o bus.o dd.o \
driver.o class.o platform.o \
cpu.o firmware.o init.o map.o devres.o \
- attribute_container.o transport_class.o
+ attribute_container.o transport_class.o genlock.o
obj-$(CONFIG_DEVTMPFS) += devtmpfs.o
obj-y += power/
obj-$(CONFIG_HAS_DMA) += dma-mapping.o
Oops, something went wrong.

0 comments on commit 213b265

Please sign in to comment.