Subversion Repositories HelenOS

Rev

Rev 4667 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <async.h>
  4.  
  5. #include "intel_piix3.h"
  6. #include "pci.h"
  7. #include "pci_bus.h"
  8. #include "isa.h"
  9. #include "serial.h"
  10.  
  11.  
  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.    
  21.     if (!isa_bus_init()) {
  22.         printf("ISA bus initialization failed.\n");
  23.         return 1;
  24.     }
  25.    
  26.    
  27.     // pci-to-isa bridge device
  28.     intel_piix3_init();
  29.    
  30.     // serial port driver
  31.     serial_init();
  32.    
  33.     printf("PCI + ISA + serial: Accepting connections\n");
  34.     async_manager();
  35.    
  36.     return 0;
  37. }
  38.