Mercurial > nand-ecoscentric
changeset 578:5c577d65a0dd
* src/if_i82544.c (BUS_TO_VIRT): Added default definition of this
macro.
| author | nickg |
|---|---|
| date | Wed, 05 Feb 2003 18:34:01 +0000 |
| parents | 54efa2597781 |
| children | aa8519b22eb0 |
| files | packages/devs/eth/intel/i82544/current/ChangeLog packages/devs/eth/intel/i82544/current/src/if_i82544.c |
| diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/eth/intel/i82544/current/ChangeLog +++ b/packages/devs/eth/intel/i82544/current/ChangeLog @@ -1,3 +1,8 @@ +2003-02-05 Nick Garnett <nickg@calivar.com> + + * src/if_i82544.c (BUS_TO_VIRT): Added default definition of this + macro. + 2002-11-12 Gary Thomas <gary@mlbassoc.com> * src/if_i82544.c: Minor fixes - use HAL_DELAY_US(), additional
--- a/packages/devs/eth/intel/i82544/current/src/if_i82544.c +++ b/packages/devs/eth/intel/i82544/current/src/if_i82544.c @@ -259,6 +259,10 @@ static inline cyg_uint32 INL(cyg_uint32 static inline cyg_uint32 virt_to_bus(cyg_uint32 p_memory) { return CYGARC_PHYSICAL_ADDRESS(p_memory); } +#define BUS_TO_VIRT( _x_ ) bus_to_virt((cyg_uint32)(_x_)) +static inline cyg_uint32 bus_to_virt(cyg_uint32 p_bus) +{ return CYGARC_UNCACHED_ADDRESS(p_bus); } + #endif // not defined CYGHWR_INTEL_I82544_PCI_VIRT_TO_BUS // ------------------------------------------------------------------------
