Subversion Repositories shark

Rev

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

Rev Author Line No. Line
587 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
 
1063 tullio 19
/*
20
 * This program is free software; you can redistribute it and/or modify
21
 * it under the terms of the GNU General Public License as published by
22
 * the Free Software Foundation; either version 2 of the License, or
23
 * (at your option) any later version.
24
 *
25
 * This program is distributed in the hope that it will be useful,
26
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
 * GNU General Public License for more details.
29
 *
30
 * You should have received a copy of the GNU General Public License
31
 * along with this program; if not, write to the Free Software
32
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
33
 *
34
 */
35
 
587 giacomo 36
/* Glue Layer for Linux PCI 2.6 Driver */
37
 
38
#include <kernel/kern.h>
39
 
40
extern int pci_direct_init(void);
41
extern int pcibios_init(void);
42
extern int pcibios_irq_init(void);
43
extern int pci_driver_init(void);
44
extern int pci_legacy_init(void);
45
extern int pci_init(void);
46
 
47
static int pci_installed = FALSE;
48
 
49
/* Init the Linux PCI 2.6 Driver */
50
int PCI26_installed(void)
51
{
52
        return pci_installed;
53
}
54
 
55
int PCI26_init() {
56
 
57
        if (pci_installed == TRUE)
58
                return 0;
59
 
60
        pci_direct_init();
61
 
62
        pcibios_init();
63
 
64
        pci_driver_init();
65
 
66
        pci_legacy_init();
67
 
68
        pcibios_irq_init();
69
 
70
        pci_init();
71
 
72
        return 0;
73
 
74
}