projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kernel] generic-2.6/2.6.30: gets rid of the length limitation on the name in the...
[openwrt.git]
/
target
/
linux
/
atheros
/
patches-2.6.28
/
105-ar2315_pci.patch
diff --git
a/target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch
b/target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch
index
69c3349
..
7c5afbd
100644
(file)
--- a/
target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch
+++ b/
target/linux/atheros/patches-2.6.28/105-ar2315_pci.patch
@@
-7,7
+7,7
@@
+obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o
--- /dev/null
+++ b/arch/mips/ar231x/pci.c
+obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o
--- /dev/null
+++ b/arch/mips/ar231x/pci.c
-@@ -0,0 +1,23
1
@@
+@@ -0,0 +1,23
0
@@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
@@
-39,13
+39,12
@@
+#include <ar231x_platform.h>
+#include <ar231x.h>
+#include <ar2315_regs.h>
+#include <ar231x_platform.h>
+#include <ar231x.h>
+#include <ar2315_regs.h>
++#include "devices.h"
+
+#define AR531X_MEM_BASE 0x80800000UL
+#define AR531X_MEM_SIZE 0x00ffffffUL
+#define AR531X_IO_SIZE 0x00007fffUL
+
+
+#define AR531X_MEM_BASE 0x80800000UL
+#define AR531X_MEM_SIZE 0x00ffffffUL
+#define AR531X_IO_SIZE 0x00007fffUL
+
-+#define IS_2315() (current_cpu_data.cputype == CPU_4KEC)
-+
+static unsigned long configspace;
+
+static int config_access(int devfn, int where, int size, u32 *ptr, bool write)
+static unsigned long configspace;
+
+static int config_access(int devfn, int where, int size, u32 *ptr, bool write)
@@
-184,7
+183,7
@@
+{
+ u32 reg;
+
+{
+ u32 reg;
+
-+ if (
!IS_2315()
)
++ if (
ar231x_devtype != DEV_TYPE_AR2315
)
+ return -ENODEV;
+
+ configspace = (unsigned long) ioremap_nocache(0x80000000, 1*1024*1024); /* Remap PCI config space */
+ return -ENODEV;
+
+ configspace = (unsigned long) ioremap_nocache(0x80000000, 1*1024*1024); /* Remap PCI config space */
@@
-257,7
+256,7
@@
+ default y
--- a/arch/mips/ar231x/ar2315.c
+++ b/arch/mips/ar231x/ar2315.c
+ default y
--- a/arch/mips/ar231x/ar2315.c
+++ b/arch/mips/ar231x/ar2315.c
-@@ -6
3,6 +63
,27 @@ static inline void ar2315_gpio_irq(void)
+@@ -6
1,6 +61
,27 @@ static inline void ar2315_gpio_irq(void)
do_IRQ(AR531X_GPIO_IRQ_BASE + bit);
}
do_IRQ(AR531X_GPIO_IRQ_BASE + bit);
}
@@
-285,7
+284,7
@@
/*
* Called when an interrupt is received, this function
/*
* Called when an interrupt is received, this function
-@@ -
81,6 +102
,10 @@ ar2315_irq_dispatch(void)
+@@ -
79,6 +100
,10 @@ ar2315_irq_dispatch(void)
do_IRQ(AR2315_IRQ_WLAN0_INTRS);
else if (pending & CAUSEF_IP4)
do_IRQ(AR2315_IRQ_ENET0_INTRS);
do_IRQ(AR2315_IRQ_WLAN0_INTRS);
else if (pending & CAUSEF_IP4)
do_IRQ(AR2315_IRQ_ENET0_INTRS);
This page took
0.02697 seconds
and
4
git commands to generate.