4 * @Abstract: Host Interface api
8 * Copyright (c) 2008 Atheros Communications Inc.
16 //#define VDESC_CONTROL_BUF_HDR (1 << 6) /* the buffer was manipulated and a header added */
18 #define MAX_HW_DESC_SIZE 20
22 struct _VDESC *next_desc;
28 A_UINT8 hw_desc_buf[MAX_HW_DESC_SIZE];
31 //#define VDESC_HW_TO_VDESC(hwdesc) ((VDESC *)(((A_UINT32 *)hwdesc - 4)))
32 #define VDESC_HW_TO_VDESC(hwdesc) ((VDESC *)(((A_UINT32 *)hwdesc - 4)))
35 void (*_init)(int nDesc);
36 VDESC* (*_alloc_vdesc)();
37 A_UINT8* (*_get_hw_desc)(VDESC *desc);
38 void (*_swap_vdesc)(VDESC *dest, VDESC *src);
39 //void (*_free_vdesc)(void);
40 /* room to expand this table by another table */
44 extern void vdesc_module_install(struct vdesc_api *apis);