X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fgps-gpio-brcm4750.h;h=8b30cd7622ebb233e3600836c8109391f9681075;hb=15f7fabcb88e67792e49279de0b28d70fcfca0cd;hp=d534ab7afe125c3648cd6ffd745bff23b30c91e2;hpb=59846879cc5b54609f7df3eec53d915d36cf8097;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/gps-gpio-brcm4750.h b/include/linux/gps-gpio-brcm4750.h index d534ab7afe12..8b30cd7622eb 100755 --- a/include/linux/gps-gpio-brcm4750.h +++ b/include/linux/gps-gpio-brcm4750.h @@ -19,7 +19,11 @@ #ifndef _GPS_GPIO_BRCM4750_H_ #define _GPS_GPIO_BRCM4750_H_ +#include #include +#include +#include +#include #define GPS_GPIO_DRIVER_NAME "gps_brcm4750" @@ -27,12 +31,20 @@ #define IOC_GPS_GPIO_RESET _IOW(GPS_GPIO_IOCTL_BASE, 0x0, int) #define IOC_GPS_GPIO_STANDBY _IOW(GPS_GPIO_IOCTL_BASE, 0x1, int) +/* start single shot wake up timer, set the value in msecs */ +#define IOC_GPS_START_TIMER _IOW(GPS_GPIO_IOCTL_BASE, 0x2, int) +/* stop wake up timer */ +#define IOC_GPS_STOP_TIMER _IOW(GPS_GPIO_IOCTL_BASE, 0x3, int) #ifdef __KERNEL__ struct gps_gpio_brcm4750_platform_data { void (*set_reset_gpio)(unsigned int gpio_val); void (*set_standby_gpio)(unsigned int gpio_val); void (*free_gpio)(void); + struct alarm alarm; + struct wake_lock gps_brcm4750_wake; + wait_queue_head_t gps_brcm4750_wq; + int timer_status; } __attribute__ ((packed)); #endif /* __KERNEL__ */