summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>2000-01-14 07:08:33 +0000
committerBill Paul <wpaul@FreeBSD.org>2000-01-14 07:08:33 +0000
commitcfc5d9f44ec7a779c0dd038f1034a57d2a37880a (patch)
tree9442df78b085f1ef64d044ed9b8e1e5ad801ae31
parent2b7c24e3c19dc004272ac460219d76654c9600ef (diff)
downloadsrc-test2-cfc5d9f44ec7a779c0dd038f1034a57d2a37880a.tar.gz
src-test2-cfc5d9f44ec7a779c0dd038f1034a57d2a37880a.zip
Notes
-rw-r--r--sys/dev/usb/if_cue.c10
-rw-r--r--sys/dev/usb/if_cuereg.h4
2 files changed, 5 insertions, 9 deletions
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c
index 37aaf8a6c21c..0c8741ce5be3 100644
--- a/sys/dev/usb/if_cue.c
+++ b/sys/dev/usb/if_cue.c
@@ -491,10 +491,10 @@ USB_ATTACH(cue)
sc->cue_ed[CUE_ENDPT_INTR] = ed->bEndpointAddress;
}
}
-#ifdef foo
+
+#ifdef notdef
/* Reset the adapter. */
cue_reset(sc);
- printf("reset...\n");
#endif
/*
* Get station address.
@@ -795,10 +795,8 @@ static void cue_txeof(xfer, priv, status)
}
printf("cue%d: usb error on tx: %s\n", sc->cue_unit,
usbd_errstr(status));
-#ifdef foo
if (status == USBD_STALLED)
usbd_clear_endpoint_stall(sc->cue_ep[CUE_ENDPT_TX]);
-#endif
splx(s);
return;
}
@@ -872,9 +870,7 @@ static int cue_encap(sc, m, idx)
c->cue_mbuf = m;
total_len = m->m_pkthdr.len + 2;
-#ifdef foo
- total_len += 64 - (total_len % 64);
-#endif
+
/* The first two bytes are the frame length */
c->cue_buf[0] = (u_int8_t)m->m_pkthdr.len;
c->cue_buf[1] = (u_int8_t)(m->m_pkthdr.len >> 8);
diff --git a/sys/dev/usb/if_cuereg.h b/sys/dev/usb/if_cuereg.h
index 346cdb5d7918..13bec95913ff 100644
--- a/sys/dev/usb/if_cuereg.h
+++ b/sys/dev/usb/if_cuereg.h
@@ -120,8 +120,8 @@
#define CUE_BUFSZ 1536
#define CUE_CUTOFF 1088
#define CUE_MIN_FRAMELEN 60
-#define CUE_RX_FRAMES 10
-#define CUE_TX_FRAMES 10
+#define CUE_RX_FRAMES 1
+#define CUE_TX_FRAMES 1
#define CUE_RX_LIST_CNT 1
#define CUE_TX_LIST_CNT 1