The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/fs/partitions/atari.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  *  fs/partitions/atari.h
    3  *  Moved by Russell King from:
    4  *
    5  * linux/include/linux/atari_rootsec.h
    6  * definitions for Atari Rootsector layout
    7  * by Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de)
    8  *
    9  * modified for ICD/Supra partitioning scheme restricted to at most 12
   10  * partitions
   11  * by Guenther Kelleter (guenther@pool.informatik.rwth-aachen.de)
   12  */
   13 
   14 struct partition_info
   15 {
   16   u8 flg;                       /* bit 0: active; bit 7: bootable */
   17   char id[3];                   /* "GEM", "BGM", "XGM", or other */
   18   u32 st;                       /* start of partition */
   19   u32 siz;                      /* length of partition */
   20 };
   21 
   22 struct rootsector
   23 {
   24   char unused[0x156];           /* room for boot code */
   25   struct partition_info icdpart[8];     /* info for ICD-partitions 5..12 */
   26   char unused2[0xc];
   27   u32 hd_siz;                   /* size of disk in blocks */
   28   struct partition_info part[4];
   29   u32 bsl_st;                   /* start of bad sector list */
   30   u32 bsl_cnt;                  /* length of bad sector list */
   31   u16 checksum;                 /* checksum for bootable disks */
   32 } __attribute__((__packed__));
   33 
   34 int atari_partition (struct gendisk *hd, struct block_device *bdev,
   35                      unsigned long first_sector, int first_part_minor);
   36 

Cache object: c579528e463658156a59a9044fb9a3af


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.