linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shakthi Kannan <shakstux@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Re: mount PCI-express RAM memory as block device
Date: Tue, 11 Jan 2005 08:45:07 -0800 (PST)	[thread overview]
Message-ID: <20050111164507.92884.qmail@web54502.mail.yahoo.com> (raw)
In-Reply-To: <20050107201730.40634.qmail@web54502.mail.yahoo.com>

Hi,

--- "Arnd Bergmann" <arnd@arndb.de> wrote:
> You could use the MTD block driver with on the phram

> device by simply specifying the address/size of the 
> memory as a module parameter.  If you need 
> autodetection, the easiest way to do that would be 
> including the phram MTD driver in your pci device 
> driver.

I studied the slram.c and rd.c device drivers. The
ramdisk driver that I had written earlier, similar to
the above, had worked fine. With respect to PCI
express, I had to modify just the memory tranfer
function. The memcpy functions translate to byte
access. But, PCI express is dword access. So, I wrote
my own memory copy to do long read/write using
readl(), writel(). The block device driver works fine.

Thanks,

K Shakthi

=====
-----------------------------------------------------
K Shakthi
Specsoft (Hexaware Technologies), ASIC Design Center
http://www.geocities.com/shakthimaan
-----------------------------------------------------


		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

  reply	other threads:[~2005-01-11 17:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-07 18:36 mount PCI-express RAM memory as block device Shakthi Kannan
2005-01-07 18:53 ` linux-os
2005-01-07 20:17   ` Shakthi Kannan
2005-01-11 16:45     ` Shakthi Kannan [this message]
2005-01-07 19:00 ` Arnd Bergmann

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=20050111164507.92884.qmail@web54502.mail.yahoo.com \
    --to=shakstux@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).