-/* $OpenBSD: if_aq_pci.c,v 1.18 2023/04/23 22:48:03 jmatthew Exp $ */
+/* $OpenBSD: if_aq_pci.c,v 1.19 2023/04/23 22:57:23 jmatthew Exp $ */
/* $NetBSD: if_aq.c,v 1.27 2021/06/16 00:21:18 riastradh Exp $ */
/*
if (sc->sc_fw_ops->get_mac_addr(sc))
return;
+ printf(", address %s", ether_sprintf(sc->sc_enaddr.ether_addr_octet));
if (aq_init_rss(sc))
return;
if (sc->sc_nqueues > 1) {
if (pci_intr_map_msix(pa, irqnum, &ih)) {
- printf("%s: unable to map msi-x vector %d\n",
- DEVNAME(sc), irqnum);
+ printf(": unable to map msi-x vector %d\n",
+ irqnum);
return;
}
IPL_NET | IPL_MPSAFE, intrmap_cpu(sc->sc_intrmap, i),
aq_intr_queue, aq, aq->q_name);
if (aq->q_ihc == NULL) {
- printf("%s: unable to establish interrupt %d\n",
- DEVNAME(sc), irqnum);
+ printf(": unable to establish interrupt %d\n",
+ irqnum);
return;
}
rx->rx_irq = irqnum;
}
if (i <= 0) {
- printf("%s: F/W reset failed. Neither RBL nor FLB started",
- DEVNAME(sc));
+ printf(": F/W reset failed. Neither RBL nor FLB started");
return ETIMEDOUT;
}
} else if ((FW_VERSION_MAJOR(sc) == 2) || (FW_VERSION_MAJOR(sc) == 3)) {
sc->sc_fw_ops = &aq_fw2x_ops;
} else {
- printf("%s: Unsupported F/W version %d.%d.%d\n",
- DEVNAME(sc),
+ printf(": Unsupported F/W version %d.%d.%d\n",
FW_VERSION_MAJOR(sc), FW_VERSION_MINOR(sc),
FW_VERSION_BUILD(sc));
return ENOTSUP;
(AQ_READ_REG(sc, AQ_INTR_CTRL_REG) & AQ_INTR_CTRL_RESET_IRQ) == 0,
1000, 10, &error);
if (error != 0) {
- printf("%s: atlantic: IRQ reset failed: %d\n", DEVNAME(sc),
- error);
+ printf(": IRQ reset failed: %d\n", error);
return error;
}
efuse_shadow_addr = AQ_READ_REG(sc, FW1X_MPI_EFUSEADDR_REG);
if (efuse_shadow_addr == 0) {
- printf("%s: cannot get efuse addr", DEVNAME(sc));
+ printf(": cannot get efuse addr\n");
return ENXIO;
}
return err;
if (mac_addr[0] == 0 && mac_addr[1] == 0) {
- printf("%s: mac address not found", DEVNAME(sc));
+ printf(": mac address not found\n");
return ENXIO;
}
memcpy(sc->sc_enaddr.ether_addr_octet,
(uint8_t *)mac_addr, ETHER_ADDR_LEN);
- DPRINTF((": %s", ether_sprintf(sc->sc_enaddr.ether_addr_octet)));
return 0;
}