Go to most recent revision | Details | 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 | |||
19 | /* Glue Layer for Linux PCI 2.6 Driver */ |
||
20 | |||
21 | #include <kernel/kern.h> |
||
22 | |||
23 | extern int pci_direct_init(void); |
||
24 | extern int pcibios_init(void); |
||
25 | extern int pcibios_irq_init(void); |
||
26 | extern int pci_driver_init(void); |
||
27 | extern int pci_legacy_init(void); |
||
28 | extern int pci_init(void); |
||
29 | |||
30 | static int pci_installed = FALSE; |
||
31 | |||
32 | /* Init the Linux PCI 2.6 Driver */ |
||
33 | int PCI26_installed(void) |
||
34 | { |
||
35 | return pci_installed; |
||
36 | } |
||
37 | |||
38 | int PCI26_init() { |
||
39 | |||
40 | if (pci_installed == TRUE) |
||
41 | return 0; |
||
42 | |||
43 | pci_direct_init(); |
||
44 | |||
45 | pcibios_init(); |
||
46 | |||
47 | pci_driver_init(); |
||
48 | |||
49 | pci_legacy_init(); |
||
50 | |||
51 | pcibios_irq_init(); |
||
52 | |||
53 | pci_init(); |
||
54 | |||
55 | return 0; |
||
56 | |||
57 | } |