Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add definitions of the DMA mode control register...



details:   https://anonhg.NetBSD.org/src/rev/a391cca3650a
branches:  trunk
changeset: 475888:a391cca3650a
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Aug 29 17:06:43 1999 +0000

description:
Add definitions of the DMA mode control registers. They should be used
by pciide, but I have yet to find how to map them.

diffstat:

 sys/dev/pci/pciide_cy693_reg.h |  20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r ccb25a7c88e1 -r a391cca3650a sys/dev/pci/pciide_cy693_reg.h
--- a/sys/dev/pci/pciide_cy693_reg.h    Sun Aug 29 16:55:48 1999 +0000
+++ b/sys/dev/pci/pciide_cy693_reg.h    Sun Aug 29 17:06:43 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pciide_cy693_reg.h,v 1.2 1998/12/03 14:06:16 bouyer Exp $      */
+/*     $NetBSD: pciide_cy693_reg.h,v 1.3 1999/08/29 17:06:43 bouyer Exp $      */
 
 /*
  * Copyright (c) 1998 Manuel Bouyer.
@@ -70,3 +70,21 @@
 static int8_t cy_dma_pulse[] = {7, 2, 2};
 static int8_t cy_dma_rec[] =   {7, 1, 0};
 #endif
+
+/*
+ * The cypress is quite weird: it uses 8-bit ISA registers to control
+ * DMA modes. 
+ */
+
+#define CY_DMA_ADDR 0x22
+#define CY_DMA_SIZE 0x2
+
+#define CY_DMA_IDX 0x00
+#define CY_DMA_IDX_PRIMARY     0x30
+#define CY_DMA_IDX_SECONDARY   0x31
+#define CY_DMA_IDX_TIMEOUT     0x32
+
+#define CY_DMA_DATA 0x01
+/* Multiword DMA transfer, for CY_DMA_IDX_PRIMARY or CY_DMA_IDX_SECONDARY */
+#define CY_DMA_DATA_MODE_MASK  0x03
+#define CY_DMA_DATA_SINGLE     0x04



Home | Main Index | Thread Index | Old Index