preliminary support for the Apollo 060 accelerator
authorniklas <niklas@openbsd.org>
Mon, 13 Jan 1997 23:38:27 +0000 (23:38 +0000)
committerniklas <niklas@openbsd.org>
Mon, 13 Jan 1997 23:38:27 +0000 (23:38 +0000)
Thanks a lot, Michael van Elst <mlelstv@serpens.swb.de>

sys/arch/amiga/dev/ahscreg.h
sys/arch/amiga/dev/sbicreg.h

index 5ff3490..81bcab6 100644 (file)
@@ -68,10 +68,19 @@ struct sdmac {
        int             pad6[7];
        short           pad7;
        vu_short SP_DMA;        /* Stop DMA Transfers RW-Strobe */
+#ifndef APOLLO
        char            pad8;
        vu_char  SASR;          /* sbic asr */
        char            pad9;
        vu_char  SCMD;          /* sbic data */
+#else
+       short           pad8;
+       char            pad9;
+       vu_char  SASR;          /* sbic asr */
+       short           pad10;
+       char            pad11;
+       vu_char  SCMD;          /* sbic data */
+#endif
 };
 
 /*
index 6d0e495..088d3e3 100644 (file)
 #define SBIC_MACHINE_DMA_MODE  SBIC_CTL_DMA
 
 typedef struct {
+#ifdef APOLLO
+       PAD(pad1);
+       PAD(pad2);
+#endif
         volatile unsigned char  sbic_asr;      /* r : Aux Status Register */
 #define sbic_address sbic_asr                  /* w : desired register no */
-        PAD(pad1);
+        PAD(pad3);
+#ifdef APOLLO
+       PAD(pad4);
+       PAD(pad5);
+#endif
         volatile unsigned char  sbic_value;    /* rw: register value */
 } sbic_padded_ind_regmap_t;
 typedef volatile sbic_padded_ind_regmap_t *sbic_regmap_p;