22 #include <linux/module.h>
24 #include <linux/kernel.h>
26 #include <linux/slab.h>
29 #include <asm/uaccess.h>
32 #define EISA_EEPROM_MINOR 241
41 offset += file->
f_pos;
51 char __user *
buf,
size_t count, loff_t *ppos )
63 for (i = 0; i <
count; i++)
64 tmp[i] =
readb(eisa_eeprom_addr+(*ppos)++);
77 static int eisa_eeprom_open(
struct inode *
inode,
struct file *file)
85 static int eisa_eeprom_release(
struct inode *inode,
struct file *file)
95 .llseek = eisa_eeprom_llseek,
96 .read = eisa_eeprom_read,
97 .open = eisa_eeprom_open,
98 .release = eisa_eeprom_release,
111 if (!eisa_eeprom_addr)