From a3ad8e26a4ac96838b2963cb462770c70c9f6443 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 19 Oct 2003 23:22:11 +0000 Subject: * Patch by Steven Scholz, 18 Oct 2003: Fix AT91RM9200 ethernet driver * Patch by Nye Liu, 17 Oct 2003: Fix typo in include/mpc8xx.h * Patch by Richard Woodruff, 16 Oct 03: Fixes for cpu/arm925/interrupt.c - Initialize timestamp & lastdec vars. - fix timestamp overflows. - fix lastdec overflow. - smarter normalization to allow udelay() below 1ms to work. * Patch by Scott McNutt, 16 Oct add networking support for the Altera Nios Development Kit, Cyclone Edition (DK-1C20) * Patch by Jon Diekema, 14 Oct 2003: add hint about doc/README.silent to README file --- drivers/smc91111.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'drivers/smc91111.h') diff --git a/drivers/smc91111.h b/drivers/smc91111.h index 4efa256565..fc694ac725 100644 --- a/drivers/smc91111.h +++ b/drivers/smc91111.h @@ -178,6 +178,31 @@ typedef unsigned long int dword; }) #endif +#if defined(CONFIG_SMC_USE_32_BIT) + +#define SMC_inl(r) (*((volatile dword *)(SMC_BASE_ADDRESS+(r)))) + +#define SMC_insl(r,b,l) ({ int __i ; \ + dword *__b2; \ + __b2 = (dword *) b; \ + for (__i = 0; __i < l; __i++) { \ + *(__b2 + __i) = SMC_inl(r); \ + SMC_inl(0); \ + }; \ + }) + +#define SMC_outl(d,r) (*((volatile dword *)(SMC_BASE_ADDRESS+(r))) = d) + +#define SMC_outsl(r,b,l) ({ int __i; \ + dword *__b2; \ + __b2 = (dword *) b; \ + for (__i = 0; __i < l; __i++) { \ + SMC_outl( *(__b2 + __i), r); \ + } \ + }) + +#endif /* CONFIG_SMC_USE_32_BIT */ + #endif /*--------------------------------------------------------------- -- cgit v1.2.3