Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]

Diff markup

Differences between /linux/fs/partitions/mac.h (Version 2.6.11.8) and /linux/fs/partitions/mac.h (Version 2.6.25)


  1 /*                                                  1 /*
  2  *  fs/partitions/mac.h                             2  *  fs/partitions/mac.h
  3  */                                                 3  */
  4                                                     4 
  5 #define MAC_PARTITION_MAGIC     0x504d              5 #define MAC_PARTITION_MAGIC     0x504d
  6                                                     6 
  7 /* type field value for A/UX or other Unix par      7 /* type field value for A/UX or other Unix partitions */
  8 #define APPLE_AUX_TYPE  "Apple_UNIX_SVR2"           8 #define APPLE_AUX_TYPE  "Apple_UNIX_SVR2"
  9                                                     9 
 10 struct mac_partition {                             10 struct mac_partition {
 11         __be16  signature;      /* expected to     11         __be16  signature;      /* expected to be MAC_PARTITION_MAGIC */
 12         __be16  res1;                              12         __be16  res1;
 13         __be32  map_count;      /* # blocks in     13         __be32  map_count;      /* # blocks in partition map */
 14         __be32  start_block;    /* absolute st     14         __be32  start_block;    /* absolute starting block # of partition */
 15         __be32  block_count;    /* number of b     15         __be32  block_count;    /* number of blocks in partition */
 16         char    name[32];       /* partition n     16         char    name[32];       /* partition name */
 17         char    type[32];       /* string type     17         char    type[32];       /* string type description */
 18         __be32  data_start;     /* rel block #     18         __be32  data_start;     /* rel block # of first data block */
 19         __be32  data_count;     /* number of d     19         __be32  data_count;     /* number of data blocks */
 20         __be32  status;         /* partition s     20         __be32  status;         /* partition status bits */
 21         __be32  boot_start;                        21         __be32  boot_start;
 22         __be32  boot_size;                         22         __be32  boot_size;
 23         __be32  boot_load;                         23         __be32  boot_load;
 24         __be32  boot_load2;                        24         __be32  boot_load2;
 25         __be32  boot_entry;                        25         __be32  boot_entry;
 26         __be32  boot_entry2;                       26         __be32  boot_entry2;
 27         __be32  boot_cksum;                        27         __be32  boot_cksum;
 28         char    processor[16];  /* identifies      28         char    processor[16];  /* identifies ISA of boot */
 29         /* there is more stuff after this that     29         /* there is more stuff after this that we don't need */
 30 };                                                 30 };
 31                                                    31 
 32 #define MAC_STATUS_BOOTABLE     8       /* par     32 #define MAC_STATUS_BOOTABLE     8       /* partition is bootable */
 33                                                    33 
 34 #define MAC_DRIVER_MAGIC        0x4552             34 #define MAC_DRIVER_MAGIC        0x4552
 35                                                    35 
 36 /* Driver descriptor structure, in block 0 */      36 /* Driver descriptor structure, in block 0 */
 37 struct mac_driver_desc {                           37 struct mac_driver_desc {
 38         __be16  signature;      /* expected to     38         __be16  signature;      /* expected to be MAC_DRIVER_MAGIC */
 39         __be16  block_size;                        39         __be16  block_size;
 40         __be32  block_count;                       40         __be32  block_count;
 41     /* ... more stuff */                           41     /* ... more stuff */
 42 };                                                 42 };
 43                                                    43 
 44 int mac_partition(struct parsed_partitions *st     44 int mac_partition(struct parsed_partitions *state, struct block_device *bdev);
 45                                                    45 
  This page was automatically generated by the LXR engine.