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

📄 hmp4d.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 2002 HANTRO PRODUCTS OY                     **                             ALL RIGHTS RESERVED                              **                                                                              **           The entire notice above must be reproduced on all copies.          **                                                                              ***********************************************************************************   Project  : Penguin**   Abstract : Decoder Driver Module Interface***********************************************************************************   Version control information, please leave untouched.**   $RCSfile$*   $Date: 2006-03-15 11:58:36 +0800 (Wed, 15 Mar 2006) $*   $Revision: 2 $********************************************************************************/#ifndef _HMP4D_H_#define _HMP4D_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 HMP4D_DEBUG#  ifdef __KERNEL__    /* This one if debugging is on, and kernel space */#    define PDEBUG(fmt, args...) printk( KERN_INFO "hmp4d: " __FILE__ "%d " fmt, __LINE__ , ## args)#  else    /* This one for user space */#    define PDEBUG(fmt, args...) fprintf(stderr, fmt, ## args)#  endif#else#  define PDEBUG(fmt, args...)  /* not debugging: nothing */#endif/* * Ioctl definitions *//* Use 'k' as magic number */#define HMP4D_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 HMP4D_IOCGBUFBUSADDR    _IOR(HMP4D_IOC_MAGIC,  1, unsigned long *)#define HMP4D_IOCGBUFSIZE       _IOR(HMP4D_IOC_MAGIC,  2, unsigned int *)#define HMP4D_IOCGHWOFFSET      _IOR(HMP4D_IOC_MAGIC,  3, unsigned long *)#define HMP4D_IOCGHWIOSIZE      _IOR(HMP4D_IOC_MAGIC,  4, unsigned int *)#define HMP4D_IOCXVIRT2BUS      _IOWR(HMP4D_IOC_MAGIC,  5, unsigned long *)/* ... more to come */#define HMP4D_IOCHARDRESET _IO(HMP4D_IOC_MAGIC, 15) /* debugging tool */#define HMP4D_IOC_MAXNR 15#endif /* _HMP4D_H_ */

⌨️ 快捷键说明

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