Do a few minor cleanups.
This commit is contained in:
parent
2b7c24e3c1
commit
cfc5d9f44e
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user