diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2007-09-16 20:53:28 +1000 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2007-10-16 17:09:42 -0600 |
commit | 9ea68df515392a556388f12c876ca74654e37483 (patch) | |
tree | 490e123d966d77cbfe02619046875656f0979a6f /arch/powerpc/sysdev/bestcomm/ata.h | |
parent | 2f9ea1bde0d12d8fb5a7bdc7ab6834275d456262 (diff) | |
download | blackbird-op-linux-9ea68df515392a556388f12c876ca74654e37483.tar.gz blackbird-op-linux-9ea68df515392a556388f12c876ca74654e37483.zip |
[POWERPC] bestcomm: ATA task support
This is the microcode for the ATA task and the associated
support code.
The microcode itself comes directly from the offical
API (v2.2)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/sysdev/bestcomm/ata.h')
-rw-r--r-- | arch/powerpc/sysdev/bestcomm/ata.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/bestcomm/ata.h b/arch/powerpc/sysdev/bestcomm/ata.h new file mode 100644 index 000000000000..10982769c465 --- /dev/null +++ b/arch/powerpc/sysdev/bestcomm/ata.h @@ -0,0 +1,37 @@ +/* + * Header for Bestcomm ATA task driver + * + * + * Copyright (C) 2006 Freescale - John Rigby + * Copyright (C) 2006 Sylvain Munaut <tnt@246tNt.com> + * + * This file is licensed under the terms of the GNU General Public License + * version 2. This program is licensed "as is" without any warranty of any + * kind, whether express or implied. + */ + +#ifndef __BESTCOMM_ATA_H__ +#define __BESTCOMM_ATA_H__ + + +struct bcom_ata_bd { + u32 status; + u32 dst_pa; + u32 src_pa; +}; + +extern struct bcom_task * +bcom_ata_init(int queue_len, int maxbufsize); + +extern void +bcom_ata_rx_prepare(struct bcom_task *tsk); + +extern void +bcom_ata_tx_prepare(struct bcom_task *tsk); + +extern void +bcom_ata_reset_bd(struct bcom_task *tsk); + + +#endif /* __BESTCOMM_ATA_H__ */ + |