mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
sketch uio
This commit is contained in:
@@ -135,3 +135,30 @@ CONFIG_PCI=y
|
||||
|
||||
# Like CONFIG_X86_PTDUMP for ARM.
|
||||
CONFIG_ARM64_PTDUMP=y
|
||||
|
||||
## UIO
|
||||
|
||||
# Userspace drivers.
|
||||
#
|
||||
# Superseded by the more featureful VFIO.
|
||||
#
|
||||
# Documentation/DocBook/uio-howto.tmpl
|
||||
#
|
||||
# UIO interface in a nutshell:
|
||||
#
|
||||
# - blocking read / poll: waits until interrupts
|
||||
# - write: call irqcontrol callback. Default: 0 or 1 to enable / disable interrupts.
|
||||
# - mmap: access device memory
|
||||
|
||||
# All other UIO depend on this module.
|
||||
CONFIG_UIO=m
|
||||
|
||||
# Generic platform devices.
|
||||
# https://yurovsky.github.io/2014/10/10/linux-uio-gpio-interrupt/
|
||||
CONFIG_UIO_DMEM_GENIRQ=m
|
||||
CONFIG_UIO_PDRV_GENIRQ=m
|
||||
|
||||
# https://github.com/rumpkernel/wiki/wiki/Howto:-Accessing-PCI-devices-from-userspace
|
||||
# /sys/class/uio/
|
||||
# /sys/class/uio/uio0
|
||||
CONFIG_UIO_PCI_GENERIC=m
|
||||
|
||||
Reference in New Issue
Block a user