Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 1998 08:39:10 -0700
From:      Mike Smith <mike@smith.net.au>
To:        Joachim Kuebart <joki@kuebart.stuttgart.netsurf.de>
Cc:        mike@smith.net.au (Mike Smith), freebsd-current@FreeBSD.ORG
Subject:   Re: PCI DMA interface documentation 
Message-ID:  <199809261539.IAA05822@word.smith.net.au>
In-Reply-To: Your message of "Sat, 26 Sep 1998 16:38:14 %2B0200." <199809261438.QAA01012@yacht.domestic.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809261539.IAA05822>