ar71xx_setup.h revision 253027
1254721Semaste/*-
2254721Semaste * Copyright (c) 2010 Adrian Chadd
3254721Semaste * All rights reserved.
4254721Semaste *
5254721Semaste * Redistribution and use in source and binary forms, with or without
6254721Semaste * modification, are permitted provided that the following conditions
7254721Semaste * are met:
8254721Semaste * 1. Redistributions of source code must retain the above copyright
9254721Semaste *    notice, this list of conditions and the following disclaimer.
10254721Semaste * 2. Redistributions in binary form must reproduce the above copyright
11254721Semaste *    notice, this list of conditions and the following disclaimer in the
12254721Semaste *    documentation and/or other materials provided with the distribution.
13263367Semaste *
14254721Semaste * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15254721Semaste * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16254721Semaste * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17254721Semaste * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18254721Semaste * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19254721Semaste * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20254721Semaste * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21254721Semaste * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22254721Semaste * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23254721Semaste * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24254721Semaste * SUCH DAMAGE.
25254721Semaste */
26254721Semaste
27254721Semaste/* $FreeBSD: head/sys/mips/atheros/ar71xx_setup.h 253027 2013-07-08 06:10:29Z adrian $ */
28254721Semaste
29254721Semaste#ifndef	__AR71XX_SETUP_H__
30254721Semaste#define	__AR71XX_SETUP_H__
31254721Semaste
32254721Semasteenum ar71xx_soc_type {
33254721Semaste	AR71XX_SOC_UNKNOWN,
34254721Semaste	AR71XX_SOC_AR7130,
35254721Semaste	AR71XX_SOC_AR7141,
36254721Semaste	AR71XX_SOC_AR7161,
37254721Semaste	AR71XX_SOC_AR7240,
38254721Semaste	AR71XX_SOC_AR7241,
39254721Semaste	AR71XX_SOC_AR7242,
40254721Semaste	AR71XX_SOC_AR9130,
41254721Semaste	AR71XX_SOC_AR9132,
42254721Semaste	AR71XX_SOC_AR9330,
43254721Semaste	AR71XX_SOC_AR9331,
44254721Semaste	AR71XX_SOC_AR9341,
45254721Semaste	AR71XX_SOC_AR9342,
46254721Semaste	AR71XX_SOC_AR9344,
47254721Semaste};
48254721Semasteextern enum ar71xx_soc_type ar71xx_soc;
49254721Semaste
50254721Semasteextern void ar71xx_detect_sys_type(void);
51254721Semasteextern const char *ar71xx_get_system_type(void);
52254721Semaste
53254721Semaste#endif
54254721Semaste