diff options
author | wpaul <wpaul@FreeBSD.org> | 2000-01-14 07:08:33 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2000-01-14 07:08:33 +0000 |
commit | f87edded2316615942b4344b5be1836d37ad377c (patch) | |
tree | e165509351eb343c3eb3d88cb18b01e071f59484 | |
parent | 16a04bd2288e4e4750046ab9b64c3d73b3afc08f (diff) | |
download | FreeBSD-src-f87edded2316615942b4344b5be1836d37ad377c.zip FreeBSD-src-f87edded2316615942b4344b5be1836d37ad377c.tar.gz |
Do a few minor cleanups.
-rw-r--r-- | sys/dev/usb/if_cue.c | 10 | ||||
-rw-r--r-- | 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 |