patch-2.4.0-test6 linux/fs/partitions/acorn.h

Next file: linux/fs/proc/array.c
Previous file: linux/fs/partitions/acorn.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test5/linux/fs/partitions/acorn.h linux/fs/partitions/acorn.h
@@ -13,20 +13,43 @@
 #define PARTITION_LINUX		9
 
 struct riscix_part {
-	unsigned long  start;
-	unsigned long  length;
-	unsigned long  one;
+	__u32  start;
+	__u32  length;
+	__u32  one;
 	char name[16];
 };
 
 struct riscix_record {
-	unsigned long  magic;
+	__u32  magic;
 #define RISCIX_MAGIC	(0x4a657320)
-	unsigned long  date;
+	__u32  date;
 	struct riscix_part part[8];
 };
 
-int
-acorn_partition(struct gendisk *hd, kdev_t dev,
-		unsigned long first_sector, int first_part_minor);
+#define LINUX_NATIVE_MAGIC 0xdeafa1de
+#define LINUX_SWAP_MAGIC   0xdeafab1e
+
+struct linux_part {
+	__u32 magic;
+	__u32 start_sect;
+	__u32 nr_sects;
+};
+
+struct ics_part {
+	__u32 start;
+	__s32 size;
+};
+
+struct ptec_partition {
+	__u32 unused1;
+	__u32 unused2;
+	__u32 start;
+	__u32 size;
+	__u32 unused5;
+	char type[8];
+};
+	
+
+int acorn_partition(struct gendisk *hd, kdev_t dev,
+		   unsigned long first_sect, int first_minor);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)