/************************************************************************/ /* */ /* This is the common header file for the CMEM_RCC driver & library */ /* */ /* 12. Dec. 01 MAJO created */ /* */ /*******C 2001 - The software with that certain something****************/ #ifndef _CMEM_RCC_IOCTL_H #define _CMEM_RCC_IOCTL_H #include "cmem_rcc_common.h" #ifdef CMEM_RCC_KERNEL_DEBUG #define kdebug(x) {if (debug) printk x;} #else #define kdebug(x) #endif // Constants #define MAX_BUFFS 2000 // Max. number of buffers for all processes #define TEXT_SIZE 3000 // Types typedef struct { unsigned int paddr; unsigned int kaddr; unsigned int size; int pid; unsigned int order; char name[40]; } buffer_t; typedef struct { unsigned int paddr; unsigned int kaddr; unsigned int size; int pid; char name[40]; } bpa_buffer_t; typedef struct { unsigned int gfp[MAX_BUFFS]; unsigned int bpa[MAX_BUFFS]; } private_stuff; /*************/ /*ioctl codes*/ /*************/ enum { CMEM_RCC_GET=1, CMEM_RCC_FREE, CMEM_RCC_BPA_GET, CMEM_RCC_BPA_FREE, DUMP }; #endif