public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Trenton D. Adams" <tadams@extremeeng.com>
To: "'eCos Discussion'" <ecos-discuss@sourceware.cygnus.com>
Subject: [ECOS] ethernet driver package idea
Date: Thu, 23 Aug 2001 11:41:00 -0000	[thread overview]
Message-ID: <000201c12c03$28586410$090110ac@TRENT> (raw)

I was thinking, we could replace "eth0" with __DEVICE_NAME like below.
ETH_DRV_SC(edb7xxx_sc,
           &_cs8900_priv_data, // Driver specific data
           __DEVICE_NAME,             // Name for this interface
           cs8900_start,
           cs8900_stop,
           cs8900_control,
           cs8900_can_send,
           cs8900_send,
           cs8900_recv,
           cs8900_deliver,     // "pseudoDSR" called from fast net
thread
           cs8900_int,         // poll function, encapsulates ISR and
DSR
           cs8900_int_vector);

Then we add the following to
"devs\eth\arm\edb7xxx\current\cdl\edb7xxx_eth_drivers.cdl"

    cdl_component CYGPKG_DEVS_ETH_ARM_EDB7XXX_SETUP_OPTIONS {
        display "Device Options for CS8900"
#        active_if (CYGHWR_NET_DRIVER_ETH1 == 1)
        flavor none
        no_define

        cdl_interface CYGPKG_DEVS_ETH_ARM_EDB7XXX_SETUP {
            display "Device Options for CS8900"
#            requires 1 == CYGHWR_NET_DRIVER_ETH1_SETUP
            no_define
        }

        cdl_component CYGPKG_DEVS_ETH_ARM_EDB7XXX_NET_DRIVER_ETH0 {
            display "Use 'eth0'"
            default_value 1
            implements CYGPKG_DEVS_ETH_ARM_EDB7XXX_SETUP
            implements CYGHWR_NET_DRIVER_ETH0
            define_proc {
                puts $cdl_header "#define __DEVICE_NAME \"eth0\""
            }
            description "Select this option to use the ethernet driver
as eth0"
        }

        cdl_component CYGPKG_DEVS_ETH_ARM_EDB7XXX_NET_DRIVER_ETH1 {
            display "Use 'eth1'"
            default_value 0
            implements CYGPKG_DEVS_ETH_ARM_EDB7XXX_SETUP
            implements CYGHWR_NET_DRIVER_ETH1
            define_proc {
                puts $cdl_header "#define __DEVICE_NAME \"eth1\""
            }
            description "Select this option to use the ethernet driver
as eth1"
        }
    }

I can't get the options to switch from check boxes to radio buttons
though.  How do I do that?


This should probably be done on all ethernet hardware drivers as a
standard no?

p.s.
It works fine for me.  I switched it to eth1, and my program still
worked just fine.  Just those damn checkboxes! :)

Trenton D. Adams
Extreme Engineering
#17, 6025 - 12 St. SE
Calgary, Alberta, Canada
T2H 2K1

Phone: 403 640 9494 ext-208
Fax: 403 640 9599

http://www.extremeeng.com

             reply	other threads:[~2001-08-23 11:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-23 11:41 Trenton D. Adams [this message]
2001-08-23 12:24 ` Trenton D. Adams
2001-08-23 13:30   ` [ECOS] CS8900 ethernet driver PATCH Trenton D. Adams
2001-08-24  4:22   ` [ECOS] ethernet driver package idea Bart Veer
2001-08-24  7:59     ` Trenton D. Adams
2001-08-24  8:42       ` Bart Veer
2001-08-24  8:47         ` Trenton D. Adams
2001-08-29 10:18           ` Trenton D. Adams
2001-09-03 11:01             ` Bart Veer
2001-09-06 12:20               ` Jonathan Larmour
2001-09-11 10:58                 ` Hugo Tyson

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='000201c12c03$28586410$090110ac@TRENT' \
    --to=tadams@extremeeng.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).