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

Go to the source code of this file.

Macros

#define RESET_STATUS_HARDWARE   (1 << 0) /* Hardware Reset */
 
#define RESET_STATUS_WATCHDOG   (1 << 1) /* Watchdog Reset */
 
#define RESET_STATUS_LOWPOWER   (1 << 2) /* Low Power/Sleep Exit */
 
#define RESET_STATUS_GPIO   (1 << 3) /* GPIO Reset */
 
#define RESET_STATUS_ALL   (0xf)
 

Functions

void clear_reset_status (unsigned int mask)
 
int init_gpio_reset (int gpio, int output, int level)
 

Variables

unsigned int reset_status
 

Macro Definition Documentation

#define RESET_STATUS_ALL   (0xf)

Definition at line 8 of file reset.h.

#define RESET_STATUS_GPIO   (1 << 3) /* GPIO Reset */

Definition at line 7 of file reset.h.

#define RESET_STATUS_HARDWARE   (1 << 0) /* Hardware Reset */

Definition at line 4 of file reset.h.

#define RESET_STATUS_LOWPOWER   (1 << 2) /* Low Power/Sleep Exit */

Definition at line 6 of file reset.h.

#define RESET_STATUS_WATCHDOG   (1 << 1) /* Watchdog Reset */

Definition at line 5 of file reset.h.

Function Documentation

void clear_reset_status ( unsigned int  mask)

Definition at line 34 of file generic.c.

int init_gpio_reset ( int  gpio,
int  output,
int  level 
)

init_gpio_reset() - register GPIO as reset generator : gpio nr : set gpio as output instead of input during normal work : output level

Definition at line 24 of file reset.c.

Variable Documentation

unsigned int reset_status

Definition at line 17 of file reset.c.