device.h 604 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Arch specific extensions to struct device
  3. *
  4. * This file is released under the GPLv2
  5. */
  6. struct dev_archdata {
  7. };
  8. struct platform_device;
  9. /* allocate contiguous memory chunk and fill in struct resource */
  10. int platform_resource_setup_memory(struct platform_device *pdev,
  11. char *name, unsigned long memsize);
  12. void plat_early_device_setup(void);
  13. #define PDEV_ARCHDATA_FLAG_INIT 0
  14. #define PDEV_ARCHDATA_FLAG_IDLE 1
  15. #define PDEV_ARCHDATA_FLAG_SUSP 2
  16. struct pdev_archdata {
  17. int hwblk_id;
  18. #ifdef CONFIG_PM_RUNTIME
  19. unsigned long flags;
  20. struct list_head entry;
  21. struct mutex mutex;
  22. #endif
  23. };