From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bw0-f212.google.com (mail-bw0-f212.google.com [209.85.218.212]) by ozlabs.org (Postfix) with ESMTP id 6BEBAB7BCA for ; Wed, 28 Oct 2009 07:30:18 +1100 (EST) Received: by bwz4 with SMTP id 4so255507bwz.2 for ; Tue, 27 Oct 2009 13:30:15 -0700 (PDT) Message-ID: <4AE75859.5050108@billgatliff.com> Date: Tue, 27 Oct 2009 15:30:17 -0500 From: Bill Gatliff MIME-Version: 1.0 To: Jonathan Haws Subject: Re: Accessing flash directly from User Space References: <4AE7545F.80805@billgatliff.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii Cc: "linuxppc-dev@lists.ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Jonathan Haws wrote: >>> How can I get that pointer? Unfortunately I cannot simply use the >>> >> address of the flash. Is there some magical function call that >> gives me access to that portion of the memory space? >> >> $ man 2 mmap >> >> You want MAP_SHARED and O_SYNC. >> > > > To use that I need to have a file descriptor to a device, do I not? However, I do not have a base flash driver to give me that file descriptor. Am I missing something with that call? > /dev/mem b.g. -- Bill Gatliff bgat@billgatliff.com