Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
gpio.h File Reference
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/bug.h>

Go to the source code of this file.

Data Structures

struct  gpio
 

Macros

#define GPIOF_DIR_OUT   (0 << 0)
 
#define GPIOF_DIR_IN   (1 << 0)
 
#define GPIOF_INIT_LOW   (0 << 1)
 
#define GPIOF_INIT_HIGH   (1 << 1)
 
#define GPIOF_IN   (GPIOF_DIR_IN)
 
#define GPIOF_OUT_INIT_LOW   (GPIOF_DIR_OUT | GPIOF_INIT_LOW)
 
#define GPIOF_OUT_INIT_HIGH   (GPIOF_DIR_OUT | GPIOF_INIT_HIGH)
 
#define GPIOF_OPEN_DRAIN   (1 << 2)
 
#define GPIOF_OPEN_SOURCE   (1 << 3)
 
#define GPIOF_EXPORT   (1 << 4)
 
#define GPIOF_EXPORT_CHANGEABLE   (1 << 5)
 
#define GPIOF_EXPORT_DIR_FIXED   (GPIOF_EXPORT)
 
#define GPIOF_EXPORT_DIR_CHANGEABLE   (GPIOF_EXPORT | GPIOF_EXPORT_CHANGEABLE)
 

Macro Definition Documentation

#define GPIOF_DIR_IN   (1 << 0)

Definition at line 10 of file gpio.h.

#define GPIOF_DIR_OUT   (0 << 0)

Definition at line 9 of file gpio.h.

#define GPIOF_EXPORT   (1 << 4)

Definition at line 25 of file gpio.h.

#define GPIOF_EXPORT_CHANGEABLE   (1 << 5)

Definition at line 26 of file gpio.h.

#define GPIOF_EXPORT_DIR_CHANGEABLE   (GPIOF_EXPORT | GPIOF_EXPORT_CHANGEABLE)

Definition at line 28 of file gpio.h.

#define GPIOF_EXPORT_DIR_FIXED   (GPIOF_EXPORT)

Definition at line 27 of file gpio.h.

#define GPIOF_IN   (GPIOF_DIR_IN)

Definition at line 15 of file gpio.h.

#define GPIOF_INIT_HIGH   (1 << 1)

Definition at line 13 of file gpio.h.

#define GPIOF_INIT_LOW   (0 << 1)

Definition at line 12 of file gpio.h.

#define GPIOF_OPEN_DRAIN   (1 << 2)

Definition at line 20 of file gpio.h.

#define GPIOF_OPEN_SOURCE   (1 << 3)

Definition at line 23 of file gpio.h.

#define GPIOF_OUT_INIT_HIGH   (GPIOF_DIR_OUT | GPIOF_INIT_HIGH)

Definition at line 17 of file gpio.h.

#define GPIOF_OUT_INIT_LOW   (GPIOF_DIR_OUT | GPIOF_INIT_LOW)

Definition at line 16 of file gpio.h.