summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcivar.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-11-27 06:41:28 +0000
committerimp <imp@FreeBSD.org>2002-11-27 06:41:28 +0000
commit5a806bdbdee9e13bd51cc934d44461cb417c21ba (patch)
treee27728d0d62643d537703709ce2f92ce251092fa /sys/dev/pci/pcivar.h
parent7153bb5d5537f59dd7cad8475561353f64f08c12 (diff)
downloadFreeBSD-src-5a806bdbdee9e13bd51cc934d44461cb417c21ba.zip
FreeBSD-src-5a806bdbdee9e13bd51cc934d44461cb417c21ba.tar.gz
Add a new cardbus specific ivar: PCI_IVAR_ETHADDR. Some pci-like
buses support querying the MAC address in a standard-for-that-bus way. The base pci bus returns NULL for this IVAR always. Submitted by: sam Approved by: re (blanket for NEWCARD)
Diffstat (limited to 'sys/dev/pci/pcivar.h')
-rw-r--r--sys/dev/pci/pcivar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index 2b15c4d..45df9e4 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -177,6 +177,7 @@ enum pci_device_ivars {
PCI_IVAR_BUS,
PCI_IVAR_SLOT,
PCI_IVAR_FUNCTION,
+ PCI_IVAR_ETHADDR,
};
/*
@@ -199,6 +200,7 @@ PCI_ACCESSOR(irq, IRQ, u_int8_t)
PCI_ACCESSOR(bus, BUS, u_int8_t)
PCI_ACCESSOR(slot, SLOT, u_int8_t)
PCI_ACCESSOR(function, FUNCTION, u_int8_t)
+PCI_ACCESSOR(ether, ETHADDR, u_int8_t *)
#undef PCI_ACCESSOR
OpenPOWER on IntegriCloud