diff options
author | ivan_p@hotbox.ru <ivan_p@hotbox.ru> | 2009-03-26 15:03:03 +0300 |
---|---|---|
committer | Werner Almesberger <werner@openmoko.org> | 2009-03-31 00:42:22 -0300 |
commit | 645df9d63189968bb3884d46f6558c3e2b0c935a (patch) | |
tree | 85ccaba5c015f8c5b7685642fd4452d584d3329c /drivers/ar6000/include/htc_api.h | |
parent | 5c7e3aef519168ab5230466f51f28b8553cbd363 (diff) |
AR6000 netif_queue_stop non stop, Bug?
This patch resolves the following issue:
http://lists.openmoko.org/pipermail/openmoko-kernel/2009-March/009643.html
Changed: prevent rescheduling network queue at interface opened/connected.
Removed: wake network queue at transmit complete.
Added: wake network queue at packet queue limit not reached.
Signed-off-by: Ivan Petrov <ivan_p@hotbox.ru>
Diffstat (limited to 'drivers/ar6000/include/htc_api.h')
-rw-r--r-- | drivers/ar6000/include/htc_api.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ar6000/include/htc_api.h b/drivers/ar6000/include/htc_api.h index 73b7df60ed0..e75692d7efa 100644 --- a/drivers/ar6000/include/htc_api.h +++ b/drivers/ar6000/include/htc_api.h @@ -86,6 +86,8 @@ typedef void (*HTC_EP_RECV_REFILL)(void *, HTC_ENDPOINT_ID Endpoint); * Other OSes require a "per-packet" indication_RAW_STREAM_NUM_MAX for each completed TX packet, this * closed loop mechanism will prevent the network stack from overunning the NIC */ typedef void (*HTC_EP_SEND_QUEUE_FULL)(void *, HTC_ENDPOINT_ID Endpoint); +/* Optional per service connection callback when a send queue is available for receive new packet. */ +typedef void (*HTC_EP_SEND_QUEUE_AVAIL)(void *, HTC_ENDPOINT_ID Endpoint); typedef struct _HTC_EP_CALLBACKS { void *pContext; /* context for each callback */ @@ -93,6 +95,7 @@ typedef struct _HTC_EP_CALLBACKS { HTC_EP_RECV_PKT EpRecv; /* receive callback for connected endpoint */ HTC_EP_RECV_REFILL EpRecvRefill; /* OPTIONAL receive re-fill callback for connected endpoint */ HTC_EP_SEND_QUEUE_FULL EpSendFull; /* OPTIONAL send full callback */ + HTC_EP_SEND_QUEUE_AVAIL EpSendAvail; /* OPTIONAL send available callback */ } HTC_EP_CALLBACKS; /* service connection information */ |