equal
deleted
inserted
replaced
44 * Meilhaus ME-8100 board. However, the definitions and type |
44 * Meilhaus ME-8100 board. However, the definitions and type |
45 * declarations are kept in the headerfile called me8100.h. |
45 * declarations are kept in the headerfile called me8100.h. |
46 * |
46 * |
47 */ |
47 */ |
48 |
48 |
|
49 #define VERSION_C "$Id$\n" |
|
50 |
49 |
51 |
50 /* |
52 /* |
51 * User application could also include the kernel header files. But the |
53 * User application could also include the kernel header files. But the |
52 * real kernel functions are protected by #ifdef __KERNEL__. |
54 * real kernel functions are protected by #ifdef __KERNEL__. |
53 */ |
55 */ |
298 } else { |
300 } else { |
299 /* Finally successful. */ |
301 /* Finally successful. */ |
300 major = result; |
302 major = result; |
301 PDEBUG("init_module():Major = %d\n", major); |
303 PDEBUG("init_module():Major = %d\n", major); |
302 |
304 |
303 create_proc_read_entry("me8100", 0, NULL, me8100_read_proc, NULL); |
305 create_proc_read_entry("driver/me8100", 0, NULL, me8100_read_proc, NULL); |
304 } |
306 } |
305 } |
307 } |
306 else{ |
308 else{ |
307 printk(KERN_ERR"ME8100:init_module():No PCI-BIOS present !\n"); |
309 printk(KERN_ERR"ME8100:init_module():No PCI-BIOS present !\n"); |
308 return -ENODEV; |
310 return -ENODEV; |
2318 } |
2320 } |
2319 |
2321 |
2320 int me8100_read_proc(char *buffer, char **start, off_t offset, int count, int *eof, void *data) |
2322 int me8100_read_proc(char *buffer, char **start, off_t offset, int count, int *eof, void *data) |
2321 { |
2323 { |
2322 int len = 0; |
2324 int len = 0; |
2323 len += sprintf(buffer + len, "Version: $Id$\n"); |
2325 len += sprintf(buffer + len, VERSION_H); |
|
2326 len += sprintf(buffer + len, VERSION_C); |
2324 *eof = 1; |
2327 *eof = 1; |
2325 return len; |
2328 return len; |
2326 } |
2329 } |
2327 |
2330 |
2328 /* |
2331 /* |