summaryrefslogtreecommitdiff
path: root/sys/dev/pci/musyccvar.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-09-22 12:47:15 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-09-22 12:47:15 +0000
commitcf8a5555547f12d3ce1e8504795608f362f89ddf (patch)
tree5fcb931627232b2f934fd7cfc6cce5cb8ba272ce /sys/dev/pci/musyccvar.h
parent8b42cfb0accec2bd42cb13a48945c92d4d0006ea (diff)
Simplify DMA handling. Limit DMA size to a fixed numer of slots.
Redesign musycc_start() so that it can be called from the musycc_txeom() handler when there is again space in the DMA ring.
Diffstat (limited to 'sys/dev/pci/musyccvar.h')
-rw-r--r--sys/dev/pci/musyccvar.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/musyccvar.h b/sys/dev/pci/musyccvar.h
index dbbf4c09748..7f23a96d3db 100644
--- a/sys/dev/pci/musyccvar.h
+++ b/sys/dev/pci/musyccvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: musyccvar.h,v 1.6 2005/08/27 13:32:01 claudio Exp $ */
+/* $OpenBSD: musyccvar.h,v 1.7 2005/09/22 12:47:14 claudio Exp $ */
/*
* Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland
@@ -33,8 +33,7 @@
/* dma ring sizes */
#define MUSYCC_DMA_CNT 256
#define MUSYCC_DMA_MAPSIZE (MUSYCC_DMA_CNT * sizeof(struct dma_desc))
-#define MUSYCC_DMA_MIN 3
-#define MUSYCC_DMA_MAX 64
+#define MUSYCC_DMA_SIZE 32
struct musycc_softc;
struct ebus_softc;