lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since fcbd1be was fcbd1be, checked in by Lenka Trochtova <trochtova.lenka@…>, 16 years ago |
the name of the hierarchical driver was changed II
|
-
Property mode
set to
100644
|
File size:
684 bytes
|
Rev | Line | |
---|
[fcbd1be] | 1 | #include <stdio.h>
|
---|
| 2 | #include <stdlib.h>
|
---|
| 3 | #include <async.h>
|
---|
| 4 |
|
---|
| 5 | #include "intel_piix3.h"
|
---|
| 6 | #include "pic.h"
|
---|
| 7 | #include "pci.h"
|
---|
| 8 | #include "pci_bus.h"
|
---|
| 9 | #include "isa.h"
|
---|
| 10 | #include "serial.h"
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | int main(int argc, char **argv)
|
---|
| 15 | {
|
---|
| 16 | printf("PCI bus driver\n");
|
---|
| 17 |
|
---|
| 18 | if (!pic_init()) {
|
---|
| 19 | printf("PIC initialization failed.\n");
|
---|
| 20 | return 1;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | if (!pci_bus_init()) {
|
---|
| 24 | printf("PCI bus initialization failed.\n");
|
---|
| 25 | return 1;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | if (!isa_bus_init()) {
|
---|
| 29 | printf("ISA bus initialization failed.\n");
|
---|
| 30 | return 1;
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | // pci-to-isa bridge device
|
---|
| 34 | intel_piix3_init();
|
---|
| 35 |
|
---|
| 36 | // serial port driver
|
---|
| 37 | serial_init();
|
---|
| 38 |
|
---|
| 39 | printf("PCI + ISA + serial: Accepting connections\n");
|
---|
| 40 | async_manager();
|
---|
| 41 |
|
---|
| 42 | return 0;
|
---|
| 43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.