* [PATCH] alpha: add io{read,write}{16,32}be functions
@ 2011-11-30 8:01 Michael Cree
2011-12-06 18:02 ` Raúl Porcel
2012-04-24 5:51 ` Jonathan Nieder
0 siblings, 2 replies; 7+ messages in thread
From: Michael Cree @ 2011-11-30 8:01 UTC (permalink / raw)
To: linux-alpha
Cc: Michael Cree, linux-kernel, Matt Turner, Richard Henderson,
Ivan Kokshaysky, 649468, Ben Hutchings
These functions are used in some PCI drivers with big-endian
MMIO space.
Admittedly it is almost certain that no one this side of the
Moon would use such a card in an Alpha but it does get us
closer to being able to build allyesconfig or allmodconfig,
and it enables the Debian default generic config to build.
Signed-off-by: Michael Cree <mcree@orcon.net.nz>
---
arch/alpha/include/asm/io.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
index 56ff965..6365ef2 100644
--- a/arch/alpha/include/asm/io.h
+++ b/arch/alpha/include/asm/io.h
@@ -490,6 +490,11 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
}
#endif
+#define ioread16be(p) be16_to_cpu(ioread16(p))
+#define ioread32be(p) be32_to_cpu(ioread32(p))
+#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
+#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
+
#define inb_p inb
#define inw_p inw
#define inl_p inl
--
1.7.4.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] alpha: add io{read,write}{16,32}be functions
2011-11-30 8:01 [PATCH] alpha: add io{read,write}{16,32}be functions Michael Cree
@ 2011-12-06 18:02 ` Raúl Porcel
2012-04-24 5:51 ` Jonathan Nieder
1 sibling, 0 replies; 7+ messages in thread
From: Raúl Porcel @ 2011-12-06 18:02 UTC (permalink / raw)
To: Michael Cree
Cc: linux-alpha, linux-kernel, Matt Turner, Richard Henderson,
Ivan Kokshaysky, 649468, Ben Hutchings
On 11/30/2011 09:01 AM, Michael Cree wrote:
> These functions are used in some PCI drivers with big-endian
> MMIO space.
>
> Admittedly it is almost certain that no one this side of the
> Moon would use such a card in an Alpha but it does get us
> closer to being able to build allyesconfig or allmodconfig,
> and it enables the Debian default generic config to build.
>
> Signed-off-by: Michael Cree <mcree@orcon.net.nz>
> ---
[snip]
WFM on my DS20E using 3.2.0-rc4-00231-g958c6c2
so,
Tested-by: Raúl Porcel <armin76@gentoo.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] alpha: add io{read,write}{16,32}be functions
@ 2011-12-06 18:02 ` Raúl Porcel
0 siblings, 0 replies; 7+ messages in thread
From: Raúl Porcel @ 2011-12-06 18:02 UTC (permalink / raw)
To: Michael Cree
Cc: linux-alpha, linux-kernel, Matt Turner, Richard Henderson,
Ivan Kokshaysky, 649468, Ben Hutchings
On 11/30/2011 09:01 AM, Michael Cree wrote:
> These functions are used in some PCI drivers with big-endian
> MMIO space.
>
> Admittedly it is almost certain that no one this side of the
> Moon would use such a card in an Alpha but it does get us
> closer to being able to build allyesconfig or allmodconfig,
> and it enables the Debian default generic config to build.
>
> Signed-off-by: Michael Cree <mcree@orcon.net.nz>
> ---
[snip]
WFM on my DS20E using 3.2.0-rc4-00231-g958c6c2
so,
Tested-by: Raúl Porcel <armin76@gentoo.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] alpha: add io{read,write}{16,32}be functions
2011-11-30 8:01 [PATCH] alpha: add io{read,write}{16,32}be functions Michael Cree
2011-12-06 18:02 ` Raúl Porcel
@ 2012-04-24 5:51 ` Jonathan Nieder
2012-04-24 20:01 ` Matt Turner
1 sibling, 1 reply; 7+ messages in thread
From: Jonathan Nieder @ 2012-04-24 5:51 UTC (permalink / raw)
To: Matt Turner
Cc: linux-alpha, linux-kernel, Michael Cree, Richard Henderson,
Ivan Kokshaysky, Ben Hutchings, Raúl Porcel
Hi Matt et al,
Michael Cree wrote:
> These functions are used in some PCI drivers with big-endian
> MMIO space.
>
> Admittedly it is almost certain that no one this side of the
> Moon would use such a card in an Alpha but it does get us
> closer to being able to build allyesconfig or allmodconfig,
[...]
> --- a/arch/alpha/include/asm/io.h
> +++ b/arch/alpha/include/asm/io.h
> @@ -490,6 +490,11 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
> }
> #endif
>
> +#define ioread16be(p) be16_to_cpu(ioread16(p))
> +#define ioread32be(p) be32_to_cpu(ioread32(p))
> +#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
> +#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
> +
> #define inb_p inb
This patch has been in use in Debian's development branch since
January. Does it look sensible to you? (If so, I'd like to see it in
mainline eventually so we can more easily share bugfixes depending on
it in the future.)
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] alpha: add io{read,write}{16,32}be functions
2012-04-24 5:51 ` Jonathan Nieder
@ 2012-04-24 20:01 ` Matt Turner
0 siblings, 0 replies; 7+ messages in thread
From: Matt Turner @ 2012-04-24 20:01 UTC (permalink / raw)
To: Jonathan Nieder
Cc: linux-alpha, linux-kernel, Michael Cree, Richard Henderson,
Ivan Kokshaysky, Ben Hutchings, Raúl Porcel
On Tue, Apr 24, 2012 at 1:51 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Hi Matt et al,
>
> Michael Cree wrote:
>
>> These functions are used in some PCI drivers with big-endian
>> MMIO space.
>>
>> Admittedly it is almost certain that no one this side of the
>> Moon would use such a card in an Alpha but it does get us
>> closer to being able to build allyesconfig or allmodconfig,
> [...]
>> --- a/arch/alpha/include/asm/io.h
>> +++ b/arch/alpha/include/asm/io.h
>> @@ -490,6 +490,11 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
>> }
>> #endif
>>
>> +#define ioread16be(p) be16_to_cpu(ioread16(p))
>> +#define ioread32be(p) be32_to_cpu(ioread32(p))
>> +#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
>> +#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
>> +
>> #define inb_p inb
>
> This patch has been in use in Debian's development branch since
> January. Does it look sensible to you? (If so, I'd like to see it in
> mainline eventually so we can more easily share bugfixes depending on
> it in the future.)
>
> Thanks,
> Jonathan
I recently got my kernel.org tree set up again, so I just applied this.
Thanks, and please point me to any patches I should apply.
Matt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] alpha: add io{read,write}{16,32}be functions
@ 2012-04-24 20:01 ` Matt Turner
0 siblings, 0 replies; 7+ messages in thread
From: Matt Turner @ 2012-04-24 20:01 UTC (permalink / raw)
To: Jonathan Nieder
Cc: linux-alpha, linux-kernel, Michael Cree, Richard Henderson,
Ivan Kokshaysky, Ben Hutchings, Raúl Porcel
On Tue, Apr 24, 2012 at 1:51 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Hi Matt et al,
>
> Michael Cree wrote:
>
>> These functions are used in some PCI drivers with big-endian
>> MMIO space.
>>
>> Admittedly it is almost certain that no one this side of the
>> Moon would use such a card in an Alpha but it does get us
>> closer to being able to build allyesconfig or allmodconfig,
> [...]
>> --- a/arch/alpha/include/asm/io.h
>> +++ b/arch/alpha/include/asm/io.h
>> @@ -490,6 +490,11 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
>> }
>> #endif
>>
>> +#define ioread16be(p) be16_to_cpu(ioread16(p))
>> +#define ioread32be(p) be32_to_cpu(ioread32(p))
>> +#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
>> +#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
>> +
>> #define inb_p inb
>
> This patch has been in use in Debian's development branch since
> January. Does it look sensible to you? (If so, I'd like to see it in
> mainline eventually so we can more easily share bugfixes depending on
> it in the future.)
>
> Thanks,
> Jonathan
I recently got my kernel.org tree set up again, so I just applied this.
Thanks, and please point me to any patches I should apply.
Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] alpha: add io{read,write}{16,32}be functions
2012-04-24 20:01 ` Matt Turner
(?)
@ 2012-04-25 2:11 ` Jonathan Nieder
-1 siblings, 0 replies; 7+ messages in thread
From: Jonathan Nieder @ 2012-04-25 2:11 UTC (permalink / raw)
To: Matt Turner
Cc: linux-alpha, linux-kernel, Michael Cree, Richard Henderson,
Ivan Kokshaysky, Ben Hutchings, Raúl Porcel
Matt Turner wrote:
> I recently got my kernel.org tree set up again, so I just applied
> this.
Thanks! Glad to see more DEC syscalls flowing in.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-04-25 2:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-30 8:01 [PATCH] alpha: add io{read,write}{16,32}be functions Michael Cree
2011-12-06 18:02 ` Raúl Porcel
2011-12-06 18:02 ` Raúl Porcel
2012-04-24 5:51 ` Jonathan Nieder
2012-04-24 20:01 ` Matt Turner
2012-04-24 20:01 ` Matt Turner
2012-04-25 2:11 ` Jonathan Nieder
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.