diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-10 11:12:03 +0900 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-10 11:12:03 +0900 |
commit | 23d5385f382a7c7d8b6bf19b0c2cfb3acbb12d31 (patch) | |
tree | b0e2fbbdd8a9b86e0074affd58e35bea9c22e175 /arch/sparc/include/uapi/asm/jsflash.h | |
parent | b7e97d22113bcaafff93774e3085f5b567eaba9c (diff) | |
parent | 9836d3458cde82626f2828ca6bd44c4a02b56e63 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Pull sparc update from David Miller:
"This is just the UAPI commits for sparc via David Howells."
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
UAPI: (Scripted) Disintegrate arch/sparc/include/asm
Diffstat (limited to 'arch/sparc/include/uapi/asm/jsflash.h')
-rw-r--r-- | arch/sparc/include/uapi/asm/jsflash.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/sparc/include/uapi/asm/jsflash.h b/arch/sparc/include/uapi/asm/jsflash.h new file mode 100644 index 000000000000..0717d9e39d2d --- /dev/null +++ b/arch/sparc/include/uapi/asm/jsflash.h @@ -0,0 +1,39 @@ +/* + * jsflash.h: OS Flash SIMM support for JavaStations. + * + * Copyright (C) 1999 Pete Zaitcev + */ + +#ifndef _SPARC_JSFLASH_H +#define _SPARC_JSFLASH_H + +#ifndef _SPARC_TYPES_H +#include <linux/types.h> +#endif + +/* + * Semantics of the offset is a full address. + * Hardcode it or get it from probe ioctl. + * + * We use full bus address, so that we would be + * automatically compatible with possible future systems. + */ + +#define JSFLASH_IDENT (('F'<<8)|54) +struct jsflash_ident_arg { + __u64 off; /* 0x20000000 is included */ + __u32 size; + char name[32]; /* With trailing zero */ +}; + +#define JSFLASH_ERASE (('F'<<8)|55) +/* Put 0 as argument, may be flags or sector number... */ + +#define JSFLASH_PROGRAM (('F'<<8)|56) +struct jsflash_program_arg { + __u64 data; /* char* for sparc and sparc64 */ + __u64 off; + __u32 size; +}; + +#endif /* _SPARC_JSFLASH_H */ |