reactos/drivers/network/tcpip/include/lwip/arch/sys_arch.h
Hervé Poussineau d6eebaa47a [TCPIP] Synchronize LWIP code to 2.2.0
- take code from STABLE-2_2_0_RELEASE commit on https://git.savannah.gnu.org/git/lwip.git
- remove lwip/contrib directory
- do required changes due to upgrade in
  * CMakeLists.txt
  * include/lwip/arch/cc.h
  * include/lwip/arch/sys_arch.h
  * include/lwip/lwipopts.h
  * include/tcpip.h
  * ip/CMakeLists.txt
  * ip/lwip_glue/lwip_glue.h
  * ip/lwip_glue/tcp.c
  * ip/transport/tcp/if.c
  * tcpip/icmp.c

CORE-13098
2024-11-03 22:49:45 +01:00

42 lines
814 B
C

/* ReactOS-Specific lwIP binding header - by Cameron Gutman */
/* Implmentation specific structs */
typedef struct _sys_sem_t
{
KEVENT Event;
int Valid;
} sys_sem_t;
typedef struct _sys_mbox_t
{
KSPIN_LOCK Lock;
LIST_ENTRY ListHead;
KEVENT Event;
int Valid;
} sys_mbox_t;
typedef KIRQL sys_prot_t;
typedef u32_t sys_thread_t;
typedef struct _LWIP_MESSAGE_CONTAINER
{
PVOID Message;
LIST_ENTRY ListEntry;
} LWIP_MESSAGE_CONTAINER, *PLWIP_MESSAGE_CONTAINER;
#define sys_jiffies() sys_now()
/* There is no such thing as "from ISR" for us */
#define sys_mbox_trypost_fromisr sys_mbox_trypost
/* NULL definitions */
#define SYS_MBOX_NULL NULL
#define SYS_SEM_NULL NULL
#define SYS_ARCH_NULL NULL
void
sys_arch_protect(sys_prot_t *lev);
void
sys_arch_unprotect(sys_prot_t lev);