blob: 0b2371811334fed45093e923f2a6625bc988441d [file] [log] [blame]
Sylvain Munaut9ea68df2007-09-16 20:53:28 +10001/*
2 * Header for Bestcomm ATA task driver
3 *
4 *
5 * Copyright (C) 2006 Freescale - John Rigby
6 * Copyright (C) 2006 Sylvain Munaut <tnt@246tNt.com>
7 *
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of any
10 * kind, whether express or implied.
11 */
12
13#ifndef __BESTCOMM_ATA_H__
14#define __BESTCOMM_ATA_H__
15
16
17struct bcom_ata_bd {
18 u32 status;
Sylvain Munaut9ea68df2007-09-16 20:53:28 +100019 u32 src_pa;
Tim Yamine4efe3c2008-12-21 02:54:28 -070020 u32 dst_pa;
Sylvain Munaut9ea68df2007-09-16 20:53:28 +100021};
22
Tim Yamin6b61e692008-12-21 02:54:29 -070023extern struct bcom_task * bcom_ata_init(int queue_len, int maxbufsize);
24extern void bcom_ata_rx_prepare(struct bcom_task *tsk);
25extern void bcom_ata_tx_prepare(struct bcom_task *tsk);
26extern void bcom_ata_reset_bd(struct bcom_task *tsk);
27extern void bcom_ata_release(struct bcom_task *tsk);
Sylvain Munaut9ea68df2007-09-16 20:53:28 +100028
29#endif /* __BESTCOMM_ATA_H__ */
30