diff options
author | wdenk <wdenk> | 2003-10-19 23:22:11 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-10-19 23:22:11 +0000 |
commit | a3ad8e26a4ac96838b2963cb462770c70c9f6443 (patch) | |
tree | be6c86113d1ce3da1d26b19b305d77d00370703f /drivers/smc91111.h | |
parent | d7281f41094bee59eca958de3c04995a2f79034a (diff) | |
download | u-boot-imx-a3ad8e26a4ac96838b2963cb462770c70c9f6443.zip u-boot-imx-a3ad8e26a4ac96838b2963cb462770c70c9f6443.tar.gz u-boot-imx-a3ad8e26a4ac96838b2963cb462770c70c9f6443.tar.bz2 |
* 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
Diffstat (limited to 'drivers/smc91111.h')
-rw-r--r-- | drivers/smc91111.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/smc91111.h b/drivers/smc91111.h index 4efa256..fc694ac 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 /*--------------------------------------------------------------- |