diff options
author | 2013-03-21 09:29:12 +0000 | |
---|---|---|
committer | 2013-03-21 09:29:12 +0000 | |
commit | 1eaff80d93c4343a0f1d92302e5883c4625be68a (patch) | |
tree | 7f23796100333c05179199b0f44a4c2479d0d68a /sys/arch/octeon/dev | |
parent | fix detection of the MAC address by reading it from the correct address, (diff) | |
download | wireguard-openbsd-1eaff80d93c4343a0f1d92302e5883c4625be68a.tar.xz wireguard-openbsd-1eaff80d93c4343a0f1d92302e5883c4625be68a.zip |
- remove two now-unused macros.
ok yasuoka@
Diffstat (limited to 'sys/arch/octeon/dev')
-rw-r--r-- | sys/arch/octeon/dev/if_cnmac.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/arch/octeon/dev/if_cnmac.c b/sys/arch/octeon/dev/if_cnmac.c index 1f8e6747107..79212cf6c9d 100644 --- a/sys/arch/octeon/dev/if_cnmac.c +++ b/sys/arch/octeon/dev/if_cnmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cnmac.c,v 1.8 2013/03/21 09:26:31 jasper Exp $ */ +/* $OpenBSD: if_cnmac.c,v 1.9 2013/03/21 09:29:12 jasper Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -491,20 +491,6 @@ octeon_eth_smi_init(struct octeon_eth_softc *sc) /* ---- XXX */ -#define ADDR2UINT64(u, a) \ - do { \ - u = \ - (((uint64_t)a[0] << 40) | ((uint64_t)a[1] << 32) | \ - ((uint64_t)a[2] << 24) | ((uint64_t)a[3] << 16) | \ - ((uint64_t)a[4] << 8) | ((uint64_t)a[5] << 0)); \ - } while (0) -#define UINT642ADDR(a, u) \ - do { \ - a[0] = (uint8_t)((u) >> 40); a[1] = (uint8_t)((u) >> 32); \ - a[2] = (uint8_t)((u) >> 24); a[3] = (uint8_t)((u) >> 16); \ - a[4] = (uint8_t)((u) >> 8); a[5] = (uint8_t)((u) >> 0); \ - } while (0) - static void octeon_eth_board_mac_addr(uint8_t *enaddr) { |