18 #include <linux/sched.h>
21 #include <linux/random.h>
34 len +=
sprintf(&page[len],
"Timer: count, compare, tc, status\n");
35 len +=
sprintf(&page[len],
" 1: %11i, %8i, %1i, %s\n",
37 (configPR>>6)&0x1, ((configPR>>3)&0x1)?
"off":
"on");
38 len +=
sprintf(&page[len],
" 2: %11i, %8i, %1i, %s\n",
40 (configPR>>7)&0x1, ((configPR>>4)&0x1)?
"off":
"on");
41 len +=
sprintf(&page[len],
" 3: %11i, %8i, %1i, %s\n",
43 (configPR>>8)&0x1, ((configPR>>5)&0x1)?
"off":
"on");
49 static int pnx8550_registers_read(
char* page,
char** start,
off_t offset,
int count,
int* eof,
void* data)
75 static int pnx8550_proc_init(
void )
86 pnx8550_timers = create_proc_read_entry(
97 pnx8550_registers = create_proc_read_entry(
101 pnx8550_registers_read,
104 if (!pnx8550_registers)