Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - E index

CONFIG_ETRAX_GPIO: GPIO support

General informations

The Linux kernel configuration item CONFIG_ETRAX_GPIO has multiple definitions:

GPIO support found in arch/cris/arch-v10/drivers/Kconfig

The configuration item CONFIG_ETRAX_GPIO:

Help text

Enables the ETRAX general port device (major 120, minors 0 and 1). You can use this driver to access the general port bits. It supports these ioctl's: #include <linux/etraxgpio.h> fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set); ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear); val = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READBITS), NULL); Remember that you need to setup the port directions appropriately in the General configuration.

GPIO support found in arch/cris/arch-v32/drivers/Kconfig

The configuration item CONFIG_ETRAX_GPIO:

Help text

Enables the ETRAX general port device (major 120, minors 0-4). You can use this driver to access the general port bits. It supports these ioctl's: #include <linux/etraxgpio.h> fd = open("/dev/gpioa", O_RDWR); // or /dev/gpiob ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_SETBITS), bits_to_set); ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_CLRBITS), bits_to_clear); err = ioctl(fd, _IO(ETRAXGPIO_IOCTYPE, IO_READ_INBITS), &val); Remember that you need to setup the port directions appropriately in the General configuration.

Hardware

LKDDb

Raw data from LKDDb:

Sources

This page is automaticly generated with free (libre, open) software lkddb(see lkddb-sources).

The data is retrived from:

Automatic links from Google (and ads)

Custom Search

Popular queries:

Navigation: Linux Kernel Driver DataBase - web LKDDB: main index - E index

Automatically generated (in year 2017) with gen-web-lkddb.py in lkddb-sources.