Rev 4667 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4399 | trochtova | 1 | #include <stdio.h> |
2 | #include <stdlib.h> |
||
4677 | trochtova | 3 | #include <async.h> |
4399 | trochtova | 4 | |
4667 | trochtova | 5 | #include "intel_piix3.h" |
4399 | trochtova | 6 | #include "pci.h" |
7 | #include "pci_bus.h" |
||
4667 | trochtova | 8 | #include "isa.h" |
9 | #include "serial.h" |
||
4399 | trochtova | 10 | |
4667 | trochtova | 11 | |
4399 | trochtova | 12 | int main(int argc, char **argv) |
13 | { |
||
14 | printf("PCI bus driver\n"); |
||
15 | |||
16 | if (!pci_bus_init()) { |
||
17 | printf("PCI bus initialization failed.\n"); |
||
18 | return 1; |
||
19 | } |
||
20 | |||
4667 | trochtova | 21 | if (!isa_bus_init()) { |
22 | printf("ISA bus initialization failed.\n"); |
||
23 | return 1; |
||
24 | } |
||
4399 | trochtova | 25 | |
4667 | trochtova | 26 | |
27 | // pci-to-isa bridge device |
||
28 | intel_piix3_init(); |
||
29 | |||
4677 | trochtova | 30 | // serial port driver |
4667 | trochtova | 31 | serial_init(); |
32 | |||
4677 | trochtova | 33 | printf("PCI + ISA + serial: Accepting connections\n"); |
34 | async_manager(); |
||
35 | |||
4399 | trochtova | 36 | return 0; |
37 | } |