2 #include <linux/slab.h>
4 #define BIG_BUFFER_SIZE (1024)
25 size_t count, loff_t *ppos)
30 static ssize_t sysconf_read_file(
struct file *
file,
char __user *userbuf,
31 size_t count, loff_t *ppos)
33 char *
s = big_buffer;
42 big_buffer, s-big_buffer);
46 static ssize_t gsctl_read_file(
struct file *file,
char __user *userbuf,
47 size_t count, loff_t *ppos)
49 char * s = big_buffer;
71 big_buffer, s-big_buffer);
74 static ssize_t display_read_file(
struct file *file,
char __user *userbuf,
75 size_t count, loff_t *ppos)
77 char * s = big_buffer;
111 big_buffer, s-big_buffer);
114 static ssize_t clock_read_file(
struct file *file,
char __user *userbuf,
115 size_t count, loff_t *ppos)
117 char * s = big_buffer;
134 big_buffer, s-big_buffer);
137 static ssize_t sdram_read_file(
struct file *file,
char __user *userbuf,
138 size_t count, loff_t *ppos)
140 char * s = big_buffer;
156 big_buffer, s-big_buffer);
159 static ssize_t misc_read_file(
struct file *file,
char __user *userbuf,
160 size_t count, loff_t *ppos)
162 char * s = big_buffer;
170 big_buffer, s-big_buffer);
175 .read = sysconf_read_file,
176 .write = write_file_dummy,
177 .open = open_file_generic,
182 .read = clock_read_file,
183 .write = write_file_dummy,
184 .open = open_file_generic,
189 .read = display_read_file,
190 .write = write_file_dummy,
191 .open = open_file_generic,
196 .read = gsctl_read_file,
197 .write = write_file_dummy,
198 .open = open_file_generic,
203 .read = sdram_read_file,
204 .write = write_file_dummy,
205 .open = open_file_generic,
210 .read = misc_read_file,
211 .write = write_file_dummy,
212 .open = open_file_generic,
222 mfbi->debugfs_data =
dbg;