Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia apply Kenji Aoyama <aoyama%nk.mcu.or.jp@localhost>'s patch



details:   https://anonhg.NetBSD.org/src/rev/92c6edf33b40
branches:  trunk
changeset: 494789:92c6edf33b40
user:      jun <jun%NetBSD.org@localhost>
date:      Fri Jul 14 08:02:12 2000 +0000

description:
apply Kenji Aoyama <aoyama%nk.mcu.or.jp@localhost>'s patch
on port-hpcmips-ja%jp.netbsd.org@localhost Mon, 10 Jul 2000 21:21:47 +0900

FIX:
  Can't read CIS tuple chain:some TDK CF Flash memory card.

diffstat:

 sys/dev/pcmcia/pcmcia_cis.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 3e651d370907 -r 92c6edf33b40 sys/dev/pcmcia/pcmcia_cis.c
--- a/sys/dev/pcmcia/pcmcia_cis.c       Fri Jul 14 07:36:32 2000 +0000
+++ b/sys/dev/pcmcia/pcmcia_cis.c       Fri Jul 14 08:02:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcmcia_cis.c,v 1.18 2000/02/21 03:26:41 enami Exp $    */
+/*     $NetBSD: pcmcia_cis.c,v 1.19 2000/07/14 08:02:12 jun Exp $      */
 
 #define        PCMCIACISDEBUG
 
@@ -778,8 +778,14 @@
                        for (count = 0, start = 0, i = 0;
                            (count < 4) && ((i + 4) < 256); i++) {
                                ch = pcmcia_tuple_read_1(tuple, 2 + i);
-                               if (ch == 0xff)
+                               if (ch == 0xff) {
+                                       if (i > start) {
+                                               state->card->cis1_info_buf[i] = 0;
+                                               state->card->cis1_info[count] =
+                                                   state->card->cis1_info_buf + start;
+                                       }
                                        break;
+                               }
                                state->card->cis1_info_buf[i] = ch;
                                if (ch == 0) {
                                        state->card->cis1_info[count] =



Home | Main Index | Thread Index | Old Index