latch-addr-flash.h 716 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Interface for NOR flash driver whose high address lines are latched
  3. *
  4. * Copyright © 2008 MontaVista Software, Inc. <source@mvista.com>
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. #ifndef __LATCH_ADDR_FLASH__
  11. #define __LATCH_ADDR_FLASH__
  12. struct map_info;
  13. struct mtd_partition;
  14. struct latch_addr_flash_data {
  15. unsigned int width;
  16. unsigned int size;
  17. int (*init)(void *data, int cs);
  18. void (*done)(void *data);
  19. void (*set_window)(unsigned long offset, void *data);
  20. void *data;
  21. unsigned int nr_parts;
  22. struct mtd_partition *parts;
  23. };
  24. #endif