2
0

iodevs.conf 675 B

12345678910111213141516171819202122232425
  1. # -*- perl -*-
  2. #
  3. # I/O device configuration
  4. #
  5. our $xdev_addr_bits = 2;
  6. our $xdev_addr_shift = 28;
  7. our $iodev_addr_bits = 4;
  8. our $iodev_addr_shift = 7;
  9. # Special IRQs (CPU or non-device)
  10. our @sysirqs = ('timer', 'ebreak', 'buserr');
  11. # Define -irq to a string of 'e' (edge) or 'l' (level)
  12. # for a corresponding number of IRQs.
  13. our @iodevs = (
  14. { -name => 'sys' },
  15. { -name => 'sysclock', -irq => 'e' },
  16. { -name => 'console', -irq => 'l' },
  17. { -name => 'sdcard', -irq => 'l' },
  18. { -name => 'i2c', -irq => 'e' },
  19. { -name => 'esp', -irq => 'l' },
  20. { -name => 'abc', -irq => 'e' },
  21. { -name => 'abcmemmap', -xdev => 1 },
  22. );