mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-11-10 16:49:17 +00:00
28 lines
644 B
C
28 lines
644 B
C
|
|
#ifndef _AICWF_RX_PREALLOC_H_
|
|
#define _AICWF_RX_PREALLOC_H_
|
|
|
|
#ifdef CONFIG_PREALLOC_RX_SKB
|
|
|
|
struct rx_buff {
|
|
struct list_head queue;
|
|
unsigned char *data;
|
|
u32 len;
|
|
uint8_t *start;
|
|
uint8_t *end;
|
|
uint8_t *read;
|
|
};
|
|
|
|
struct aicwf_rx_buff_list {
|
|
struct list_head rxbuff_list;
|
|
atomic_t rxbuff_list_len;
|
|
};
|
|
|
|
extern struct rx_buff *aicwf_prealloc_rxbuff_alloc(spinlock_t *lock);
|
|
extern void aicwf_prealloc_rxbuff_free(struct rx_buff *rxbuff, spinlock_t *lock);
|
|
extern int aicwf_prealloc_init(void);
|
|
extern void aicwf_prealloc_exit(void);
|
|
extern int aicwf_rxbuff_size_get(void);
|
|
#endif
|
|
#endif /* _AICWF_RX_PREALLOC_H_ */
|