linux/arch/powerpc/sysdev/bestcomm/gen_bd.h
<<
>>
Prefs
   1/*
   2 * Header for Bestcomm General Buffer Descriptor tasks driver
   3 *
   4 *
   5 * Copyright (C) 2007 Sylvain Munaut <tnt@246tNt.com>
   6 * Copyright (C) 2006 AppSpec Computer Technologies Corp.
   7 *                    Jeff Gibbons <jeff.gibbons@appspec.com>
   8 *
   9 * This program is free software; you can redistribute  it and/or modify it
  10 * under the terms of the GNU General Public License version 2 as published
  11 * by the Free Software Foundation.
  12 *
  13 *
  14 */
  15
  16#ifndef __BESTCOMM_GEN_BD_H__
  17#define __BESTCOMM_GEN_BD_H__
  18
  19struct bcom_gen_bd {
  20        u32     status;
  21        u32     buf_pa;
  22};
  23
  24
  25extern struct bcom_task *
  26bcom_gen_bd_rx_init(int queue_len, phys_addr_t fifo,
  27                        int initiator, int ipr, int maxbufsize);
  28
  29extern int
  30bcom_gen_bd_rx_reset(struct bcom_task *tsk);
  31
  32extern void
  33bcom_gen_bd_rx_release(struct bcom_task *tsk);
  34
  35
  36extern struct bcom_task *
  37bcom_gen_bd_tx_init(int queue_len, phys_addr_t fifo,
  38                        int initiator, int ipr);
  39
  40extern int
  41bcom_gen_bd_tx_reset(struct bcom_task *tsk);
  42
  43extern void
  44bcom_gen_bd_tx_release(struct bcom_task *tsk);
  45
  46
  47/* PSC support utility wrappers */
  48struct bcom_task * bcom_psc_gen_bd_rx_init(unsigned psc_num, int queue_len,
  49                                           phys_addr_t fifo, int maxbufsize);
  50struct bcom_task * bcom_psc_gen_bd_tx_init(unsigned psc_num, int queue_len,
  51                                           phys_addr_t fifo);
  52#endif  /* __BESTCOMM_GEN_BD_H__ */
  53
  54