-#define P400 020
-#define M400 0220
-#define P800 040
-#define M800 0240
-#define P1200 060
-#define M1200 0260
-int hp_offset[16] =
-{
- P400, M400, P400, M400,
- P800, M800, P800, M800,
- P1200, M1200, P1200, M1200,
- 0, 0, 0, 0,
+#define _hpSDIST 2
+#define _hpRDIST 3
+
+int hpSDIST = _hpSDIST;
+int hpRDIST = _hpRDIST;
+
+short hptypes[] =
+ { MBDT_RM03, MBDT_RM05, MBDT_RP06, MBDT_RM80, 0 };
+struct mba_info *hpinfo[NHP];
+int hpdkinit(),hpustart(),hpstart(),hpdtint();
+struct mba_driver hpdriver =
+ { hpdkinit, hpustart, hpstart, hpdtint, 0, hptypes, hpinfo };
+
+struct hpst {
+ short nsect;
+ short ntrak;
+ short nspc;
+ short ncyl;
+ struct size *sizes;
+} hpst[] = {
+ 32, 5, 32*5, 823, rm_sizes, /* RM03 */
+ 32, 19, 32*19, 823, rm5_sizes, /* RM05 */
+ 22, 19, 22*19, 815, hp_sizes, /* RP06 */
+ 31, 14, 31*14, 559, rm80_sizes /* RM80 */
+};
+
+u_char hp_offset[16] = {
+ HP_P400, HP_M400, HP_P400, HP_M400, HP_P800, HP_M800, HP_P800, HP_M800,
+ HP_P1200, HP_M1200, HP_P1200, HP_M1200, 0, 0, 0, 0,