summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros/if_arge.c
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2009-05-26 17:43:32 +0000
committergonzo <gonzo@FreeBSD.org>2009-05-26 17:43:32 +0000
commit3e0e3d979607171e8987c1d6cd08696991dcbfc7 (patch)
tree93d4bcbfc49580438c072c7bb979bedafd8b52a7 /sys/mips/atheros/if_arge.c
parentfc666881e787d8c221a2e355451571762a76d777 (diff)
downloadFreeBSD-src-3e0e3d979607171e8987c1d6cd08696991dcbfc7.zip
FreeBSD-src-3e0e3d979607171e8987c1d6cd08696991dcbfc7.tar.gz
- arge_poll should be decalred only if DEVICE_POLLING is enabled
- Revert Rx buffer nsegments from BUS_SPACE_UNRESTRICTED to ARGE_MAXFRAGS
Diffstat (limited to 'sys/mips/atheros/if_arge.c')
-rw-r--r--sys/mips/atheros/if_arge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/mips/atheros/if_arge.c b/sys/mips/atheros/if_arge.c
index 5c863a7..c4f48f3 100644
--- a/sys/mips/atheros/if_arge.c
+++ b/sys/mips/atheros/if_arge.c
@@ -103,7 +103,9 @@ static void arge_reset_dma(struct arge_softc *);
static int arge_resume(device_t);
static int arge_rx_ring_init(struct arge_softc *);
static int arge_tx_ring_init(struct arge_softc *);
+#ifdef DEVICE_POLLING
static void arge_poll(struct ifnet *, enum poll_cmd, int);
+#endif
static void arge_shutdown(device_t);
static void arge_start(struct ifnet *);
static void arge_start_locked(struct ifnet *);
@@ -1086,7 +1088,7 @@ arge_dma_alloc(struct arge_softc *sc)
BUS_SPACE_MAXADDR, /* highaddr */
NULL, NULL, /* filter, filterarg */
MCLBYTES, /* maxsize */
- BUS_SPACE_UNRESTRICTED, /* nsegments */
+ ARGE_MAXFRAGS, /* nsegments */
MCLBYTES, /* maxsegsize */
0, /* flags */
NULL, NULL, /* lockfunc, lockarg */
OpenPOWER on IntegriCloud