VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
b24413180f560 fs/affs/amigaffs.h       (Greg Kroah-Hartman 2017-11-01 15:07:57 +0100   1) /* SPDX-License-Identifier: GPL-2.0 */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   2) #ifndef AMIGAFFS_H
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   3) #define AMIGAFFS_H
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   4) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   5) #include <linux/types.h>
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   6) #include <asm/byteorder.h>
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   7) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   8) #define FS_OFS		0x444F5300
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700   9) #define FS_FFS		0x444F5301
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  10) #define FS_INTLOFS	0x444F5302
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  11) #define FS_INTLFFS	0x444F5303
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  12) #define FS_DCOFS	0x444F5304
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  13) #define FS_DCFFS	0x444F5305
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  14) #define MUFS_FS		0x6d754653   /* 'muFS' */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  15) #define MUFS_OFS	0x6d754600   /* 'muF\0' */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  16) #define MUFS_FFS	0x6d754601   /* 'muF\1' */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  17) #define MUFS_INTLOFS	0x6d754602   /* 'muF\2' */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  18) #define MUFS_INTLFFS	0x6d754603   /* 'muF\3' */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  19) #define MUFS_DCOFS	0x6d754604   /* 'muF\4' */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  20) #define MUFS_DCFFS	0x6d754605   /* 'muF\5' */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  21) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  22) #define T_SHORT		2
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  23) #define T_LIST		16
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  24) #define T_DATA		8
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  25) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  26) #define ST_LINKFILE	-4
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  27) #define ST_FILE		-3
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  28) #define ST_ROOT		1
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  29) #define ST_USERDIR	2
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  30) #define ST_SOFTLINK	3
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  31) #define ST_LINKDIR	4
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  32) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  33) #define AFFS_ROOT_BMAPS		25
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  34) 
487b25bc4be9c fs/affs/amigaffs.h       (Deepa Dinamani     2019-03-21 14:05:12 -0700  35) /* Seconds since Amiga epoch of 1978/01/01 to UNIX */
487b25bc4be9c fs/affs/amigaffs.h       (Deepa Dinamani     2019-03-21 14:05:12 -0700  36) #define AFFS_EPOCH_DELTA ((8 * 365 + 2) * 86400LL)
487b25bc4be9c fs/affs/amigaffs.h       (Deepa Dinamani     2019-03-21 14:05:12 -0700  37) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  38) struct affs_date {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  39) 	__be32 days;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  40) 	__be32 mins;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  41) 	__be32 ticks;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  42) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  43) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  44) struct affs_short_date {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  45) 	__be16 days;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  46) 	__be16 mins;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  47) 	__be16 ticks;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  48) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  49) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  50) struct affs_root_head {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  51) 	__be32 ptype;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  52) 	__be32 spare1;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  53) 	__be32 spare2;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  54) 	__be32 hash_size;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  55) 	__be32 spare3;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  56) 	__be32 checksum;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  57) 	__be32 hashtable[1];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  58) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  59) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  60) struct affs_root_tail {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  61) 	__be32 bm_flag;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  62) 	__be32 bm_blk[AFFS_ROOT_BMAPS];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  63) 	__be32 bm_ext;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  64) 	struct affs_date root_change;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  65) 	u8 disk_name[32];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  66) 	__be32 spare1;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  67) 	__be32 spare2;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  68) 	struct affs_date disk_change;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  69) 	struct affs_date disk_create;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  70) 	__be32 spare3;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  71) 	__be32 spare4;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  72) 	__be32 dcache;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  73) 	__be32 stype;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  74) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  75) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  76) struct affs_head {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  77) 	__be32 ptype;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  78) 	__be32 key;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  79) 	__be32 block_count;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  80) 	__be32 spare1;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  81) 	__be32 first_data;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  82) 	__be32 checksum;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  83) 	__be32 table[1];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  84) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  85) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  86) struct affs_tail {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  87) 	__be32 spare1;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  88) 	__be16 uid;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  89) 	__be16 gid;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  90) 	__be32 protect;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  91) 	__be32 size;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  92) 	u8 comment[92];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  93) 	struct affs_date change;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  94) 	u8 name[32];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  95) 	__be32 spare2;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  96) 	__be32 original;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  97) 	__be32 link_chain;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  98) 	__be32 spare[5];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700  99) 	__be32 hash_chain;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 100) 	__be32 parent;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 101) 	__be32 extension;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 102) 	__be32 stype;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 103) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 104) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 105) struct slink_front
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 106) {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 107) 	__be32 ptype;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 108) 	__be32 key;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 109) 	__be32 spare1[3];
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 110) 	__be32 checksum;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 111) 	u8 symname[1];	/* depends on block size */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 112) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 113) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 114) struct affs_data_head
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 115) {
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 116) 	__be32 ptype;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 117) 	__be32 key;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 118) 	__be32 sequence;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 119) 	__be32 size;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 120) 	__be32 next;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 121) 	__be32 checksum;
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 122) 	u8 data[1];	/* depends on block size */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 123) };
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 124) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 125) /* Permission bits */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 126) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 127) #define FIBF_OTR_READ		0x8000
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 128) #define FIBF_OTR_WRITE		0x4000
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 129) #define FIBF_OTR_EXECUTE	0x2000
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 130) #define FIBF_OTR_DELETE		0x1000
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 131) #define FIBF_GRP_READ		0x0800
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 132) #define FIBF_GRP_WRITE		0x0400
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 133) #define FIBF_GRP_EXECUTE	0x0200
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 134) #define FIBF_GRP_DELETE		0x0100
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 135) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 136) #define FIBF_HIDDEN		0x0080
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 137) #define FIBF_SCRIPT		0x0040
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 138) #define FIBF_PURE		0x0020		/* no use under linux */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 139) #define FIBF_ARCHIVED		0x0010		/* never set, always cleared on write */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 140) #define FIBF_NOREAD		0x0008		/* 0 means allowed */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 141) #define FIBF_NOWRITE		0x0004		/* 0 means allowed */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 142) #define FIBF_NOEXECUTE		0x0002		/* 0 means allowed, ignored under linux */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 143) #define FIBF_NODELETE		0x0001		/* 0 means allowed */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 144) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 145) #define FIBF_OWNER		0x000F		/* Bits pertaining to owner */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 146) #define FIBF_MASK		0xEE0E		/* Bits modified by Linux */
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 147) 
^1da177e4c3f4 include/linux/amigaffs.h (Linus Torvalds     2005-04-16 15:20:36 -0700 148) #endif