Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]
  1 /*
  2  * hrt.h
  3  * 
  4  * application/kernel interface to HRT driver
  5  */
  6 
  7 #ifndef _HRT_H_
  8 #define _HRT_H_
  9 
 10 #ifndef __KERNEL__
 11 #include <sys/ioctl.h>
 12 #endif
 13 
 14 #define HRT_MAX_DEVICES 8
 15 
 16 /* The offset of the HRT I2C bus control port (0x2000 = 8192 = 2^13) */
 17 #define HRT_CONTROL_REG 0x2000
 18 #define HRT_I2C_REG     0x2001
 19 #define HRT_Y_LOW_REG   0x2002
 20 #define HRT_Y_HIGH_REG  0x2003
 21 #define HRT_IRQ_ENABLE  0x2005
 22 
 23 #define HRT_LIVE_CMD          0x91
 24 #define HRT_FREEZE_IMM_CMD    0x5B
 25 #define HRT_FREEZE_NEXT_CMD   0x99
 26 
 27 #define IOC_HRT_MAGIC_NUM       'v'
 28 
 29 #define IOC_HRT_GO_LIVE         _IO (IOC_HRT_MAGIC_NUM, 2)
 30 #define IOC_HRT_FREEZE_FRAME    _IO (IOC_HRT_MAGIC_NUM, 3)
 31 #define IOC_HRT_WIN_SET_WIDTH   _IOW(IOC_HRT_MAGIC_NUM, 4, int)
 32 #define IOC_HRT_WIN_SET_HEIGHT  _IOW(IOC_HRT_MAGIC_NUM, 5, int)
 33 #define IOC_HRT_WIN_SET_X       _IOW(IOC_HRT_MAGIC_NUM, 6, int)
 34 #define IOC_HRT_WIN_SET_Y       _IOW(IOC_HRT_MAGIC_NUM, 7, int)
 35 #define IOC_HRT_SET_MODE        _IOW(IOC_HRT_MAGIC_NUM, 8, int)
 36 
 37 #endif
 38 
  This page was automatically generated by the LXR engine.