linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: vijaykumar@bravegnu.org
Cc: dmalek@jlc.net, linuxppc-embedded@ozlabs.org
Subject: Re: 8260 fcc_enet driver newbie question
Date: Thu, 11 Aug 2005 17:00:30 -0400	[thread overview]
Message-ID: <ac06540dd9a24bb4998ef19e08848eb1@embeddededge.com> (raw)
In-Reply-To: <1123739278.19079.13.camel@localhost.localdomain>


On Aug 11, 2005, at 1:47 AM, Vijay Kumar wrote:

> I was going through the fcc_enet driver
> (linux-2.6.12.2/arch/ppc/8260_io/fcc_enet.c).

This has been replaced by the new net/fs_enet, right?

> The driver accesses the CPM memory map using
> immap = (cpm2_map_t *)CPM_MAP_ADDR;

Yes, and that's wrong.  You should at least use
ioremap(), and we recently had discussions about
whether to create some properly named functions
or macros to return common addresses like the
CPM space.

> There is also a global variable cpm2_immr defined in
> arch/ppc/syslib/cpm2_common.c

I know, but we shouldn't be doing that any longer.

> If I were to write a new driver which one should I use
> to access the CPM memory map?

For now, at least ioremap() the space in your driver
and cache the pointer.  I'd like to quickly get a couple of
these other supporting functions done to use, though.

Thanks.

	-- Dan

      reply	other threads:[~2005-08-11 21:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-11  5:47 8260 fcc_enet driver newbie question Vijay Kumar
2005-08-11 21:00 ` Dan Malek [this message]

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=ac06540dd9a24bb4998ef19e08848eb1@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=dmalek@jlc.net \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=vijaykumar@bravegnu.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).