summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2004-05-26 19:56:32 +0000
committerBrad Smith <brad@cvs.openbsd.org>2004-05-26 19:56:32 +0000
commit479d0413d08a3846d94ba821f18b252e9264e5f8 (patch)
treed41ee54f463df428677cb6000d3ef817ad946344 /sys
parent53920d9fa9297910eaac43836f07dcdc9070ba6f (diff)
use ETHER_ALIGN
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/mtd8xx.c8
-rw-r--r--sys/dev/ic/smc90cx6.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/mtd8xx.c b/sys/dev/ic/mtd8xx.c
index b211b001233..2207abae4a1 100644
--- a/sys/dev/ic/mtd8xx.c
+++ b/sys/dev/ic/mtd8xx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mtd8xx.c,v 1.3 2003/11/17 13:21:29 espie Exp $ */
+/* $OpenBSD: mtd8xx.c,v 1.4 2004/05/26 19:56:31 brad Exp $ */
/*
* Copyright (c) 2003 Oleg Safiullin <form@pdp11.org.ru>
@@ -950,15 +950,15 @@ mtd_rxeof(struct mtd_softc *sc)
0, sc->mtd_cdata.mtd_rx_chain[i].sd_map->dm_mapsize,
BUS_DMASYNC_POSTREAD);
- m0 = m_devget(mtod(m, char *) - 2, total_len + 2, 0, ifp,
- NULL);
+ m0 = m_devget(mtod(m, char *) - ETHER_ALIGN, total_len + ETHER_ALIGN,
+ 0, ifp, NULL);
mtd_newbuf(sc, i, m);
i = (i + 1) % MTD_RX_LIST_CNT;
if (m0 == NULL) {
ifp->if_ierrors++;
continue;
}
- m_adj(m0, 2);
+ m_adj(m0, ETHER_ALIGN);
m = m0;
ifp->if_ipackets++;
diff --git a/sys/dev/ic/smc90cx6.c b/sys/dev/ic/smc90cx6.c
index 54af8f8b178..5306648230e 100644
--- a/sys/dev/ic/smc90cx6.c
+++ b/sys/dev/ic/smc90cx6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smc90cx6.c,v 1.7 2004/05/12 06:35:10 tedu Exp $ */
+/* $OpenBSD: smc90cx6.c,v 1.8 2004/05/26 19:56:31 brad Exp $ */
/* $NetBSD: smc90cx6.c,v 1.17 1996/05/07 01:43:18 thorpej Exp $ */
/*
@@ -595,7 +595,7 @@ bah_start(ifp)
* bah_ram_ptr[0*2] = mtod(m, u_char *)[0];
*/
bah_ram_ptr[1 * 2] = mtod(m, u_char *)[1];
- m_adj(m, 2);
+ m_adj(m, ETHER_ALIGN);
/* get total length left at this point */
tlen = m->m_pkthdr.len;