From owner-freebsd-current Sat Sep 26 08:34:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA15238 for freebsd-current-outgoing; Sat, 26 Sep 1998 08:34:01 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from word.smith.net.au (castles128.castles.com [208.214.165.128]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA15217 for ; Sat, 26 Sep 1998 08:33:54 -0700 (PDT) (envelope-from mike@word.smith.net.au) Received: from word.smith.net.au (localhost [127.0.0.1]) by word.smith.net.au (8.9.1/8.8.8) with ESMTP id IAA05822; Sat, 26 Sep 1998 08:39:11 -0700 (PDT) (envelope-from mike@word.smith.net.au) Message-Id: <199809261539.IAA05822@word.smith.net.au> X-Mailer: exmh version 2.0.2 2/24/98 To: Joachim Kuebart cc: mike@smith.net.au (Mike Smith), freebsd-current@FreeBSD.ORG Subject: Re: PCI DMA interface documentation In-reply-to: Your message of "Sat, 26 Sep 1998 16:38:14 +0200." <199809261438.QAA01012@yacht.domestic.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 26 Sep 1998 08:39:10 -0700 From: Mike Smith 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 :-) Look at another driver that does more or less what yours does. There's no static documentation for the pci_* functions, no. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message