From: "AARON MARKS" <amarks@sarnoff.com>
To: Richard Henderson <rth@twiddle.net>
Cc: linux-kernel@vger.rutgers.edu, axp-list@redhat.com
Subject: Re: vremap and memcpy_to_fs in 2.2.x?
Date: Wed, 07 Apr 1999 14:15:19 -0400 [thread overview]
Message-ID: <370BA0B7.737F62EE@sarnoff.com> (raw)
In-Reply-To: 19990406202625.C15066@twiddle.net
Richard Henderson wrote:
>
> On Wed, Mar 31, 1999 at 01:15:21PM -0500, AARON MARKS wrote:
> > I'm porting a PCI card driver from 2.0.x to 2.2.x -- on an Alpha -- and
> > I have two questions:
> >
> > What are the equivalent functions for vremap() and memcpy_to_fs().
> > >From what I can find:
> >
> > vremap() -> ioremap()
>
> This is correct.
I ended up using phys_to_virt() instead.
>
> > memcpy_to_fs -> copy_to_user()
>
> This is also correct.
And for this, I just did a straight assignment:
This:
memcpy_tofs(out, &si, sizeof(si));
Became this:
*out = si;
All seems to be sane so far...
Thanks for your help.
-A.
--
Aaron J. Marks Communications and Computing Systems Lab
Assoc. Member Tech Staff Advanced Networks and Computation Group
amarks@sarnoff.com Sarnoff Corporation
next prev parent reply other threads:[~1999-04-07 18:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-31 18:15 vremap and memcpy_to_fs in 2.2.x? AARON MARKS
1999-04-07 3:26 ` Richard Henderson
1999-04-07 18:15 ` AARON MARKS [this message]
1999-04-07 20:07 ` Richard Henderson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox