public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* qmgr for ixp4xx
@ 2008-12-02 18:44 Miguel Ángel Álvarez
  2008-12-04 21:06 ` Krzysztof Halasa
  0 siblings, 1 reply; 12+ messages in thread
From: Miguel Ángel Álvarez @ 2008-12-02 18:44 UTC (permalink / raw)
  To: netdev, Krzysztof Halasa

Hi

As I am trying to use my HSSs as 4E1, I find that the FIFOs for each
HDLC should be 1 word wide and not 4 words wide. I think that this
finally means that when accessing the queues, I have to do the
following modification.

diff -urN linux-2.6.26.7_hssorig/include/asm-arm/arch-ixp4xx/qmgr.h
linux-2.6.26.7/include/asm-arm/arch-ixp4xx/qmgr.h
--- linux-2.6.26.7_hssorig/include/asm-arm/arch-ixp4xx/qmgr.h	2008-10-22
23:46:18.000000000 +0200
+++ linux-2.6.26.7/include/asm-arm/arch-ixp4xx/qmgr.h	2008-12-02
10:47:23.000000000 +0100
@@ -67,16 +67,17 @@
 void qmgr_release_queue(unsigned int queue);


-static inline void qmgr_put_entry(unsigned int queue, u32 val)
+static inline void qmgr_put_entry(unsigned int queue, unsigned int pipe,
+                   u32 val)
 {
 	extern struct qmgr_regs __iomem *qmgr_regs;
-	__raw_writel(val, &qmgr_regs->acc[queue][0]);
+	__raw_writel(val, &qmgr_regs->acc[queue][pipe]);
 }

-static inline u32 qmgr_get_entry(unsigned int queue)
+static inline u32 qmgr_get_entry(unsigned int queue, unsigned int pipe)
 {
 	extern struct qmgr_regs __iomem *qmgr_regs;
-	return __raw_readl(&qmgr_regs->acc[queue][0]);
+	return __raw_readl(&qmgr_regs->acc[queue][pipe]);
 }

 static inline int qmgr_get_stat1(unsigned int queue)

Is it correct?

Thanks

Miguel Ángel Álvarez

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-12-10 16:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 18:44 qmgr for ixp4xx Miguel Ángel Álvarez
2008-12-04 21:06 ` Krzysztof Halasa
2008-12-05  8:51   ` Miguel Ángel Álvarez
2008-12-05 16:03     ` Krzysztof Halasa
2008-12-05 16:59       ` Miguel Ángel Álvarez
2008-12-05 18:29         ` Krzysztof Halasa
2008-12-09  9:48           ` Miguel Ángel Álvarez
2008-12-10  0:56             ` Krzysztof Halasa
2008-12-10  9:04               ` Miguel Ángel Álvarez
2008-12-10 16:32                 ` Miguel Ángel Álvarez
2008-12-09 16:44           ` Christian Hohnstaedt
2008-12-10  8:48             ` Miguel Ángel Álvarez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox