1 /*!**************************************************************************** 2 @File s3c_bc.h 3 4 @Title s3c_bc kernel driver parameters 5 6 @Author Imagination Technologies 7 Samsung Electronics Co. LTD 8 9 @Date 03/03/2010 10 11 @Copyright Licensed under the Apache License, Version 2.0 (the "License"); 12 you may not use this file except in compliance with the License. 13 You may obtain a copy of the License at 14 15 http://www.apache.org/licenses/LICENSE-2.0 16 17 Unless required by applicable law or agreed to in writing, software 18 distributed under the License is distributed on an "AS IS" BASIS, 19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 See the License for the specific language governing permissions and 21 limitations under the License. 22 23 @Platform Generic 24 25 @Description s3c_bc kernel driver parameters 26 27 @DoxygenVer 28 29 ******************************************************************************/ 30 31 /****************************************************************************** 32 Modifications :- 33 $Log: s3c_bc.h $ 34 ******************************************************************************/ 35 #ifndef __S3C_BC_H__ 36 #define __S3C_BC_H__ 37 38 #include <linux/ioctl.h> 39 40 #define S3C_BC_DEVICE_NAME "s3c_bc" 41 42 #define S3C_BC_DEVICE_ID 0 43 #define S3C_BC_DEVICE_BUFFER_COUNT 4 /* TODO: Modify this accordingly. */ 44 45 #define S3C_BC_DEVICE_PHYS_PAGE_SIZE 0x1000 /* 4KB */ 46 47 typedef struct S3C_BC_ioctl_package_TAG 48 { 49 int inputparam; 50 int outputparam; 51 } S3C_BC_ioctl_package, *PS3C_BC_ioctl_package; 52 53 /*!< Nov 2006: according to ioctl-number.txt 'g' wasn't in use. */ 54 #define S3C_BC_IOC_GID 'g' 55 56 #define S3C_BC_IOWR(INDEX) _IOWR(S3C_BC_IOC_GID, INDEX, S3C_BC_ioctl_package) 57 58 #define S3C_BC_ioctl_get_physical_base_address S3C_BC_IOWR(0) 59 60 #endif /* __S3C_BC__H__ */ 61 /****************************************************************************** 62 End of file (s3c_bc.h) 63 ******************************************************************************/ 64