jsflash.h 865 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * jsflash.h: OS Flash SIMM support for JavaStations.
  3. *
  4. * Copyright (C) 1999 Pete Zaitcev
  5. */
  6. #ifndef _SPARC_JSFLASH_H
  7. #define _SPARC_JSFLASH_H
  8. #ifndef _SPARC_TYPES_H
  9. #include <linux/types.h>
  10. #endif
  11. /*
  12. * Semantics of the offset is a full address.
  13. * Hardcode it or get it from probe ioctl.
  14. *
  15. * We use full bus address, so that we would be
  16. * automatically compatible with possible future systems.
  17. */
  18. #define JSFLASH_IDENT (('F'<<8)|54)
  19. struct jsflash_ident_arg {
  20. __u64 off; /* 0x20000000 is included */
  21. __u32 size;
  22. char name[32]; /* With trailing zero */
  23. };
  24. #define JSFLASH_ERASE (('F'<<8)|55)
  25. /* Put 0 as argument, may be flags or sector number... */
  26. #define JSFLASH_PROGRAM (('F'<<8)|56)
  27. struct jsflash_program_arg {
  28. __u64 data; /* char* for sparc and sparc64 */
  29. __u64 off;
  30. __u32 size;
  31. };
  32. #endif /* _SPARC_JSFLASH_H */