BSD 4_4 release
[unix-history] / usr / src / sys / tahoe / stand / vdformat / config.c
index 5d73d85..ba15c23 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)config.c   1.1 (Berkeley/CCI) %G%";
+static char sccsid[] = "@(#)config.c   1.5 (Berkeley/CCI) 6/14/88";
 #endif
 
 /*
 #endif
 
 /*
@@ -13,25 +13,79 @@ struct      flawpat defpats = {
        0x64c99300, 0xc9932600, 0x93264c00, 0x264c9800,
        0x4c993000, 0x99326000, 0x3264c000, 0x54c98000
 };
        0x64c99300, 0xc9932600, 0x93264c00, 0x264c9800,
        0x4c993000, 0x99326000, 0x3264c000, 0x54c98000
 };
-struct flawpat xfdpats = {
+struct flawpat cdcpats = {
        0x0d9b366c, 0x1b366cd8, 0x366cd9b0, 0x6cd9b360,
        0xd9b366c0, 0xb366cd80, 0x66cd9b00, 0xcd9b3600,
        0x9b366300, 0x366cd800, 0x6cd9b000, 0xd9b36000,
        0xb366c000, 0x66cd8000, 0xcd9b0000, 0x9b360000
 };
 
        0x0d9b366c, 0x1b366cd8, 0x366cd9b0, 0x6cd9b360,
        0xd9b366c0, 0xb366cd80, 0x66cd9b00, 0xcd9b3600,
        0x9b366300, 0x366cd800, 0x6cd9b000, 0xd9b36000,
        0xb366c000, 0x66cd8000, 0xcd9b0000, 0x9b360000
 };
 
-struct vdconfig vdconfig[] = {
-    { "xsd", { 48, 24, 711 }, 0, 3600, 30240, &defpats,
-      "515Mb CDC Winchester" },
-    { "egl", { 44, 20, 842 }, 0, 3600, 27720, &defpats,
-      "474Mb Fujitsu Eagle Winchester" },
-    { "fuj", { 64, 10, 823 }, 0, 3600, 40960, &defpats,
-      "360Mb Fujitsu Winchester" },
-    { "xfd", { 32, 24, 711 }, 0, 3600, 20160, &xfdpats,
-      "340Mb CDC Winchester" },
-    { "smd", { 32, 19, 823 }, 0, 3600, 20160, &xfdpats,
-      "300Mb CDC 9766" },
-    { "fsd", { 32, 10, 823 }, 0, 3600, 20160, &xfdpats,
-      "160Mb CDC Winchester" },
+struct disklabel vdproto[] = {
+       { DISKMAGIC, DTYPE_SMD, 0, "xsd", "newly formatted",
+               512, 48, 24, 711, 48*24, 48*24*711,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               0, 30240, (long)&defpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 48*24*711, 0 }
+       },
+       { DISKMAGIC, DTYPE_SMD, 0, "ncc", "newly formatted",
+               512, 66, 23, 850, 66*23, 66*23*850,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               0, 40960, (long)&defpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 66*23*850, 0 }
+       },
+       { DISKMAGIC, DTYPE_SMD, 0, "2361a", "newly formatted",
+               512, 64, 20, 842, 64*20, 64*20*842,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               0, 40960, (long)&defpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 64*20*842, 0 }
+       },
+       { DISKMAGIC, DTYPE_SMD, 0, "egl", "newly formatted",
+               512, 44, 20, 842, 44*20, 44*20*842,
+               0, 0, 0, 3961, 1, 0, 0, 900, 0, 0,
+               0, 28160, (long)&defpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 44*20*842, 0 }
+       },
+       { DISKMAGIC, DTYPE_SMD, 0, "fuj", "newly formatted",
+               512, 64, 10, 823, 64*10, 64*10*823,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               0, 40960, (long)&defpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 64*10*823, 0 }
+       },
+       { DISKMAGIC, DTYPE_SMD, 0, "xfd", "newly formatted",
+               512, 32, 24, 711, 32*24, 32*24*711,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               0, 20160, (long)&cdcpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 32*24*711, 0 }
+       },
+
+       { DISKMAGIC, DTYPE_SMD, 0, "smd", "newly formatted",
+               512, 32, 19, 823, 32*19, 32*19*823,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               0, 20160, (long)&cdcpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 32*19*823, 0 }
+       },
+       { DISKMAGIC, DTYPE_ESDI, 0, "mxd", "newly formatted",
+               1024, 18, 15, 1224, 18*15, 18*15*1224,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               VD_ESDI, 20160, (long)&defpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 18*15*1224, 0 }
+       },
+       { DISKMAGIC, DTYPE_SMD, 0, "fsd", "newly formatted",
+               512, 32, 10, 823, 32*10, 32*10*823,
+               0, 0, 0, 3600, 1, 0, 0, 900, 0, 0,
+               0, 20160, (long)&cdcpats, 0, 0, 0, 0, 0, 0, 0,
+               DISKMAGIC, 0, 1, BBSIZE, SBSIZE,
+               { 32*10*823, 0 }
+       },
 };
 };
-int    ndrives = sizeof (vdconfig) / sizeof (vdconfig[0]);
+
+int    ndrives = sizeof (vdproto) / sizeof (vdproto[0]);
+int    smddrives = 5;                  /* first 5 types are smd-e only */