From: Daris A Nevil <dnevil@snmc.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: cpm_enet_down and MAC address change.
Date: Fri, 01 Sep 2000 08:21:00 -0500 [thread overview]
Message-ID: <39AFAD3C.C849E398@snmc.com> (raw)
In-Reply-To: 081f01c013db$364aa100$1952df8d@SOYANG
Hyun-Joon,
I have been promising myself that I would re-work the ethernet driver
for use in QSLinux (qslinux.org), but have never gotten around to it.
The driver performs initialization in the init() function, rather than
the first call to open(). Another problem with the driver is that it
will only work with a single enet port. I wanted to modify it so that
it would work with multiple ports. A good example of how this can be
found is the HDLC driver (hdlcppp.c) from the QSLinux source. This is
the source I will use (eventually) to rewrite the enet driver, as it
already has all of the buffer descriptor handling, and the open and
close handling setup correctly. That driver allows you to open one or
more HDLC channels, and also allows you to close arbitrary channels.
Regards,
Daris
Hyun-Joon Cha wrote:
>
> Hello.
>
> In shell, I can't do down ethernet interface.
> ======================================
> # ifconfig eth0 down
> dev_close: bug eth0 still running
>
> I checked ethernet driver and found that there are empty code for it.
>
> At cpm_enet_close of arch/ppc/8xx_io/enet.c
> ===========================================
> static int
> cpm_enet_close(struct device *dev)
> {
> /* Don't know what to do yet.
> */
>
> return 0;
> }
>
> So, I can't down ethernet interface on Linux for MPC850 and can't change MAC addr at runtime also.
>
> Then how can I make it possible? or do someone make module for ethernet and serial driver for MPC?
>
> Maybe it's a good idea to modularize it and make a configuration header file for parallel IO pins to SCCs and SMCs to port Linux easy.
>
> If anybody know it or have a idea please answer.
>
> Thanks in advance.
> Have a nice day.
>
--
Daris A Nevil
Simple Network Magic Corporation
401 Kentucky Lane
McKinney, TX 75069
214-793-7757
dnevil@snmc.com
www.snmc.com
quickstack.com
qslinux.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-09-01 13:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-01 6:09 cpm_enet_down and MAC address change Hyun-Joon Cha
2000-09-01 13:21 ` Daris A Nevil [this message]
2000-09-01 15:24 ` Dan Malek
2000-09-04 1:03 ` Graham Stoney
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=39AFAD3C.C849E398@snmc.com \
--to=dnevil@snmc.com \
--cc=linuxppc-embedded@lists.linuxppc.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).