1280123Sadrian/*- 2280123Sadrian * Copyright (c) 2015, Adrian Chadd <adrian@FreeBSD.org> 3280123Sadrian * All rights reserved. 4280123Sadrian * 5280123Sadrian * Redistribution and use in source and binary forms, with or without 6280123Sadrian * modification, are permitted provided that the following conditions 7280123Sadrian * are met: 8280123Sadrian * 1. Redistributions of source code must retain the above copyright 9280123Sadrian * notice unmodified, this list of conditions, and the following 10280123Sadrian * disclaimer. 11280123Sadrian * 2. Redistributions in binary form must reproduce the above copyright 12280123Sadrian * notice, this list of conditions and the following disclaimer in the 13280123Sadrian * documentation and/or other materials provided with the distribution. 14280123Sadrian * 15280123Sadrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16280123Sadrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17280123Sadrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18280123Sadrian * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19280123Sadrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20280123Sadrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21280123Sadrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22280123Sadrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23280123Sadrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24280123Sadrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25280123Sadrian * SUCH DAMAGE. 26280123Sadrian * 27280123Sadrian * $FreeBSD: releng/11.0/sys/mips/atheros/ar71xx_macaddr.h 280798 2015-03-28 23:40:29Z adrian $ 28280123Sadrian */ 29280123Sadrian 30280123Sadrian#ifndef __ATHEROS_AR71XX_MACADDR_H__ 31280123Sadrian#define __ATHEROS_AR71XX_MACADDR_H__ 32280123Sadrian 33280798Sadrianextern uint8_t ar71xx_board_mac_addr[ETHER_ADDR_LEN]; 34280798Sadrian 35280123Sadrianextern int ar71xx_mac_addr_init(unsigned char *dst, const unsigned char *src, 36280123Sadrian int offset, int is_local); 37280123Sadrianextern int ar71xx_mac_addr_random_init(unsigned char *dst); 38280123Sadrian 39280123Sadrian#endif /* __ATHEROS_AR71XX_MACADDR_H__ */ 40