Miscellaneous routines for HttpDxe driver.\r
\r
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
/**\r
The notify function associated with TxToken for Tcp4->Transmit().\r
\r
- @param[in] Event The event signaled.\r
@param[in] Context The context.\r
\r
**/\r
VOID\r
EFIAPI\r
-HttpTcpTransmitNotify (\r
- IN EFI_EVENT Event,\r
+HttpTcpTransmitNotifyDpc (\r
IN VOID *Context\r
)\r
{\r
HTTP_TOKEN_WRAP *Wrap;\r
\r
- if ((Event == NULL) || (Context == NULL)) {\r
+ if (Context == NULL) {\r
return ;\r
}\r
\r
\r
}\r
\r
+/**\r
+ Request HttpTcpTransmitNotifyDpc as a DPC at TPL_CALLBACK.\r
+\r
+ @param Event The receive event delivered to TCP for transmit.\r
+ @param Context Context for the callback.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+HttpTcpTransmitNotify (\r
+ IN EFI_EVENT Event,\r
+ IN VOID *Context\r
+ )\r
+{\r
+ //\r
+ // Request HttpTcpTransmitNotifyDpc as a DPC at TPL_CALLBACK\r
+ //\r
+ QueueDpc (TPL_CALLBACK, HttpTcpTransmitNotifyDpc, Context);\r
+}\r
+\r
+\r
/**\r
The notify function associated with RxToken for Tcp4->Receive ().\r
\r
- @param[in] Event The event signaled.\r
@param[in] Context The context.\r
\r
**/\r
VOID\r
EFIAPI\r
-HttpTcpReceiveNotify (\r
- IN EFI_EVENT Event,\r
+HttpTcpReceiveNotifyDpc (\r
IN VOID *Context\r
)\r
{\r
EFI_STATUS Status;\r
HTTP_PROTOCOL *HttpInstance;\r
\r
- if ((Event == NULL) || (Context == NULL)) {\r
+ if (Context == NULL) {\r
return ;\r
}\r
\r
FreePool (Wrap);\r
}\r
\r
+/**\r
+ Request HttpTcpReceiveNotifyDpc as a DPC at TPL_CALLBACK.\r
+\r
+ @param Event The receive event delivered to TCP for receive.\r
+ @param Context Context for the callback.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+HttpTcpReceiveNotify (\r
+ IN EFI_EVENT Event,\r
+ IN VOID *Context\r
+ )\r
+{\r
+ //\r
+ // Request HttpTcpTransmitNotifyDpc as a DPC at TPL_CALLBACK\r
+ //\r
+ QueueDpc (TPL_CALLBACK, HttpTcpReceiveNotifyDpc, Context);\r
+}\r
+\r
+\r
/**\r
Create events for the TCP4 connection token and TCP4 close token.\r
\r
case 414:\r
return HTTP_STATUS_414_REQUEST_URI_TOO_LARGE;\r
case 415:\r
- return HTTP_STATUS_415_UNSUPPORETD_MEDIA_TYPE;\r
+ return HTTP_STATUS_415_UNSUPPORTED_MEDIA_TYPE;\r
case 416:\r
return HTTP_STATUS_416_REQUESTED_RANGE_NOT_SATISFIED;\r
case 417:\r
case 500:\r
return HTTP_STATUS_500_INTERNAL_SERVER_ERROR;\r
case 501:\r
- return HTTP_STATUS_501_NOT_IMIPLEMENTED;\r
+ return HTTP_STATUS_501_NOT_IMPLEMENTED;\r
case 502:\r
return HTTP_STATUS_502_BAD_GATEWAY;\r
case 503:\r