162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci *  fs/partitions/atari.h
462306a36Sopenharmony_ci *  Moved by Russell King from:
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * linux/include/linux/atari_rootsec.h
762306a36Sopenharmony_ci * definitions for Atari Rootsector layout
862306a36Sopenharmony_ci * by Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de)
962306a36Sopenharmony_ci *
1062306a36Sopenharmony_ci * modified for ICD/Supra partitioning scheme restricted to at most 12
1162306a36Sopenharmony_ci * partitions
1262306a36Sopenharmony_ci * by Guenther Kelleter (guenther@pool.informatik.rwth-aachen.de)
1362306a36Sopenharmony_ci */
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#include <linux/compiler.h>
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_cistruct partition_info
1862306a36Sopenharmony_ci{
1962306a36Sopenharmony_ci  u8 flg;			/* bit 0: active; bit 7: bootable */
2062306a36Sopenharmony_ci  char id[3];			/* "GEM", "BGM", "XGM", or other */
2162306a36Sopenharmony_ci  __be32 st;			/* start of partition */
2262306a36Sopenharmony_ci  __be32 siz;			/* length of partition */
2362306a36Sopenharmony_ci};
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_cistruct rootsector
2662306a36Sopenharmony_ci{
2762306a36Sopenharmony_ci  char unused[0x156];		/* room for boot code */
2862306a36Sopenharmony_ci  struct partition_info icdpart[8];	/* info for ICD-partitions 5..12 */
2962306a36Sopenharmony_ci  char unused2[0xc];
3062306a36Sopenharmony_ci  u32 hd_siz;			/* size of disk in blocks */
3162306a36Sopenharmony_ci  struct partition_info part[4];
3262306a36Sopenharmony_ci  u32 bsl_st;			/* start of bad sector list */
3362306a36Sopenharmony_ci  u32 bsl_cnt;			/* length of bad sector list */
3462306a36Sopenharmony_ci  u16 checksum;			/* checksum for bootable disks */
3562306a36Sopenharmony_ci} __packed;
3662306a36Sopenharmony_ci
37