ssb_driver_mips.h 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef LINUX_SSB_MIPSCORE_H_
  2. #define LINUX_SSB_MIPSCORE_H_
  3. #ifdef CONFIG_SSB_DRIVER_MIPS
  4. struct ssb_device;
  5. struct ssb_serial_port {
  6. void *regs;
  7. unsigned long clockspeed;
  8. unsigned int irq;
  9. unsigned int baud_base;
  10. unsigned int reg_shift;
  11. };
  12. struct ssb_pflash {
  13. u8 buswidth;
  14. u32 window;
  15. u32 window_size;
  16. };
  17. struct ssb_mipscore {
  18. struct ssb_device *dev;
  19. int nr_serial_ports;
  20. struct ssb_serial_port serial_ports[4];
  21. struct ssb_pflash pflash;
  22. };
  23. extern void ssb_mipscore_init(struct ssb_mipscore *mcore);
  24. extern u32 ssb_cpu_clock(struct ssb_mipscore *mcore);
  25. extern unsigned int ssb_mips_irq(struct ssb_device *dev);
  26. #else /* CONFIG_SSB_DRIVER_MIPS */
  27. struct ssb_mipscore {
  28. };
  29. static inline
  30. void ssb_mipscore_init(struct ssb_mipscore *mcore)
  31. {
  32. }
  33. #endif /* CONFIG_SSB_DRIVER_MIPS */
  34. #endif /* LINUX_SSB_MIPSCORE_H_ */