Subversion Repositories HelenOS

Rev

Rev 4399 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #include "intel_piix3.h"
  5. #include "pci.h"
  6. #include "pci_bus.h"
  7. #include "isa.h"
  8. #include "serial.h"
  9.  
  10.  
  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.    
  20.     if (!isa_bus_init()) {
  21.         printf("ISA bus initialization failed.\n");
  22.         return 1;
  23.     }
  24.    
  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.    
  32.     return 0;
  33. }
  34.