From owner-freebsd-current Sat Sep 26 07:35:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA08178 for freebsd-current-outgoing; Sat, 26 Sep 1998 07:35:38 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from shire.domestic.de (kuebart.stuttgart.netsurf.de [194.233.216.182]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08171 for ; Sat, 26 Sep 1998 07:35:34 -0700 (PDT) (envelope-from joki@kuebart.stuttgart.netsurf.de) Received: from yacht.domestic.de (yacht.domestic.de [192.168.1.4]) by shire.domestic.de (8.8.8/8.8.7) with ESMTP id QAA28991; Sat, 26 Sep 1998 16:35:40 +0200 (CEST) (envelope-from joki@shire.domestic.de) From: Joachim Kuebart Received: (from joki@localhost) by yacht.domestic.de (8.9.1/8.8.7) id QAA01012; Sat, 26 Sep 1998 16:38:14 +0200 (CEST) (envelope-from joki@shire.domestic.de) Message-Id: <199809261438.QAA01012@yacht.domestic.de> Subject: Re: PCI DMA interface documentation In-Reply-To: <199809260110.SAA02665@dingo.cdrom.com> from Mike Smith at "Sep 25, 98 06:10:19 pm" To: mike@smith.net.au (Mike Smith) Date: Sat, 26 Sep 1998 16:38:14 +0200 (CEST) Cc: joki@kuebart.stuttgart.netsurf.de, freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > > > I'm trying to write a device driver that utilizes DMA transfers > > to/from a PCI card. Does any documentation exist (apart from > > /sys/pci/*.c) that tells me in what order I have to call which > > functions in order to get things set up properly? I looked a lot > > but somehow I must have missed it :-) > > DMA to/from PCI cards is handled by the card itself, so you will have > to look at the documentation for the card. There are other lessons to > learn as well, but that's where to start. And how about what functions exist at all? I see no documentation of rudimentary stuff like pci_map_*, bus_* and so on. I feel a little left alone with wild guesses like find /sys/dev -name '*.c' | xargs grep map_port | m If that's the way, OK, I'll just take longer. I just don't want to live like that if there's a web page somewhere with details :-) cu Jo --------------------------------------------------------------------- FreeBSD: The Power to Serve Joachim Kuebart Tel: +49 711 653706 I like to think. Germany To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message