summaryrefslogtreecommitdiffstats
path: root/sys/dev/dc/if_dcreg.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-03-24 17:38:24 +0000
committermarius <marius@FreeBSD.org>2008-03-24 17:38:24 +0000
commit9813122d2a1049be73b02e0421e633ae5827b603 (patch)
tree425b345b952d96c58bba8f835aa52ba16591ae2d /sys/dev/dc/if_dcreg.h
parentcf4d38b3794b233014dd8cb56e0ffcd6e6d2c868 (diff)
downloadFreeBSD-src-9813122d2a1049be73b02e0421e633ae5827b603.zip
FreeBSD-src-9813122d2a1049be73b02e0421e633ae5827b603.tar.gz
- Const'ify the dc_devs array.
- Correct the maxsize parameter when creating the mbufs busdma tag to reflect the actual requirement of dc(4). - Move the KASSERT in dc_newbuf() to the right spot. - Also convert the TX side to take advantage of bus_dmamap_load_mbuf_sg(9). - Move the comment regarding dc_start_locked() to the right spot. MFC after: 2 weeks
Diffstat (limited to 'sys/dev/dc/if_dcreg.h')
-rw-r--r--sys/dev/dc/if_dcreg.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/dc/if_dcreg.h b/sys/dev/dc/if_dcreg.h
index 9417a13..3ec7047 100644
--- a/sys/dev/dc/if_dcreg.h
+++ b/sys/dev/dc/if_dcreg.h
@@ -487,12 +487,10 @@ struct dc_list_data {
struct dc_chain_data {
struct mbuf *dc_rx_chain[DC_RX_LIST_CNT];
struct mbuf *dc_tx_chain[DC_TX_LIST_CNT];
- struct mbuf *dc_tx_mapping;
bus_dmamap_t dc_rx_map[DC_RX_LIST_CNT];
bus_dmamap_t dc_tx_map[DC_TX_LIST_CNT];
u_int32_t *dc_sbuf;
u_int8_t dc_pad[DC_MIN_FRAMELEN];
- int dc_tx_err;
int dc_tx_first;
int dc_tx_prod;
int dc_tx_cons;
@@ -730,7 +728,7 @@ struct dc_softc {
void *dc_intrhand;
struct resource *dc_irq;
struct resource *dc_res;
- struct dc_type *dc_info; /* adapter info */
+ const struct dc_type *dc_info; /* adapter info */
device_t dc_miibus;
u_int8_t dc_type;
u_int8_t dc_pmode;
OpenPOWER on IntegriCloud