summaryrefslogtreecommitdiff
path: root/sys/arch/arc/pci/pbcpcibus.c
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-03-23 11:34:37 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-03-23 11:34:37 +0000
commitb9f2610c72d09d03f8059e9a1625b5795e0ef589 (patch)
treea3fa1a523261931a9011a24de3a0ed94668b000b /sys/arch/arc/pci/pbcpcibus.c
parent58fd4c6b54959c8c0202ef0f39470fb046627bcd (diff)
Adding more arches require more structuring and cleanup. More to come...
Diffstat (limited to 'sys/arch/arc/pci/pbcpcibus.c')
-rw-r--r--sys/arch/arc/pci/pbcpcibus.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/arc/pci/pbcpcibus.c b/sys/arch/arc/pci/pbcpcibus.c
index 0bc374b8d39..61a48bc0368 100644
--- a/sys/arch/arc/pci/pbcpcibus.c
+++ b/sys/arch/arc/pci/pbcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pbcpcibus.c,v 1.1 1997/03/12 19:17:00 pefo Exp $ */
+/* $OpenBSD: pbcpcibus.c,v 1.2 1997/03/23 11:34:35 pefo Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -57,6 +57,7 @@
extern vm_map_t phys_map;
extern int cputype;
+extern char eth_hw_addr[]; /* Hardware ethernet address stored elsewhere */
int pbcpcibrmatch __P((struct device *, void *, void *));
void pbcpcibrattach __P((struct device *, struct device *, void *));
@@ -327,12 +328,7 @@ pbc_ether_hw_addr(cp)
u_int8_t *cp;
{
if(cputype == ALGOR_P4032) {
- cp[0] = 0x00;
- cp[1] = 0x40;
- cp[2] = 0xbc;
- cp[3] = 0x03;
- cp[4] = 0x00;
- cp[5] = 0x33;
+ bcopy(eth_hw_addr, cp, 6);
return(0);
}
return(-1);