Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci print the device name at attach, like so:
details: https://anonhg.NetBSD.org/src/rev/c98a7a505a9e
branches: trunk
changeset: 762475:c98a7a505a9e
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Feb 21 14:43:58 2011 +0000
description:
print the device name at attach, like so:
ath0 at pci4 dev 0 function 0: Atheros 9280
diffstat:
sys/dev/pci/if_ath_pci.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 4f68b45a187c -r c98a7a505a9e sys/dev/pci/if_ath_pci.c
--- a/sys/dev/pci/if_ath_pci.c Mon Feb 21 13:42:57 2011 +0000
+++ b/sys/dev/pci/if_ath_pci.c Mon Feb 21 14:43:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ath_pci.c,v 1.40 2011/02/20 03:56:45 jmcneill Exp $ */
+/* $NetBSD: if_ath_pci.c,v 1.41 2011/02/21 14:43:58 jmcneill Exp $ */
/*-
* Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.40 2011/02/20 03:56:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ath_pci.c,v 1.41 2011/02/21 14:43:58 jmcneill Exp $");
/*
* PCI/Cardbus front-end for the Atheros Wireless LAN controller driver.
@@ -128,6 +128,7 @@
struct pci_attach_args *pa = aux;
pci_chipset_tag_t pc = pa->pa_pc;
const char *intrstr = NULL;
+ const char *devname;
pcireg_t mem_type;
sc->sc_dev = self;
@@ -135,7 +136,8 @@
psc->sc_pc = pc;
psc->sc_tag = pa->pa_tag;
- aprint_normal("\n");
+ devname = ath_hal_probe(PCI_VENDOR(pa->pa_id), PCI_PRODUCT(pa->pa_id));
+ aprint_normal(": %s\n", devname);
if (!ath_pci_setup(psc))
goto bad;
Home |
Main Index |
Thread Index |
Old Index