From owner-freebsd-hackers Thu Oct 8 06:50:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA28774 for freebsd-hackers-outgoing; Thu, 8 Oct 1998 06:50:41 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from heathers.stdio.com (heathers.stdio.com [199.89.192.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA28769 for ; Thu, 8 Oct 1998 06:50:39 -0700 (PDT) (envelope-from lile@stdio.com) Received: (from lile@localhost) by heathers.stdio.com (8.8.8/8.8.8) id JAA21360; Thu, 8 Oct 1998 09:45:51 -0400 (EDT) Date: Thu, 8 Oct 1998 09:45:50 -0400 (EDT) From: "Larry S. Lile" To: hackers@FreeBSD.ORG Subject: DMA questions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am working on a driver for Olicom token-ring cards and using the Linux driver as a guideline but I am unsure about the dma commands they are using. Any ideas on how to replicate this under FreeBSD? Also is there any good reference for dma under FreeBSD I can't seem to find much? dmachan = oi->config->dmalevel; if ((dmachan != TRLLD_DMA_PIO) && (dmachan != TRLLD_DMA_MASTER)) { if (request_dma (dmachan, "oltr")) { dprintk (KERN_INFO "%s: Couldn't grab DMA%d for this card.\n", dev->name, dmachan); return -EAGAIN; oi->flags |= OLTR_GOT_DMA; } /* I haven't the foggiest what "mode 0xc0" means. The SCO and DOS drivers do similar things... */ > clear_dma_ff(dmachan); < This is what I am confused > set_dma_count (dmachan, 0); < about... > set_dma_mode (dmachan, 0xc0); < > enable_dma (dmachan); < } Thanks in adavance Larry Lile lile@stdio.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message