mg_disk.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * include/linux/mg_disk.c
  3. *
  4. * Private data for mflash platform driver
  5. *
  6. * (c) 2008 mGine Co.,LTD
  7. * (c) 2008 unsik Kim <donari75@gmail.com>
  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. #ifndef __MG_DISK_H__
  14. #define __MG_DISK_H__
  15. /* name for platform device */
  16. #define MG_DEV_NAME "mg_disk"
  17. /* names of GPIO resource */
  18. #define MG_RST_PIN "mg_rst"
  19. /* except MG_BOOT_DEV, reset-out pin should be assigned */
  20. #define MG_RSTOUT_PIN "mg_rstout"
  21. /* device attribution */
  22. /* use mflash as boot device */
  23. #define MG_BOOT_DEV (1 << 0)
  24. /* use mflash as storage device */
  25. #define MG_STORAGE_DEV (1 << 1)
  26. /* same as MG_STORAGE_DEV, but bootloader already done reset sequence */
  27. #define MG_STORAGE_DEV_SKIP_RST (1 << 2)
  28. /* private driver data */
  29. struct mg_drv_data {
  30. /* disk resource */
  31. u32 use_polling;
  32. /* device attribution */
  33. u32 dev_attr;
  34. /* internally used */
  35. void *host;
  36. };
  37. #endif