| * Disc Record at disc address 0xc00 |
| #define ADFS_DISCRECORD (0xc00) |
| #define ADFS_DR_OFFSET (0x1c0) |
| #define ADFS_DR_SIZE_BITS (ADFS_DR_SIZE << 3) |
| #define ADFS_SUPER_MAGIC 0xadf5 |
| #include <linux/adfs_fs_i.h> |
| #include <linux/adfs_fs_sb.h> |
| * Calculate the boot block checksum on an ADFS drive. Note that this will |
| * appear to be correct if the sector contains all zeros, so also check that |
| * the disk size is non-zero!!! |
| static inline int adfs_checkbblk(unsigned char *ptr) |
| unsigned char *p = ptr + 511; |
| result = (result & 0xff) + (result >> 8); |
| return (result & 0xff) != ptr[511]; |
| static inline struct adfs_sb_info *ADFS_SB(struct super_block *sb) |
| static inline struct adfs_inode_info *ADFS_I(struct inode *inode) |
| return container_of(inode, struct adfs_inode_info, vfs_inode); |