Subversion Repositories shark

Rev

Rev 601 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
601 giacomo 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Giacomo Guidi       <giacomo@gandalf.sssup.it>
10
 *
11
 *
12
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
13
 *
14
 * http://www.sssup.it
15
 * http://retis.sssup.it
16
 * http://shark.sssup.it
17
 */
18
 
19
/* Glue Layer for Linux PCI 2.6 Driver */
20
 
21
#include <kernel/kern.h>
22
 
23
extern int i2c_dev_init(void);
24
extern int i2c_init(void);
25
 
26
static int i2c_installed = FALSE;
27
 
28
/* Init the Linux I2C 2.6 Driver */
29
int I2C26_installed(void)
30
{
31
        return i2c_installed;
32
}
33
 
34
int I2C26_init() {
35
 
36
        if (i2c_installed == TRUE)
37
                return 0;
38
 
39
        i2c_init();
40
 
41
        i2c_dev_init();
42
 
43
        i2c_installed = TRUE;
44
 
45
        return 0;
46
 
47
}