jsflash.h 928 B

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