summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/ocpbus.h
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2008-03-12 16:32:08 +0000
committerraj <raj@FreeBSD.org>2008-03-12 16:32:08 +0000
commit8e81cff1fea20b1d0d53988daff826286c50640c (patch)
treebee3dfa13f4fb01fa9d5de6630099aac13d777f4 /sys/powerpc/include/ocpbus.h
parent054d727b12bc095749d9c28ef9354f5aab773391 (diff)
downloadFreeBSD-src-8e81cff1fea20b1d0d53988daff826286c50640c.zip
FreeBSD-src-8e81cff1fea20b1d0d53988daff826286c50640c.tar.gz
Obtain TSEC h/w address from the parent bus (OCP) and not rely blindly on what
might be currently programmed into the registers. Underlying firmware (U-Boot) would typically program MAC address into the first unit only, and others are left uninitialized. It is now possible to retrieve and program MAC address for all units properly, provided they were passed on in the bootinfo metadata. Reviewed by: imp, marcel Approved by: cognet (mentor)
Diffstat (limited to 'sys/powerpc/include/ocpbus.h')
-rw-r--r--sys/powerpc/include/ocpbus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/powerpc/include/ocpbus.h b/sys/powerpc/include/ocpbus.h
index 6cd7f9e..cbe4cf9 100644
--- a/sys/powerpc/include/ocpbus.h
+++ b/sys/powerpc/include/ocpbus.h
@@ -32,6 +32,7 @@
#define OCPBUS_IVAR_DEVTYPE 1
#define OCPBUS_IVAR_CLOCK 2
#define OCPBUS_IVAR_HWUNIT 3
+#define OCPBUS_IVAR_MACADDR 4
/* Device types. */
#define OCPBUS_DEVTYPE_PIC 1
OpenPOWER on IntegriCloud