mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Stephen Hemminger](/assets/img/avatar_default.png)
The Sprint 4G network uses a Wimax dongle with Beecem chipset. The driver is typical of out of tree drivers, but maybe useful for people, and the hardware is readily available. Here is a staging ready version (i.e warts and all) 0. Started with Rel_5.2.7.3P1_USB from Sprint4GDeveloperPack-1.1 1. Consolidated files in staging 2. Remove Dos cr/lf 3. Remove unnecessary ioctl from usbbcm_fops Applied patches that were in the developer pack, surprising there were ones for 2.6.35 already. This is compile tested only, see TODO for what still needs to be done. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
31 lines
918 B
C
31 lines
918 B
C
/*************************************
|
|
* Queue.h
|
|
**************************************/
|
|
#ifndef __QUEUE_H__
|
|
#define __QUEUE_H__
|
|
|
|
|
|
|
|
#define ENQUEUEPACKET(_Head, _Tail,_Packet) \
|
|
do \
|
|
{ \
|
|
if (!_Head) { \
|
|
_Head = _Packet; \
|
|
} \
|
|
else { \
|
|
(_Tail)->next = _Packet; \
|
|
} \
|
|
(_Packet)->next = NULL; \
|
|
_Tail = _Packet; \
|
|
}while(0)
|
|
#define DEQUEUEPACKET(Head, Tail ) \
|
|
do \
|
|
{ if(Head) \
|
|
{ \
|
|
if (!Head->next) { \
|
|
Tail = NULL; \
|
|
} \
|
|
Head = Head->next; \
|
|
} \
|
|
}while(0)
|
|
#endif //__QUEUE_H__
|