162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * Header for Bestcomm ATA task driver 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2006 Freescale - John Rigby 662306a36Sopenharmony_ci * Copyright (C) 2006 Sylvain Munaut <tnt@246tNt.com> 762306a36Sopenharmony_ci * 862306a36Sopenharmony_ci * This file is licensed under the terms of the GNU General Public License 962306a36Sopenharmony_ci * version 2. This program is licensed "as is" without any warranty of any 1062306a36Sopenharmony_ci * kind, whether express or implied. 1162306a36Sopenharmony_ci */ 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#ifndef __BESTCOMM_ATA_H__ 1462306a36Sopenharmony_ci#define __BESTCOMM_ATA_H__ 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_cistruct bcom_ata_bd { 1862306a36Sopenharmony_ci u32 status; 1962306a36Sopenharmony_ci u32 src_pa; 2062306a36Sopenharmony_ci u32 dst_pa; 2162306a36Sopenharmony_ci}; 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ciextern struct bcom_task * bcom_ata_init(int queue_len, int maxbufsize); 2462306a36Sopenharmony_ciextern void bcom_ata_rx_prepare(struct bcom_task *tsk); 2562306a36Sopenharmony_ciextern void bcom_ata_tx_prepare(struct bcom_task *tsk); 2662306a36Sopenharmony_ciextern void bcom_ata_reset_bd(struct bcom_task *tsk); 2762306a36Sopenharmony_ciextern void bcom_ata_release(struct bcom_task *tsk); 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci#endif /* __BESTCOMM_ATA_H__ */ 3062306a36Sopenharmony_ci 31