14 #include <linux/module.h>
16 #include <linux/kernel.h>
27 static char *main_revision =
"$Revision: 1.13.6.4 $";
30 "Eicon DIVA - DIDD table (http://www.melware.net)";
31 static char *DRIVERLNAME =
"divadidd";
39 #define DBG_MINIMUM (DL_LOG + DL_FTL + DL_ERR)
40 #define DBG_DEFAULT (DBG_MINIMUM + DL_XLOG + DL_REG)
53 static char *getrev(
const char *
revision)
57 if ((p =
strchr(revision,
':'))) {
66 static int divadidd_proc_show(
struct seq_file *
m,
void *
v)
70 strcpy(tmprev, main_revision);
76 seq_printf(m,
"revision : %s\n", getrev(tmprev));
88 .open = divadidd_proc_open,
94 static int __init create_proc(
void)
99 proc_didd = proc_create(DRIVERLNAME,
S_IRUGO, proc_net_eicon,
100 &divadidd_proc_fops);
106 static void remove_proc(
void)
112 static int __init divadidd_init(
void)
119 strcpy(tmprev, main_revision);
120 printk(
"%s Build:%s(%s)\n", getrev(tmprev),
123 if (!create_proc()) {
144 static void __exit divadidd_exit(
void)