From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 274 invoked from network); 7 Apr 1999 18:33:32 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 7 Apr 1999 18:33:32 -0000 Received: from postoffice.sarnoff.com (postoffice.sarnoff.com [130.33.10.147]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA04801 for ; Wed, 7 Apr 1999 14:13:47 -0400 Received: from sarnoff.com ([130.33.14.232]) by postoffice.sarnoff.com (Netscape Messaging Server 3.5) with ESMTP id AAA4192; Wed, 7 Apr 1999 14:13:44 -0400 Message-ID: <370BA0B7.737F62EE@sarnoff.com> Date: Wed, 07 Apr 1999 14:15:19 -0400 From: "AARON MARKS" Reply-To: amarks@sarnoff.com Organization: Sarnoff Corporation X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: Richard Henderson CC: linux-kernel@vger.rutgers.edu, axp-list@redhat.com Subject: Re: vremap and memcpy_to_fs in 2.2.x? References: <37026639.86DCFD34@sarnoff.com> <19990406202625.C15066@twiddle.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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