/* $Id: dev_pwr.h,v 1.4 2006/11/08 21:28:29 stevelim Exp $ */


/* IOCTL definitions - comments indicate data size.  All IOCTLS are immediate */

/* The following IOCTL definitions are for the ginp device */

#define GINPGETINP      0x11500001      /* 1 Get current state of inputs    */
#define GINPGETLATCH    0x11500002      /* 1 Get latched state of inputs    */
#define GINPCLRLATCH    0x11500003      /* 1 Clear latched state of inputs  */

/* The following IOCTL definitions are for the goutp device */

#define GOUTGET         0x11510001      /* 1    [01] */
#define GOUTSET         0x11510002      /* 1    [01] immediate */
#define GOUTSETBIT      0x11510003      /* 1    [01] immediate */
#define GOUTCLEARBIT    0x11510004      /* 1    [01] immediate */

/* The following IOCTL definitions are for the gpwr device */

#define GPWRGETWHICH    0x11520001      /* 1 Get inputs at power on time    */
#define GPWROFF         0x11520002      /* 0 Turn power off                 */
#define GPWROFFRESET    0x11520003      /* 0 Turn power off unless inputs active*/
#define GPWRRESET	0x11520004	/* 0 System reset */
#define GPWRLEDRESET    0x11520005      /* 0 Turn power LED off             */
#define GPWRLEDSET      0x11520006      /* 0 Turn power LED on              */
#define GPWRLEDTOGGLE   0x11520007      /* 0 Toggle the state of the pwr LED*/
#define GPWRLEDGET      0x11520008      /* 1 Read the state of the power LED*/
