Robin Getz | 96f1050 | 2009-09-24 14:11:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2006-2008 Analog Devices Inc. |
| 3 | * |
| 4 | * Licensed under the GPL-2 or later. |
| 5 | */ |
| 6 | |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 7 | #ifndef _bfin_simple_timer_h_ |
| 8 | #define _bfin_simple_timer_h_ |
| 9 | |
| 10 | #include <linux/ioctl.h> |
| 11 | |
| 12 | #define BFIN_SIMPLE_TIMER_IOCTL_MAGIC 't' |
| 13 | |
Steven Miao | f7899f7 | 2012-01-11 14:00:47 +0800 | [diff] [blame] | 14 | #define BFIN_SIMPLE_TIMER_SET_PERIOD _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 2) |
| 15 | #define BFIN_SIMPLE_TIMER_SET_WIDTH _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 3) |
| 16 | #define BFIN_SIMPLE_TIMER_SET_MODE _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 4) |
| 17 | #define BFIN_SIMPLE_TIMER_START _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 6) |
| 18 | #define BFIN_SIMPLE_TIMER_STOP _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 8) |
| 19 | #define BFIN_SIMPLE_TIMER_READ _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 10) |
Steven Miao | 5f78028 | 2012-06-06 10:33:26 +0800 | [diff] [blame] | 20 | #define BFIN_SIMPLE_TIMER_READ_COUNTER _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 11) |
| 21 | |
| 22 | #define BFIN_SIMPLE_TIMER_MODE_PWM_ONESHOT 0 |
| 23 | #define BFIN_SIMPLE_TIMER_MODE_PWMOUT_CONT 1 |
| 24 | #define BFIN_SIMPLE_TIMER_MODE_WDTH_CAP 2 |
| 25 | #define BFIN_SIMPLE_TIMER_MODE_PWMOUT_CONT_NOIRQ 3 |
Bryan Wu | 1394f03 | 2007-05-06 14:50:22 -0700 | [diff] [blame] | 26 | |
| 27 | #endif |