public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John Weber <weber@nyc.rr.com>
To: Tom Gall <tom_gall@vnet.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.4, cs46xx snd, and virt_to_bus
Date: Mon, 11 Feb 2002 12:38:12 -0500	[thread overview]
Message-ID: <3C680184.9090208@nyc.rr.com> (raw)
In-Reply-To: <fa.fefkfjv.rmid9f@ifi.uio.no>

Tom Gall wrote:
> Hi All,
> 
>   Well forgive me for not being up on the lastest news but from building
> 2.5.4 kernel for my box, which uses the cs46xx.c sound driver, it would
> appear that virt_to_bus and bus_to_virt has gone the way of the do-do. 
> 
>   What's the correct method now? 
> 
>   Be nice to get this cleaned up....
> 
>   Regards,
> 
>   Tom

Use pci_alloc_consistent() to allocate the buffer.  This function
returns the right thing so that virt_to_bus() is no longer needed.

 From what I read, it looks like pci_alloc_consistent returns a pci 
address and a physical address (via dma_addr_t), so it should be simple 
to change the code to use this function.  However, I don't know where 
the hell I'm supposed to find pci_dev -- I'll try rereading the 
driver-model.txt code again :).


       reply	other threads:[~2002-02-11 17:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <fa.fefkfjv.rmid9f@ifi.uio.no>
2002-02-11 17:38 ` John Weber [this message]
2002-02-11 18:10   ` 2.5.4, cs46xx snd, and virt_to_bus Alan Cox
2002-02-12  2:43     ` David S. Miller
2002-02-12 14:51       ` Alan Cox
2002-02-12 14:49         ` benh
2002-02-12 14:50           ` benh
2002-02-14  6:36         ` Paul Gortmaker
2002-02-14 13:26           ` Alan Cox
2002-02-11 18:09 Tom Gall
2002-02-11 17:53 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C680184.9090208@nyc.rr.com \
    --to=weber@nyc.rr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tom_gall@vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox