public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "I-Jui Sung" <ijsung@csie.nctu.edu.tw>
To: "eCos mailing list" <ecos-discuss@sources.redhat.com>
Subject: [ECOS] A patch for Assabet PCMCIA driver to work with PRETEC CompactLAN CF ethernet card.
Date: Fri, 13 Jul 2001 07:35:00 -0000	[thread overview]
Message-ID: <000801c10baa$ec324d70$0e8c718c@biou> (raw)

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

[Problem description]
The CompactLAN CF ethernet card (an NE2000 clone) have some problem
reporting its
Manufacturer ID, so it will fail on the cf_hwr_change_state(), cause a
"the CF won't ready" error message in the detection of networking interface.
So I've done a workaround by using version string to determine a successful
state change in
the above memtioned function.
In my test, the patch works fine with either the PRETEC CompactLAN card or
the Socketcom LP-E.

[Patch]
See attachment.
Instruction about how to apply it:

cd $(ECOS_REPOSITORY)/devs/pcmcia/arm/assabet/current/src
patch -p0 < $(WHERE_THE_PATCH_IS)/assabet_CompactLAN_patch.patch

Best regards,
IJS

[-- Attachment #2: assabet_CompactLAN_patch.patch --]
[-- Type: text/x-diff, Size: 880 bytes --]

*** assabet_pcmcia.c	Fri Jul 13 22:13:54 2001
--- my_assabet_pcmcia.c	Fri Jul 13 21:46:52 2001
***************
*** 213,217 ****
  {    
      int i, ptr, len;
!     unsigned char buf[64];
  
      if (new_state == CF_SLOT_STATE_Ready) {
--- 213,217 ----
  {    
      int i, ptr, len;
!     unsigned char buf[256];
  
      if (new_state == CF_SLOT_STATE_Ready) {
***************
*** 243,247 ****
              for (i = 0;  i < 10;  i++) {
                  ptr = 0;
!                 if (cf_get_CIS(slot, CF_CISTPL_MANFID, buf, &len, &ptr)) {
                      slot->state = CF_SLOT_STATE_Ready;
                      break;
--- 243,247 ----
              for (i = 0;  i < 10;  i++) {
                  ptr = 0;
!                 if (cf_get_CIS(slot, CF_CISTPL_VERS_1, buf, &len, &ptr)) {
                      slot->state = CF_SLOT_STATE_Ready;
                      break;

             reply	other threads:[~2001-07-13  7:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-13  7:35 I-Jui Sung [this message]
2001-07-13  8:21 ` [ECOS] A patch for Assabet PCMCIA driver to work with PRETEC Gary Thomas
2001-07-13 10:46   ` Jonathan Larmour
2001-07-13 10:50     ` Trenton D. Adams
2001-07-13 10:56       ` Jonathan Larmour
2001-07-13 11:42         ` I-Jui Sung
2001-07-13 11:46           ` Trenton D. Adams
2001-07-13 10:45 ` [ECOS] A patch for Assabet PCMCIA driver to work with PRETEC CompactLAN CF ethernet card Jonathan Larmour

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='000801c10baa$ec324d70$0e8c718c@biou' \
    --to=ijsung@csie.nctu.edu.tw \
    --cc=ecos-discuss@sources.redhat.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).