public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] A patch for Assabet PCMCIA driver to work with PRETEC CompactLAN CF ethernet card.
@ 2001-07-13  7:35 I-Jui Sung
  2001-07-13  8:21 ` [ECOS] A patch for Assabet PCMCIA driver to work with PRETEC Gary Thomas
  2001-07-13 10:45 ` [ECOS] A patch for Assabet PCMCIA driver to work with PRETEC CompactLAN CF ethernet card Jonathan Larmour
  0 siblings, 2 replies; 8+ messages in thread
From: I-Jui Sung @ 2001-07-13  7:35 UTC (permalink / raw)
  To: eCos mailing list

[-- 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;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-07-13 11:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-13  7:35 [ECOS] A patch for Assabet PCMCIA driver to work with PRETEC CompactLAN CF ethernet card I-Jui Sung
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

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).