Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
etraxgpio.h File Reference

Go to the source code of this file.

Data Structures

struct  io_pwm_set_mode
 
struct  io_pwm_set_period
 
struct  io_pwm_set_duty
 
struct  io_pwm_get_period
 
struct  io_pwm_set_input_src
 
struct  io_ppwm_set_duty
 
struct  gpio_pwmclk_conf
 

Macros

#define GPIO_MINOR_FIRST   0
 
#define ETRAXGPIO_IOCTYPE   43
 
#define IO_READBITS   0x1 /* read and return current port bits (obsolete) */
 
#define IO_SETBITS   0x2 /* set the bits marked by 1 in the argument */
 
#define IO_CLRBITS   0x3 /* clear the bits marked by 1 in the argument */
 
#define IO_HIGHALARM   0x4 /* set alarm on high for bits marked by 1 */
 
#define IO_LOWALARM   0x5 /* set alarm on low for bits marked by 1 */
 
#define IO_CLRALARM   0x6 /* clear alarm for bits marked by 1 */
 
#define IO_LEDACTIVE_SET
 
#define IO_READDIR   0x8 /* Read direction 0=input 1=output (obsolete) */
 
#define IO_SETINPUT
 
#define IO_SETOUTPUT
 
#define IO_LED_SETBIT   0xB
 
#define IO_LED_CLRBIT   0xC
 
#define IO_SHUTDOWN   0xD
 
#define IO_GET_PWR_BT   0xE
 
#define IO_CFG_WRITE_MODE   0xF
 
#define IO_CFG_WRITE_MODE_VALUE(msb, data_mask, clk_mask)   ( (((msb)&1) << 16) | (((data_mask) &0xFF) << 8) | ((clk_mask) & 0xFF) )
 
#define IO_READ_INBITS   0x10 /* *arg is result of reading the input pins */
 
#define IO_READ_OUTBITS   0x11 /* *arg is result of reading the output shadow */
 
#define IO_SETGET_INPUT   0x12 /* bits set in *arg is set to input, */
 
#define IO_SETGET_OUTPUT   0x13 /* bits set in *arg is set to output, */
 
#define IO_PWM_SET_MODE   0x20
 
#define IO_PWM_SET_PERIOD   0x21
 
#define IO_PWM_SET_DUTY   0x22
 
#define IO_PWM_GET_PERIOD   0x23
 
#define IO_PWM_SET_INPUT_SRC   0x24
 
#define IO_PPWM_SET_DUTY   0x25
 
#define IO_PWMCLK_SETGET_CONFIG   0x26
 

Enumerations

enum  io_pwm_mode {
  PWM_OFF = 0, PWM_STANDARD = 1, PWM_FAST = 2, PWM_VARFREQ = 3,
  PWM_SOFT = 4
}
 

Macro Definition Documentation

#define ETRAXGPIO_IOCTYPE   43

Definition at line 40 of file etraxgpio.h.

#define GPIO_MINOR_FIRST   0

Definition at line 38 of file etraxgpio.h.

#define IO_CFG_WRITE_MODE   0xF

Definition at line 124 of file etraxgpio.h.

#define IO_CFG_WRITE_MODE_VALUE (   msb,
  data_mask,
  clk_mask 
)    ( (((msb)&1) << 16) | (((data_mask) &0xFF) << 8) | ((clk_mask) & 0xFF) )

Definition at line 125 of file etraxgpio.h.

#define IO_CLRALARM   0x6 /* clear alarm for bits marked by 1 */

Definition at line 101 of file etraxgpio.h.

#define IO_CLRBITS   0x3 /* clear the bits marked by 1 in the argument */

Definition at line 95 of file etraxgpio.h.

#define IO_GET_PWR_BT   0xE

Definition at line 117 of file etraxgpio.h.

#define IO_HIGHALARM   0x4 /* set alarm on high for bits marked by 1 */

Definition at line 99 of file etraxgpio.h.

#define IO_LED_CLRBIT   0xC

Definition at line 113 of file etraxgpio.h.

#define IO_LED_SETBIT   0xB

Definition at line 112 of file etraxgpio.h.

#define IO_LEDACTIVE_SET
Value:
0x7 /* set active led
* 0=off, 1=green, 2=red, 3=yellow */

Definition at line 104 of file etraxgpio.h.

#define IO_LOWALARM   0x5 /* set alarm on low for bits marked by 1 */

Definition at line 100 of file etraxgpio.h.

#define IO_PPWM_SET_DUTY   0x25

Definition at line 212 of file etraxgpio.h.

#define IO_PWM_GET_PERIOD   0x23

Definition at line 193 of file etraxgpio.h.

#define IO_PWM_SET_DUTY   0x22

Definition at line 178 of file etraxgpio.h.

#define IO_PWM_SET_INPUT_SRC   0x24

Definition at line 206 of file etraxgpio.h.

#define IO_PWM_SET_MODE   0x20

Definition at line 141 of file etraxgpio.h.

#define IO_PWM_SET_PERIOD   0x21

Definition at line 161 of file etraxgpio.h.

#define IO_PWMCLK_SETGET_CONFIG   0x26

Definition at line 221 of file etraxgpio.h.

#define IO_READ_INBITS   0x10 /* *arg is result of reading the input pins */

Definition at line 132 of file etraxgpio.h.

#define IO_READ_OUTBITS   0x11 /* *arg is result of reading the output shadow */

Definition at line 133 of file etraxgpio.h.

#define IO_READBITS   0x1 /* read and return current port bits (obsolete) */

Definition at line 93 of file etraxgpio.h.

#define IO_READDIR   0x8 /* Read direction 0=input 1=output (obsolete) */

Definition at line 107 of file etraxgpio.h.

#define IO_SETBITS   0x2 /* set the bits marked by 1 in the argument */

Definition at line 94 of file etraxgpio.h.

#define IO_SETGET_INPUT   0x12 /* bits set in *arg is set to input, */

Definition at line 134 of file etraxgpio.h.

#define IO_SETGET_OUTPUT   0x13 /* bits set in *arg is set to output, */

Definition at line 136 of file etraxgpio.h.

#define IO_SETINPUT
Value:
0x9 /* Set direction for bits set, 0=unchanged 1=input,
returns mask with current inputs (obsolete) */

Definition at line 108 of file etraxgpio.h.

#define IO_SETOUTPUT
Value:
0xA /* Set direction for bits set, 0=unchanged 1=output,
returns mask with current outputs (obsolete)*/

Definition at line 109 of file etraxgpio.h.

#define IO_SHUTDOWN   0xD

Definition at line 116 of file etraxgpio.h.

Enumeration Type Documentation

Enumerator:
PWM_OFF 
PWM_STANDARD 
PWM_FAST 
PWM_VARFREQ 
PWM_SOFT 

Definition at line 143 of file etraxgpio.h.