Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci aq(4): Annotate boolean parameters with names fo...
details: https://anonhg.NetBSD.org/src/rev/3e00e1cf57f5
branches: trunk
changeset: 371921:3e00e1cf57f5
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Oct 17 10:39:27 2022 +0000
description:
aq(4): Annotate boolean parameters with names for legibility.
No functional change intended.
diffstat:
sys/dev/pci/if_aq.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r e2ce83270d32 -r 3e00e1cf57f5 sys/dev/pci/if_aq.c
--- a/sys/dev/pci/if_aq.c Mon Oct 17 10:39:01 2022 +0000
+++ b/sys/dev/pci/if_aq.c Mon Oct 17 10:39:27 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aq.c,v 1.36 2022/10/17 10:39:01 riastradh Exp $ */
+/* $NetBSD: if_aq.c,v 1.37 2022/10/17 10:39:27 riastradh Exp $ */
/**
* aQuantia Corporation Network Driver
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.36 2022/10/17 10:39:01 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.37 2022/10/17 10:39:27 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_if_aq.h"
@@ -1507,7 +1507,8 @@
ether_set_ifflags_cb(&sc->sc_ethercom, aq_ifflags_cb);
if_register(ifp);
- aq_enable_intr(sc, true, false); /* only intr about link */
+ /* only intr about link */
+ aq_enable_intr(sc, /*link*/true, /*txrx*/false);
/* update media */
aq_ifmedia_change(ifp);
@@ -4691,7 +4692,7 @@
ifp->if_flags |= IFF_RUNNING;
/* start TX and RX */
- aq_enable_intr(sc, true, true);
+ aq_enable_intr(sc, /*link*/true, /*txrx*/true);
AQ_WRITE_REG_BIT(sc, TPB_TX_BUF_REG, TPB_TX_BUF_EN, 1);
AQ_WRITE_REG_BIT(sc, RPB_RPF_RX_REG, RPB_RPF_RX_BUF_EN, 1);
@@ -4880,7 +4881,7 @@
goto already_stopped;
/* disable tx/rx interrupts */
- aq_enable_intr(sc, true, false);
+ aq_enable_intr(sc, /*link*/true, /*txrx*/false);
AQ_WRITE_REG_BIT(sc, TPB_TX_BUF_REG, TPB_TX_BUF_EN, 0);
for (i = 0; i < sc->sc_nqueues; i++) {
@@ -4898,7 +4899,7 @@
RX_DMA_DESC_CACHE_INIT_REG, RX_DMA_DESC_CACHE_INIT) ^ 1);
already_stopped:
- aq_enable_intr(sc, false, false);
+ aq_enable_intr(sc, /*link*/false, /*txrx*/false);
callout_halt(&sc->sc_tick_ch, &sc->sc_mutex);
ifp->if_flags &= ~IFF_RUNNING;
Home |
Main Index |
Thread Index |
Old Index