Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Following implementation for other RIDs, read the...



details:   https://anonhg.NetBSD.org/src/rev/db3205e03c5a
branches:  trunk
changeset: 543429:db3205e03c5a
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Tue Feb 25 00:47:11 2003 +0000

description:
Following implementation for other RIDs, read the driver's notion
of the fragmentation threshold instead of the hardware's notion.

diffstat:

 sys/dev/ic/wi.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 26131c2fefa9 -r db3205e03c5a sys/dev/ic/wi.c
--- a/sys/dev/ic/wi.c   Tue Feb 25 00:22:20 2003 +0000
+++ b/sys/dev/ic/wi.c   Tue Feb 25 00:47:11 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $  */
+/*     $NetBSD: wi.c,v 1.110 2003/02/25 00:47:11 dyoung Exp $  */
 
 /*
  * Copyright (c) 1997, 1998, 1999
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.109 2003/01/09 08:52:19 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.110 2003/02/25 00:47:11 dyoung Exp $");
 
 #define WI_HERMES_AUTOINC_WAR  /* Work around data write autoinc bug. */
 #define WI_HERMES_STATS_WAR    /* Work around stats counter bug. */
@@ -1582,6 +1582,10 @@
                        wreq.wi_val[0] = htole16(sc->sc_max_datalen);
                        len = sizeof(u_int16_t);
                        break;
+               case WI_RID_FRAG_THRESH:
+                       wreq.wi_val[0] = htole16(sc->sc_frag_thresh);
+                       len = sizeof(u_int16_t);
+                       break;
                case WI_RID_RTS_THRESH:
                        wreq.wi_val[0] = htole16(sc->sc_rts_thresh);
                        len = sizeof(u_int16_t);



Home | Main Index | Thread Index | Old Index