#ifndef PWR_SIGNAL_H_INCLUDED
#define PWR_SIGNAL_H_INCLUDED


#define PWRFAIL_SIGNAL
#define DBGFS_ROOT    "/sys/kernel/debug/"
#define PID_FILE    "signalconfpid"
#define PID_PATH	"/sys/kernel/debug/signalconfpid"
#define SIGPWRFAIL  44

#ifdef PWRFAIL_SIGNAL
#undef PWRFAIL_DEBUG
#if 1
#include <sys/ioctl.h>
#define RETENTIVE_MAGIC 'r'
#define RETENTIVE_POWEROFF _IO(RETENTIVE_MAGIC, 0)
#ifdef PWRFAIL_DEBUG
#define RETENTIVE_GPIOCTRL _IO(RETENTIVE_MAGIC, 1)
#endif
#endif

#endif //PWRFAIL_SIGNAL

#endif
