1211476Sadrian/*- 2211476Sadrian * Copyright (c) 2010 Adrian Chadd 3211476Sadrian * All rights reserved. 4211476Sadrian * 5211476Sadrian * Redistribution and use in source and binary forms, with or without 6211476Sadrian * modification, are permitted provided that the following conditions 7211476Sadrian * are met: 8211476Sadrian * 1. Redistributions of source code must retain the above copyright 9211476Sadrian * notice, this list of conditions and the following disclaimer. 10211476Sadrian * 2. Redistributions in binary form must reproduce the above copyright 11211476Sadrian * notice, this list of conditions and the following disclaimer in the 12211476Sadrian * documentation and/or other materials provided with the distribution. 13211476Sadrian * 14211476Sadrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15211476Sadrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16211476Sadrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17211476Sadrian * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18211476Sadrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19211476Sadrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20211476Sadrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21211476Sadrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22211476Sadrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23211476Sadrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24211476Sadrian * SUCH DAMAGE. 25211476Sadrian */ 26211476Sadrian 27211476Sadrian/* $FreeBSD$ */ 28211476Sadrian 29211476Sadrian#ifndef __AR71XX_CHIP_H__ 30211476Sadrian#define __AR71XX_CHIP_H__ 31211476Sadrian 32211476Sadrianextern struct ar71xx_cpu_def ar71xx_chip_def; 33234326Sadrianextern void ar71xx_chip_set_mii_speed(uint32_t unit, uint32_t speed); 34234906Sadrianextern void ar71xx_chip_set_mii_if(uint32_t unit, uint32_t mii_if); 35211476Sadrian 36211476Sadrian#endif 37