iodevs.conf 941 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- perl -*-
  2. #
  3. # I/O device configuration
  4. #
  5. # Common constants
  6. our %consts = (
  7. '_PC_RESET' => 0x10,
  8. '_PC_IRQ' => 0x20,
  9. 'SRAM_ADDR' => 0,
  10. 'SRAM_BITS' => 15,
  11. 'SDRAM_ADDR' => 0x40000000,
  12. 'SDRAM_BITS' => 25
  13. );
  14. # I/O address definitions
  15. our $xdev_addr_bits = 2;
  16. our $xdev_addr_shift = 28;
  17. our $iodev_addr_bits = 4;
  18. our $iodev_addr_shift = 7;
  19. # Special IRQs (CPU or non-device)
  20. our @sysirqs = ('timer', 'ebreak', 'buserr');
  21. # Define -irq to a string of 'e' (edge) or 'l' (level)
  22. # for a corresponding number of IRQs.
  23. our @iodevs = (
  24. { -name => 'sys' },
  25. { -name => 'sysclock', -irq => 'e' },
  26. { -name => 'console', -irq => 'l' },
  27. { -name => 'romcopy', -irq => 'l' },
  28. { -name => 'sdcard', -irq => 'l' },
  29. { -name => 'i2c', -irq => 'l' },
  30. { -name => 'esp', -irq => 'l' },
  31. { -name => 'abc', -irq => 'l' },
  32. { -name => 'abcmemmap', -xdev => 1 },
  33. );