softing_platform.h 871 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include <linux/platform_device.h>
  2. #ifndef _SOFTING_DEVICE_H_
  3. #define _SOFTING_DEVICE_H_
  4. /* softing firmware directory prefix */
  5. #define fw_dir "softing-4.6/"
  6. struct softing_platform_data {
  7. unsigned int manf;
  8. unsigned int prod;
  9. /*
  10. * generation
  11. * 1st with NEC or SJA1000
  12. * 8bit, exclusive interrupt, ...
  13. * 2nd only SJA1000
  14. * 16bit, shared interrupt
  15. */
  16. int generation;
  17. int nbus; /* # busses on device */
  18. unsigned int freq; /* operating frequency in Hz */
  19. unsigned int max_brp;
  20. unsigned int max_sjw;
  21. unsigned long dpram_size;
  22. const char *name;
  23. struct {
  24. unsigned long offs;
  25. unsigned long addr;
  26. const char *fw;
  27. } boot, load, app;
  28. /*
  29. * reset() function
  30. * bring pdev in or out of reset, depending on value
  31. */
  32. int (*reset)(struct platform_device *pdev, int value);
  33. int (*enable_irq)(struct platform_device *pdev, int value);
  34. };
  35. #endif