hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __BUS_COMMON_H__
#define __BUS_COMMON_H__
 
#include <wcn_bus.h>
 
int bus_chn_init(struct mchn_ops_t *ops, int hif_type);
int bus_chn_deinit(struct mchn_ops_t *ops);
int buf_list_alloc(int chn, struct mbuf_t **head,
          struct mbuf_t **tail, int *num);
int buf_list_free(int chn, struct mbuf_t *head,
         struct mbuf_t *tail, int num);
int buf_list_is_full(int chn);
struct mchn_ops_t *chn_ops(int channel);
int module_ops_register(struct sprdwcn_bus_ops *ops);
void module_ops_unregister(void);
#endif