From f87edded2316615942b4344b5be1836d37ad377c Mon Sep 17 00:00:00 2001 From: wpaul Date: Fri, 14 Jan 2000 07:08:33 +0000 Subject: Do a few minor cleanups. --- sys/dev/usb/if_cue.c | 10 +++------- sys/dev/usb/if_cuereg.h | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index 37aaf8a..0c8741c 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 346cdb5..13bec95 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 -- cgit v1.1