netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] smc91x SuperH support
@ 2007-05-03  9:56 Nobuhiro Iwamatsu
  2007-05-08  5:17 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2007-05-03  9:56 UTC (permalink / raw)
  To: netdev; +Cc: nico, iwamatsu

Hi, all.

This patch supports SuperH of smc91x. 
smc91x installed on the board of SuperH comes to work by applying this patch. 
Please apply this patch .

regards,
 Nobuhiro

-- 
Nobuhiro Iwamatsu
	E-Mail : hemamu@t-base.ne.jp
	GPG ID : 3170EBE9 

Signed-off-by:	Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

--- a/drivers/net/smc91x.h	2007-05-03 18:47:19.000000000 +0900
+++ b/drivers/net/smc91x.h	2007-05-03 18:48:59.000000000 +0900
@@ -232,6 +232,40 @@
 #define SMC_insw(a, r, p, l)	insw((a) + (r), p, l)
 #define SMC_outsw(a, r, p, l)	outsw((a) + (r), p, l)
 
+#elif   defined(CONFIG_SUPERH)
+
+#if defined(CONFIG_SH_7780_SOLUTION_ENGINE) || defined(CONFIG_SH_7722_SOLUTION_ENGINE)
+#define SMC_CAN_USE_8BIT       0
+#define SMC_CAN_USE_16BIT      1
+#define SMC_CAN_USE_32BIT      0
+#define SMC_IO_SHIFT           0
+#define SMC_NOWAIT             1
+
+#define SMC_inb(a, r)          (inw((a) + ((r)&~1)) >> (8*(r%2)))&0xff
+#define SMC_inw(a, r)          inw((a) + (r))
+#define SMC_outb(v, a, r)      outw(((inw((a)+((r)&~1))*(0xff<<8*(r%2)))) | ((v)<<(8*(r&2)))), (a) + ((r)&~1))
+
+#define SMC_outw(v, a, r)      outw(v, (a) + (r))
+#define SMC_insw(a, r, p, l)   insw((a) + (r), p, l)
+#define SMC_outsw(a, r, p, l)  outsw((a) + (r), p, l)
+
+#else /* BOARDS */
+
+#define SMC_CAN_USE_8BIT       1
+#define SMC_CAN_USE_16BIT      1
+#define SMC_CAN_USE_32BIT      1
+
+#define SMC_inb(a, r)          inb((a) + (r))
+#define SMC_inw(a, r)          inw((a) + (r))
+#define SMC_outb(v, a, r)      outb(v, (a) + (r))
+#define SMC_outw(v, a, r)      outw(v, (a) + (r))
+#define SMC_insw(a, r, p, l)   insw((a) + (r), p, l)
+#define SMC_outsw(a, r, p, l)  outsw((a) + (r), p, l)
+
+#endif  /* BOARDS */
+
+#define set_irq_type(irq, type) do {} while (0)
+
 #elif   defined(CONFIG_M32R)
 
 #define SMC_CAN_USE_8BIT	0

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

* Re: [PATCH] smc91x SuperH support
  2007-05-03  9:56 [PATCH] smc91x SuperH support Nobuhiro Iwamatsu
@ 2007-05-08  5:17 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-05-08  5:17 UTC (permalink / raw)
  To: Nobuhiro Iwamatsu; +Cc: netdev, nico

Nobuhiro Iwamatsu wrote:
> Hi, all.
> 
> This patch supports SuperH of smc91x. 
> smc91x installed on the board of SuperH comes to work by applying this patch. 
> Please apply this patch .

applied



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

end of thread, other threads:[~2007-05-08  5:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-03  9:56 [PATCH] smc91x SuperH support Nobuhiro Iwamatsu
2007-05-08  5:17 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).