Fri Aug 7 06:50:48 2009 UTC ()
Pull up following revision(s) (requested by jmcneill in ticket #775):
	sys/arch/mips/atheros/ar5312_board.c: revision 1.2
	sys/arch/mips/atheros/ar5315.c: revision 1.6
	sys/arch/mips/atheros/ar5315_board.c: revision 1.2
	sys/arch/mips/atheros/dev/if_ath_arbus.c: revision 1.16
	sys/arch/mips/atheros/include/ar5312reg.h: revision 1.3
Update reference to the Atheros HAL exported headers.
`external/isc/atheros_hal/dist', former `contrib/dev/ath/' is now in cpp(1)'s
include path.
Fix build of MERAKI kernel.


(snj)
diff -r1.1 -r1.1.72.1 src/sys/arch/mips/atheros/ar5312_board.c
diff -r1.1 -r1.1.72.1 src/sys/arch/mips/atheros/ar5315_board.c
diff -r1.5 -r1.5.20.1 src/sys/arch/mips/atheros/ar5315.c
diff -r1.15 -r1.15.4.1 src/sys/arch/mips/atheros/dev/if_ath_arbus.c
diff -r1.2 -r1.2.74.1 src/sys/arch/mips/atheros/include/ar5312reg.h

cvs diff -r1.1 -r1.1.72.1 src/sys/arch/mips/atheros/ar5312_board.c (expand / switch to unified diff)

--- src/sys/arch/mips/atheros/ar5312_board.c 2006/09/26 06:37:32 1.1
+++ src/sys/arch/mips/atheros/ar5312_board.c 2009/08/07 06:50:47 1.1.72.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $Id: ar5312_board.c,v 1.1 2006/09/26 06:37:32 gdamore Exp $ */ 1/* $Id: ar5312_board.c,v 1.1.72.1 2009/08/07 06:50:47 snj Exp $ */
2/* 2/*
3 * Copyright (c) 2006 Urbana-Champaign Independent Media Center. 3 * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
4 * Copyright (c) 2006 Garrett D'Amore. 4 * Copyright (c) 2006 Garrett D'Amore.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code was written by Garrett D'Amore for the Champaign-Urbana 7 * This code was written by Garrett D'Amore for the Champaign-Urbana
8 * Community Wireless Network Project. 8 * Community Wireless Network Project.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or 10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following 11 * without modification, are permitted provided that the following
12 * conditions are met: 12 * conditions are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -30,37 +30,37 @@ @@ -30,37 +30,37 @@
30 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 30 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
31 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 31 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED. IN NO EVENT SHALL THE URBANA-CHAMPAIGN INDEPENDENT 32 * ARE DISCLAIMED. IN NO EVENT SHALL THE URBANA-CHAMPAIGN INDEPENDENT
33 * MEDIA CENTER OR GARRETT D'AMORE BE LIABLE FOR ANY DIRECT, INDIRECT, 33 * MEDIA CENTER OR GARRETT D'AMORE BE LIABLE FOR ANY DIRECT, INDIRECT,
34 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 34 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
35 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 35 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 36 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
37 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 37 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
38 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 38 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 39 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
40 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 40 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 */ 41 */
42#include <sys/cdefs.h> 42#include <sys/cdefs.h>
43__KERNEL_RCSID(0, "$NetBSD: ar5312_board.c,v 1.1 2006/09/26 06:37:32 gdamore Exp $"); 43__KERNEL_RCSID(0, "$NetBSD: ar5312_board.c,v 1.1.72.1 2009/08/07 06:50:47 snj Exp $");
44 44
45#include <sys/param.h> 45#include <sys/param.h>
46#include <sys/systm.h> 46#include <sys/systm.h>
47#include <sys/device.h> 47#include <sys/device.h>
48 48
49#include <machine/bus.h> 49#include <machine/bus.h>
50#include <mips/atheros/include/ar5312reg.h> 50#include <mips/atheros/include/ar5312reg.h>
51#include <mips/atheros/include/ar531xvar.h> 51#include <mips/atheros/include/ar531xvar.h>
52 52
53#include <contrib/dev/ath/ah_soc.h> 53#include <ah_soc.h>
54 54
55extern const char *ether_sprintf(const uint8_t *); 55extern const char *ether_sprintf(const uint8_t *);
56 56
57/* 57/*
58 * Locate the Board Configuration data using heuristics. 58 * Locate the Board Configuration data using heuristics.
59 * Search backward from the (aliased) end of flash looking 59 * Search backward from the (aliased) end of flash looking
60 * for the signature string that marks the start of the data. 60 * for the signature string that marks the start of the data.
61 * We search at most 500KB. 61 * We search at most 500KB.
62 */ 62 */
63const struct ar531x_boarddata * 63const struct ar531x_boarddata *
64ar531x_board_info(void) 64ar531x_board_info(void)
65{ 65{
66 static const struct ar531x_boarddata *board = NULL; 66 static const struct ar531x_boarddata *board = NULL;

cvs diff -r1.1 -r1.1.72.1 src/sys/arch/mips/atheros/ar5315_board.c (expand / switch to unified diff)

--- src/sys/arch/mips/atheros/ar5315_board.c 2006/09/26 06:37:32 1.1
+++ src/sys/arch/mips/atheros/ar5315_board.c 2009/08/07 06:50:48 1.1.72.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: ar5315_board.c,v 1.1 2006/09/26 06:37:32 gdamore Exp $ */ 1/* $NetBSD: ar5315_board.c,v 1.1.72.1 2009/08/07 06:50:48 snj Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2006 Urbana-Champaign Independent Media Center. 4 * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
5 * Copyright (c) 2006 Garrett D'Amore. 5 * Copyright (c) 2006 Garrett D'Amore.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Portions of this code were written by Garrett D'Amore for the 8 * Portions of this code were written by Garrett D'Amore for the
9 * Champaign-Urbana Community Wireless Network Project. 9 * Champaign-Urbana Community Wireless Network Project.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or 11 * Redistribution and use in source and binary forms, with or
12 * without modification, are permitted provided that the following 12 * without modification, are permitted provided that the following
13 * conditions are met: 13 * conditions are met:
14 * 1. Redistributions of source code must retain the above copyright 14 * 1. Redistributions of source code must retain the above copyright
@@ -36,47 +36,47 @@ @@ -36,47 +36,47 @@
36 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 36 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
37 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 37 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
38 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 38 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
41 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 */ 42 */
43 43
44/* 44/*
45 * This file provides code to locate board-specific configuration and radio 45 * This file provides code to locate board-specific configuration and radio
46 * information data in flash for the AR5315. 46 * information data in flash for the AR5315.
47 */ 47 */
48#include <sys/cdefs.h> 48#include <sys/cdefs.h>
49__KERNEL_RCSID(0, "$NetBSD: ar5315_board.c,v 1.1 2006/09/26 06:37:32 gdamore Exp $"); 49__KERNEL_RCSID(0, "$NetBSD: ar5315_board.c,v 1.1.72.1 2009/08/07 06:50:48 snj Exp $");
50 50
51#include "opt_ddb.h" 51#include "opt_ddb.h"
52#include "opt_kgdb.h" 52#include "opt_kgdb.h"
53 53
54#include "opt_memsize.h" 54#include "opt_memsize.h"
55#include <sys/param.h> 55#include <sys/param.h>
56#include <sys/systm.h> 56#include <sys/systm.h>
57#include <sys/kernel.h> 57#include <sys/kernel.h>
58#include <sys/buf.h> 58#include <sys/buf.h>
59 59
60#include <dev/cons.h> 60#include <dev/cons.h>
61 61
62#include <mips/cache.h> 62#include <mips/cache.h>
63#include <mips/locore.h> 63#include <mips/locore.h>
64#include <mips/cpuregs.h> 64#include <mips/cpuregs.h>
65 65
66#include <net/if.h> 66#include <net/if.h>
67#include <net/if_ether.h> 67#include <net/if_ether.h>
68 68
69#include <contrib/dev/ath/ah_soc.h> /* XXX really doesn't belong in hal */ 69#include <ah_soc.h> /* XXX really doesn't belong in hal */
70 70
71#include <mips/atheros/include/ar5315reg.h> 71#include <mips/atheros/include/ar5315reg.h>
72#include <mips/atheros/include/ar531xvar.h> 72#include <mips/atheros/include/ar531xvar.h>
73#include <mips/atheros/include/arbusvar.h> 73#include <mips/atheros/include/arbusvar.h>
74 74
75#include <machine/locore.h> 75#include <machine/locore.h>
76#include "com.h" 76#include "com.h"
77 77
78/* 78/*
79 * Locate the Board Configuration data using heuristics. 79 * Locate the Board Configuration data using heuristics.
80 * Search backward from the (aliased) end of flash looking 80 * Search backward from the (aliased) end of flash looking
81 * for the signature string that marks the start of the data. 81 * for the signature string that marks the start of the data.
82 * We search at most 500KB. 82 * We search at most 500KB.

cvs diff -r1.5 -r1.5.20.1 src/sys/arch/mips/atheros/ar5315.c (expand / switch to unified diff)

--- src/sys/arch/mips/atheros/ar5315.c 2008/01/23 05:23:59 1.5
+++ src/sys/arch/mips/atheros/ar5315.c 2009/08/07 06:50:48 1.5.20.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: ar5315.c,v 1.5 2008/01/23 05:23:59 dyoung Exp $ */ 1/* $NetBSD: ar5315.c,v 1.5.20.1 2009/08/07 06:50:48 snj Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2006 Urbana-Champaign Independent Media Center. 4 * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
5 * Copyright (c) 2006 Garrett D'Amore. 5 * Copyright (c) 2006 Garrett D'Amore.
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Portions of this code were written by Garrett D'Amore for the 8 * Portions of this code were written by Garrett D'Amore for the
9 * Champaign-Urbana Community Wireless Network Project. 9 * Champaign-Urbana Community Wireless Network Project.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or 11 * Redistribution and use in source and binary forms, with or
12 * without modification, are permitted provided that the following 12 * without modification, are permitted provided that the following
13 * conditions are met: 13 * conditions are met:
14 * 1. Redistributions of source code must retain the above copyright 14 * 1. Redistributions of source code must retain the above copyright
@@ -38,48 +38,48 @@ @@ -38,48 +38,48 @@
38 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 38 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 40 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
41 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 41 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 */ 42 */
43 43
44 44
45/* 45/*
46 * This file includes a bunch of implementation specific bits for 46 * This file includes a bunch of implementation specific bits for
47 * AR5315, which differs these from other members of the AR531X 47 * AR5315, which differs these from other members of the AR531X
48 * family. 48 * family.
49 */ 49 */
50#include <sys/cdefs.h> 50#include <sys/cdefs.h>
51__KERNEL_RCSID(0, "$NetBSD: ar5315.c,v 1.5 2008/01/23 05:23:59 dyoung Exp $"); 51__KERNEL_RCSID(0, "$NetBSD: ar5315.c,v 1.5.20.1 2009/08/07 06:50:48 snj Exp $");
52 52
53#include "opt_ddb.h" 53#include "opt_ddb.h"
54#include "opt_kgdb.h" 54#include "opt_kgdb.h"
55 55
56#include "opt_memsize.h" 56#include "opt_memsize.h"
57#include <sys/param.h> 57#include <sys/param.h>
58#include <sys/systm.h> 58#include <sys/systm.h>
59#include <sys/kernel.h> 59#include <sys/kernel.h>
60#include <sys/buf.h> 60#include <sys/buf.h>
61#include <sys/device.h> 61#include <sys/device.h>
62 62
63#include <mips/cache.h> 63#include <mips/cache.h>
64#include <mips/locore.h> 64#include <mips/locore.h>
65#include <mips/cpuregs.h> 65#include <mips/cpuregs.h>
66 66
67#include <net/if.h> 67#include <net/if.h>
68#include <net/if_ether.h> 68#include <net/if_ether.h>
69 69
70#include <prop/proplib.h> 70#include <prop/proplib.h>
71 71
72#include <contrib/dev/ath/ah_soc.h> /* XXX really doesn't belong in hal */ 72#include <ah_soc.h> /* XXX really doesn't belong in hal */
73 73
74#include <mips/atheros/include/ar5315reg.h> 74#include <mips/atheros/include/ar5315reg.h>
75#include <mips/atheros/include/ar531xvar.h> 75#include <mips/atheros/include/ar531xvar.h>
76#include <mips/atheros/include/arbusvar.h> 76#include <mips/atheros/include/arbusvar.h>
77 77
78#include <machine/locore.h> 78#include <machine/locore.h>
79 79
80/* helper macro for accessing system registers without bus space */ 80/* helper macro for accessing system registers without bus space */
81#define REGVAL(x) *((volatile uint32_t *)(MIPS_PHYS_TO_KSEG1((x)))) 81#define REGVAL(x) *((volatile uint32_t *)(MIPS_PHYS_TO_KSEG1((x))))
82#define GETSYSREG(x) REGVAL((x) + AR5315_SYSREG_BASE) 82#define GETSYSREG(x) REGVAL((x) + AR5315_SYSREG_BASE)
83#define PUTSYSREG(x,v) (REGVAL((x) + AR5315_SYSREG_BASE)) = (v) 83#define PUTSYSREG(x,v) (REGVAL((x) + AR5315_SYSREG_BASE)) = (v)
84#define GETPCIREG(x) REGVAL((x) + AR5315_PCI_BASE) 84#define GETPCIREG(x) REGVAL((x) + AR5315_PCI_BASE)
85#define PUTPCIREG(x,v) (REGVAL((x) + AR5315_PCI_BASE)) = (v) 85#define PUTPCIREG(x,v) (REGVAL((x) + AR5315_PCI_BASE)) = (v)

cvs diff -r1.15 -r1.15.4.1 src/sys/arch/mips/atheros/dev/if_ath_arbus.c (expand / switch to unified diff)

--- src/sys/arch/mips/atheros/dev/if_ath_arbus.c 2008/07/09 19:47:23 1.15
+++ src/sys/arch/mips/atheros/dev/if_ath_arbus.c 2009/08/07 06:50:48 1.15.4.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: if_ath_arbus.c,v 1.15 2008/07/09 19:47:23 joerg Exp $ */ 1/* $NetBSD: if_ath_arbus.c,v 1.15.4.1 2009/08/07 06:50:48 snj Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2006 Jared D. McNeill <jmcneill@invisible.ca> 4 * Copyright (c) 2006 Jared D. McNeill <jmcneill@invisible.ca>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -24,27 +24,27 @@ @@ -24,27 +24,27 @@
24 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 24 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
25 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 25 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
26 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 26 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
27 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE. 33 * POSSIBILITY OF SUCH DAMAGE.
34 */ 34 */
35 35
36#include <sys/cdefs.h> 36#include <sys/cdefs.h>
37__KERNEL_RCSID(0, "$NetBSD: if_ath_arbus.c,v 1.15 2008/07/09 19:47:23 joerg Exp $"); 37__KERNEL_RCSID(0, "$NetBSD: if_ath_arbus.c,v 1.15.4.1 2009/08/07 06:50:48 snj Exp $");
38 38
39#include <sys/param.h> 39#include <sys/param.h>
40#include <sys/systm.h> 40#include <sys/systm.h>
41#include <sys/device.h> 41#include <sys/device.h>
42#include <sys/mbuf.h> 42#include <sys/mbuf.h>
43#include <sys/malloc.h> 43#include <sys/malloc.h>
44#include <sys/kernel.h> 44#include <sys/kernel.h>
45#include <sys/errno.h> 45#include <sys/errno.h>
46 46
47#include <machine/bus.h> 47#include <machine/bus.h>
48#include <machine/intr.h> 48#include <machine/intr.h>
49 49
50#include <net/if.h> 50#include <net/if.h>
@@ -54,28 +54,29 @@ __KERNEL_RCSID(0, "$NetBSD: if_ath_arbus @@ -54,28 +54,29 @@ __KERNEL_RCSID(0, "$NetBSD: if_ath_arbus
54#include <net/if_arp.h> 54#include <net/if_arp.h>
55 55
56#include <netinet/in.h> 56#include <netinet/in.h>
57 57
58#include <net80211/ieee80211_netbsd.h> 58#include <net80211/ieee80211_netbsd.h>
59#include <net80211/ieee80211_var.h> 59#include <net80211/ieee80211_var.h>
60 60
61#include <mips/atheros/include/ar531xvar.h> 61#include <mips/atheros/include/ar531xvar.h>
62#include <mips/atheros/include/arbusvar.h> 62#include <mips/atheros/include/arbusvar.h>
63 63
64#include <dev/pci/pcidevs.h> 64#include <dev/pci/pcidevs.h>
65#include <dev/ic/ath_netbsd.h> 65#include <dev/ic/ath_netbsd.h>
66#include <dev/ic/athvar.h> 66#include <dev/ic/athvar.h>
67#include <contrib/dev/ath/ah.h> 67
68#include <contrib/dev/ath/ah_soc.h> /* XXX really doesn't belong in hal */ 68#include <ah.h>
 69#include <ah_soc.h> /* XXX really doesn't belong in hal */
69 70
70struct ath_arbus_softc { 71struct ath_arbus_softc {
71 struct ath_softc sc_ath; 72 struct ath_softc sc_ath;
72 bus_space_tag_t sc_iot; 73 bus_space_tag_t sc_iot;
73 bus_space_handle_t sc_ioh; 74 bus_space_handle_t sc_ioh;
74 void *sc_ih; 75 void *sc_ih;
75 struct ar531x_config sc_config; 76 struct ar531x_config sc_config;
76}; 77};
77 78
78static int ath_arbus_match(device_t, cfdata_t, void *); 79static int ath_arbus_match(device_t, cfdata_t, void *);
79static void ath_arbus_attach(device_t, device_t, void *); 80static void ath_arbus_attach(device_t, device_t, void *);
80static int ath_arbus_detach(device_t, int); 81static int ath_arbus_detach(device_t, int);
81 82

cvs diff -r1.2 -r1.2.74.1 src/sys/arch/mips/atheros/include/ar5312reg.h (expand / switch to unified diff)

--- src/sys/arch/mips/atheros/include/ar5312reg.h 2006/09/04 05:17:26 1.2
+++ src/sys/arch/mips/atheros/include/ar5312reg.h 2009/08/07 06:50:48 1.2.74.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $Id: ar5312reg.h,v 1.2 2006/09/04 05:17:26 gdamore Exp $ */ 1/* $Id: ar5312reg.h,v 1.2.74.1 2009/08/07 06:50:48 snj Exp $ */
2/* 2/*
3 * Copyright (c) 2006 Urbana-Champaign Independent Media Center. 3 * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
4 * Copyright (c) 2006 Garrett D'Amore. 4 * Copyright (c) 2006 Garrett D'Amore.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code was written by Garrett D'Amore for the Champaign-Urbana 7 * This code was written by Garrett D'Amore for the Champaign-Urbana
8 * Community Wireless Network Project. 8 * Community Wireless Network Project.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or 10 * Redistribution and use in source and binary forms, with or
11 * without modification, are permitted provided that the following 11 * without modification, are permitted provided that the following
12 * conditions are met: 12 * conditions are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -187,31 +187,32 @@ @@ -187,31 +187,32 @@
187#define AR5312_IRQ_WLAN0 0 187#define AR5312_IRQ_WLAN0 0
188#define AR5312_IRQ_ENET0 1 188#define AR5312_IRQ_ENET0 1
189#define AR5312_IRQ_ENET1 2 189#define AR5312_IRQ_ENET1 2
190#define AR5312_IRQ_WLAN1 3 190#define AR5312_IRQ_WLAN1 3
191#define AR5312_IRQ_MISC 4 191#define AR5312_IRQ_MISC 4
192 192
193#define AR5312_MISC_IRQ_TIMER 0 193#define AR5312_MISC_IRQ_TIMER 0
194#define AR5312_MISC_IRQ_AHBPERR 1 194#define AR5312_MISC_IRQ_AHBPERR 1
195#define AR5312_MISC_IRQ_AHBDMAE 2 195#define AR5312_MISC_IRQ_AHBDMAE 2
196#define AR5312_MISC_IRQ_GPIO 3 196#define AR5312_MISC_IRQ_GPIO 3
197#define AR5312_MISC_IRQ_UART0 4 197#define AR5312_MISC_IRQ_UART0 4
198#define AR5312_MISC_IRQ_UART0_DMA 5 198#define AR5312_MISC_IRQ_UART0_DMA 5
199#define AR5312_MISC_IRQ_WDOG 6 199#define AR5312_MISC_IRQ_WDOG 6
 200
200/* 201/*
201 * Board data. This is located in flash somewhere, ar531x_board_info 202 * Board data. This is located in flash somewhere, ar531x_board_info
202 * locates it. 203 * locates it.
203 */ 204 */
204#include <contrib/dev/ath/ah_soc.h> /* XXX really doesn't belong in hal */ 205#include <ah_soc.h> /* XXX really doesn't belong in hal */
205 206
206/* XXX write-around for now */ 207/* XXX write-around for now */
207#define AR5312_BOARD_MAGIC AR531X_BD_MAGIC 208#define AR5312_BOARD_MAGIC AR531X_BD_MAGIC
208 209
209/* config bits */ 210/* config bits */
210#define AR5312_BOARD_CONFIG_ENET0 BD_ENET0 211#define AR5312_BOARD_CONFIG_ENET0 BD_ENET0
211#define AR5312_BOARD_CONFIG_ENET1 BD_ENET1 212#define AR5312_BOARD_CONFIG_ENET1 BD_ENET1
212#define AR5312_BOARD_CONFIG_UART1 BD_UART1 213#define AR5312_BOARD_CONFIG_UART1 BD_UART1
213#define AR5312_BOARD_CONFIG_UART0 BD_UART0 214#define AR5312_BOARD_CONFIG_UART0 BD_UART0
214#define AR5312_BOARD_CONFIG_RSTFACTORY BD_RSTFACTORY 215#define AR5312_BOARD_CONFIG_RSTFACTORY BD_RSTFACTORY
215#define AR5312_BOARD_CONFIG_SYSLED BD_SYSLED 216#define AR5312_BOARD_CONFIG_SYSLED BD_SYSLED
216#define AR5312_BOARD_CONFIG_EXTUARTCLK BD_EXTUARTCLK 217#define AR5312_BOARD_CONFIG_EXTUARTCLK BD_EXTUARTCLK
217#define AR5312_BOARD_CONFIG_CPUFREQ BD_CPUFREQ 218#define AR5312_BOARD_CONFIG_CPUFREQ BD_CPUFREQ