diff options
author | Jiucheng Xu <Jiucheng.Xu@freescale.com> | 2012-08-28 15:34:14 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-04-05 15:59:25 (GMT) |
commit | 33cd3da5ada6f99ff03d707fe7f00732febc5b83 (patch) | |
tree | ada8fd0b2c9137d9ca3313437a4157790953c152 /include | |
parent | 1780a6268d407819c656cf8acf2d80d8aa0eaddb (diff) | |
download | linux-fsl-qoriq-33cd3da5ada6f99ff03d707fe7f00732febc5b83.tar.xz |
TDM: Add a directly R/W API for tdm core
Tdm core exported the simple function interfaces for user in kernel space.
Signed-off-by: Jiucheng Xu <Jiucheng.Xu@freescale.com>
Signed-off-by: Kai.Jiang <Kai.Jiang@freescale.com>
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Change-Id: Ifc8ef6b14f7cbc3c88fcfc5e4a1afd59564d8059
Reviewed-on: http://git.am.freescale.net:8181/904
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Tested-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tdm.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/tdm.h b/include/linux/tdm.h index 8cf4ef5..1b64cb8 100644 --- a/include/linux/tdm.h +++ b/include/linux/tdm.h @@ -1,6 +1,6 @@ /* include/linux/tdm.h * - * Copyright (C) 2012 Freescale Semiconductor, Inc, All rights reserved. + * Copyright 2012 Freescale Semiconductor, Inc. * * tdm.h - definitions for the tdm-device framework interface * @@ -62,6 +62,11 @@ static inline int ALIGN_SIZE(u64 size, u32 alignment) return (size + alignment - 1) & (~(alignment - 1)); } +int tdm_master_send(struct tdm_adapter *adap, void **buf, int count); +int tdm_master_recv(struct tdm_adapter *adap, void **buf); +int tdm_read_direct(struct tdm_adapter *adap, u8 *buf, u32 len); +int tdm_write_direct(struct tdm_adapter *adap, u8 *buf, u32 len); + /** * struct tdm_driver - represent an TDM device driver * @class: What kind of tdm device we instantiate (for detect) @@ -221,6 +226,8 @@ struct tdm_channel { struct tdm_adapt_algorithm { u32 (*tdm_read)(struct tdm_adapter *, u16 **); u32 (*tdm_get_write_buf)(struct tdm_adapter *, u16 **); + int (*tdm_read_simple)(struct tdm_adapter *, u8 *, u32 len); + int (*tdm_write_simple)(struct tdm_adapter *, u8 *, u32 len); u32 (*tdm_write)(struct tdm_adapter *, void * , unsigned int len); int (*tdm_enable)(struct tdm_adapter *); int (*tdm_disable)(struct tdm_adapter *); |