⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hmp4e.h

📁 linux2.6.18下支持sd2.0的驱动程序源码,支持最大32G的SD卡
💻 H
字号:
/*--------------------------------------------------------------------------------                                                                            ----       This software is confidential and proprietary and may be used        ----        only as expressly authorized by a licensing agreement from          ----                                                                            ----                            Hantro Products Oy.                             ----                                                                            ----      In the event of publication, the following notice is applicable:      ----                                                                            ----                   (C) COPYRIGHT 2003 HANTRO PRODUCTS OY                    ----                            ALL RIGHTS RESERVED                             ----                                                                            ----          The entire notice above must be reproduced on all copies.         ----                                                                            --------------------------------------------------------------------------------------  Project  : 1200s----  Abstract : Encoder device driver (kernel module) interface--------------------------------------------------------------------------------------  Version control information, please leave untouched.----  $RCSfile$--  $Author: root $--  $Date: 2006-03-15 11:58:36 +0800 (Wed, 15 Mar 2006) $--  $Revision: 2 $--  $Name$--------------------------------------------------------------------------------*/#ifndef _HMP4ENC_H_#define _HMP4ENC_H_#include <linux/ioctl.h>    /* needed for the _IOW etc stuff used later *//* * Macros to help debugging */#undef PDEBUG   /* undef it, just in case */#ifdef HMP4E_DEBUG#  ifdef __KERNEL__    /* This one if debugging is on, and kernel space */#    define PDEBUG(fmt, args...) printk( KERN_INFO "hmp4e: " fmt, ## args)#  else    /* This one for user space */#    define PDEBUG(fmt, args...) printf(__FILE__ ":%d: " fmt, __LINE__ , ## args)#  endif#else#  define PDEBUG(fmt, args...)  /* not debugging: nothing */#endif/* * Ioctl definitions *//* Use 'k' as magic number */#define HMP4E_IOC_MAGIC  'k'/* * S means "Set" through a ptr, * T means "Tell" directly with the argument value * G means "Get": reply by setting through a pointer * Q means "Query": response is on the return value * X means "eXchange": G and S atomically * H means "sHift": T and Q atomically */#define HMP4E_IOCGBUFBUSADDRESS _IOR(HMP4E_IOC_MAGIC,  1, unsigned long *)#define HMP4E_IOCGBUFSIZE       _IOR(HMP4E_IOC_MAGIC,  2, unsigned int *)#define HMP4E_IOCGHWOFFSET      _IOR(HMP4E_IOC_MAGIC,  3, unsigned long *)#define HMP4E_IOCGHWIOSIZE      _IOR(HMP4E_IOC_MAGIC,  4, unsigned int *)#define HMP4E_IOC_CLI           _IO(HMP4E_IOC_MAGIC,  5)#define HMP4E_IOC_STI           _IO(HMP4E_IOC_MAGIC,  6)#define HMP4E_IOCXVIRT2BUS      _IOWR(HMP4E_IOC_MAGIC,  7, unsigned long *)#define HMP4E_IOCHARDRESET      _IO(HMP4E_IOC_MAGIC, 8) /* debugging tool */#define HMP4E_IOC_MAXNR 8#endif /* !_HMP4ENC_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -