4 * @Abstract: Host Interface api
8 * Copyright (c) 2008 Atheros Communications Inc.
16 #include <vdesc_api.h>
18 #define MAX_BUF_CTX_LEN 20
23 struct _VBUF *next_buf;
26 A_UINT8 ctx[MAX_BUF_CTX_LEN];
28 //A_UINT8 reserved[1];
31 #define VBUF_GET_DATA_ADDR(vbuf) (vbuf->desc_list->buf_addr + vbuf->desc_list->data_offset)
33 /* hardware API table structure (API descriptions below) */
35 void (*_init)(int nBuf);
36 VBUF* (*_alloc_vbuf)(void);
37 VBUF* (*_alloc_vbuf_with_size)(int size, int reserve);
38 void (*_free_vbuf)(VBUF *buf);
40 /* room to expand this table by another table */
44 extern void vbuf_module_install(struct vbuf_api *apis);
46 #endif /* #ifndef _HIF_API_H */