aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux/modules/multiplexer.mk
blob: 135fc62c6dd2f4b3817989a66eca032d760ee79e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

MENU_TITLE:=Multiplexer Support

define KernelPackage/mux-core
  SUBMENU:=$(MENU_TITLE)
  TITLE:=Multiplexer Support
  KCONFIG:=CONFIG_MULTIPLEXER
  FILES:=$(LINUX_DIR)/drivers/mux/mux-core.ko
  AUTOLOAD:=$(call AutoLoad,25,mux-core,1)
endef

define KernelPackage/mux-core/description
  Kernel module for multiplexer support
endef

$(eval $(call KernelPackage,mux-core))

define KernelPackage/mux-gpio
  SUBMENU:=$(MENU_TITLE)
  TITLE:=GPIO-controlled Multiplexer controller
  KCONFIG:=CONFIG_MUX_GPIO
  DEPENDS:=@GPIO_SUPPORT kmod-mux-core
  FILES:=$(LINUX_DIR)/drivers/mux/mux-gpio.ko
  AUTOLOAD:=$(call AutoLoad,25,mux-gpio,1)
endef

define KernelPackage/mux-gpio/description
  Kernel modules for GPIO-controlled Multiplexer controller
endef

$(eval $(call KernelPackage,mux-gpio))
EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ #ifndef __ASM_BALLOON_H__ #define __ASM_BALLOON_H__ /* * Inform the balloon driver that it should allow some slop for device-driver * memory activities. */ extern void balloon_update_driver_allowance( long delta); /* Allocate an empty low-memory page range. */ extern struct page * balloon_alloc_empty_page_range( unsigned long nr_pages); /* Deallocate an empty page range, adding to the balloon. */ extern void balloon_dealloc_empty_page_range( struct page *page, unsigned long nr_pages); /* * Prevent the balloon driver from changing the memory reservation during * a driver critical region. */ extern spinlock_t balloon_lock; #define balloon_lock(__flags) spin_lock_irqsave(&balloon_lock, __flags) #define balloon_unlock(__flags) spin_unlock_irqrestore(&balloon_lock, __flags) #endif /* __ASM_BALLOON_H__ */ /* * Local variables: * c-file-style: "linux" * indent-tabs-mode: t * c-indent-level: 8 * c-basic-offset: 8 * tab-width: 8 * End: */