Subject: Re: Motorola MPC8245 internal UART support
To: None <briggs@wasabisystems.com, swilson@karlnet.com>
From: anand lalgondar <anandlalgondar@hotmail.com>
List: tech-kern
Date: 09/16/2003 09:01:44
> > What would be the best way to go about this? The current dev/ic/com.c
> > is written using bus_space routines and bus_space_tag and _handle
> > pointers, of course.
>
>Yes. The best approach is probably to define a local bus with
>bus_space functions that allow bus_space_read/write_X() to work
>properly when accessing the MPC8245 UART.
>
Since you can access them directly:
the other way round is to directly access the registers which consumes less
time by defining some macros:
#define REGVAL(x) *((__volatile uint32_t *)((x)))
where "x" will be the address of the register. You can use it for both load
and store values to the register address.
-Anand
_________________________________________________________________
Talk to Karthikeyan. Watch his stunning feats.
http://server1.msn.co.in/sp03/tataracing/index.asp Download images.