tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / include / asm / arch-sc8800g / fdl_channel.h
1 #ifndef __FDL_CHANNEL_H_
2 #define __FDL_CHANNEL_H_
3
4
5 typedef struct FDL_ChannelHandler
6 {
7     int (*Open) (struct FDL_ChannelHandler *channel, unsigned int  baudrate);
8     int (*Read) (struct FDL_ChannelHandler *channel, const unsigned char *buf, unsigned int  len);
9     char (*GetChar) (struct FDL_ChannelHandler *channel);
10     int (*GetSingleChar) (struct FDL_ChannelHandler *channel);
11     int (*Write) (struct FDL_ChannelHandler *channel, const unsigned char *buf, unsigned int  len);
12     int (*PutChar) (struct FDL_ChannelHandler *channel, const unsigned char ch);
13     int (*SetBaudrate) (struct FDL_ChannelHandler *channel, unsigned int  baudrate);
14     int (*Close) (struct FDL_ChannelHandler *channel);
15     void   *priv;
16 } FDL_ChannelHandler_T;
17
18 struct FDL_ChannelHandler *FDL_ChannelGet();
19
20 #endif