Rev 4399 | Go to most recent revision | 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> |
||
| 3 | |||
| 4667 | trochtova | 4 | #include "intel_piix3.h" |
| 4399 | trochtova | 5 | #include "pci.h" |
| 6 | #include "pci_bus.h" |
||
| 4667 | trochtova | 7 | #include "isa.h" |
| 8 | #include "serial.h" |
||
| 4399 | trochtova | 9 | |
| 4667 | trochtova | 10 | |
| 4399 | trochtova | 11 | int main(int argc, char **argv) |
| 12 | { |
||
| 13 | printf("PCI bus driver\n"); |
||
| 14 | |||
| 15 | if (!pci_bus_init()) { |
||
| 16 | printf("PCI bus initialization failed.\n"); |
||
| 17 | return 1; |
||
| 18 | } |
||
| 19 | |||
| 4667 | trochtova | 20 | if (!isa_bus_init()) { |
| 21 | printf("ISA bus initialization failed.\n"); |
||
| 22 | return 1; |
||
| 23 | } |
||
| 4399 | trochtova | 24 | |
| 4667 | trochtova | 25 | |
| 26 | // pci-to-isa bridge device |
||
| 27 | intel_piix3_init(); |
||
| 28 | |||
| 29 | // TODO: write driver of some device (serial port) and initialize it here |
||
| 30 | serial_init(); |
||
| 31 | |||
| 4399 | trochtova | 32 | return 0; |
| 33 | } |