plat-ram.h 817 B

12345678910111213141516171819202122232425262728293031323334
  1. /* linux/include/linux/mtd/plat-ram.h
  2. *
  3. * (c) 2004 Simtec Electronics
  4. * http://www.simtec.co.uk/products/SWLINUX/
  5. * Ben Dooks <ben@simtec.co.uk>
  6. *
  7. * Generic platform device based RAM map
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. */
  14. #ifndef __LINUX_MTD_PLATRAM_H
  15. #define __LINUX_MTD_PLATRAM_H __FILE__
  16. #define PLATRAM_RO (0)
  17. #define PLATRAM_RW (1)
  18. struct platdata_mtd_ram {
  19. const char *mapname;
  20. const char * const *map_probes;
  21. const char * const *probes;
  22. struct mtd_partition *partitions;
  23. int nr_partitions;
  24. int bankwidth;
  25. /* control callbacks */
  26. void (*set_rw)(struct device *dev, int to);
  27. };
  28. #endif /* __LINUX_MTD_PLATRAM_H */