mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
5f78028b1a
Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
28 lines
949 B
C
28 lines
949 B
C
/*
|
|
* Copyright 2006-2008 Analog Devices Inc.
|
|
*
|
|
* Licensed under the GPL-2 or later.
|
|
*/
|
|
|
|
#ifndef _bfin_simple_timer_h_
|
|
#define _bfin_simple_timer_h_
|
|
|
|
#include <linux/ioctl.h>
|
|
|
|
#define BFIN_SIMPLE_TIMER_IOCTL_MAGIC 't'
|
|
|
|
#define BFIN_SIMPLE_TIMER_SET_PERIOD _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 2)
|
|
#define BFIN_SIMPLE_TIMER_SET_WIDTH _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 3)
|
|
#define BFIN_SIMPLE_TIMER_SET_MODE _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 4)
|
|
#define BFIN_SIMPLE_TIMER_START _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 6)
|
|
#define BFIN_SIMPLE_TIMER_STOP _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 8)
|
|
#define BFIN_SIMPLE_TIMER_READ _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 10)
|
|
#define BFIN_SIMPLE_TIMER_READ_COUNTER _IO(BFIN_SIMPLE_TIMER_IOCTL_MAGIC, 11)
|
|
|
|
#define BFIN_SIMPLE_TIMER_MODE_PWM_ONESHOT 0
|
|
#define BFIN_SIMPLE_TIMER_MODE_PWMOUT_CONT 1
|
|
#define BFIN_SIMPLE_TIMER_MODE_WDTH_CAP 2
|
|
#define BFIN_SIMPLE_TIMER_MODE_PWMOUT_CONT_NOIRQ 3
|
|
|
|
#endif
|