Deleted Added
sdiff udiff text old ( 223562 ) new ( 248844 )
full compact
1/*-
2 * Copyright (c) 2010 Adrian Chadd
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_setup.c 223562 2011-06-26 10:07:48Z kevlo $");
29
30#include "opt_ddb.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/bus.h>

--- 10 unchanged lines hidden (view full) ---

47#include <machine/cpu.h>
48#include <machine/cpuregs.h>
49#include <machine/hwfunc.h>
50#include <machine/md_var.h>
51#include <machine/trap.h>
52#include <machine/vmparam.h>
53
54#include <mips/atheros/ar71xxreg.h>
55#include <mips/atheros/ar71xx_setup.h>
56
57#include <mips/atheros/ar71xx_cpudef.h>
58
59#include <mips/atheros/ar71xx_chip.h>
60#include <mips/atheros/ar724x_chip.h>
61#include <mips/atheros/ar91xx_chip.h>
62
63#include <mips/sentry5/s5reg.h>
64
65#define AR71XX_SYS_TYPE_LEN 128
66
67static char ar71xx_sys_type[AR71XX_SYS_TYPE_LEN];
68enum ar71xx_soc_type ar71xx_soc;
69struct ar71xx_cpu_def * ar71xx_cpu_ops = NULL;
70
71void
72ar71xx_detect_sys_type(void)

--- 64 unchanged lines hidden (view full) ---

137 break;
138
139 case AR91XX_REV_ID_MINOR_AR9132:
140 ar71xx_soc = AR71XX_SOC_AR9132;
141 chip = "9132";
142 break;
143 }
144 break;
145
146
147 default:
148 panic("ar71xx: unknown chip id:0x%08x\n", id);
149 }
150
151 sprintf(ar71xx_sys_type, "Atheros AR%s rev %u", chip, rev);
152}
153
154const char *
155ar71xx_get_system_type(void)
156{
157 return ar71xx_sys_type;
158}
159