ata.h 787 B

12345678910111213141516171819202122232425262728293031
  1. /*
  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. #ifndef __BESTCOMM_ATA_H__
  13. #define __BESTCOMM_ATA_H__
  14. struct bcom_ata_bd {
  15. u32 status;
  16. u32 src_pa;
  17. u32 dst_pa;
  18. };
  19. extern struct bcom_task * bcom_ata_init(int queue_len, int maxbufsize);
  20. extern void bcom_ata_rx_prepare(struct bcom_task *tsk);
  21. extern void bcom_ata_tx_prepare(struct bcom_task *tsk);
  22. extern void bcom_ata_reset_bd(struct bcom_task *tsk);
  23. extern void bcom_ata_release(struct bcom_task *tsk);
  24. #endif /* __BESTCOMM_ATA_H__ */