Porting PicoTCP WIP

This commit is contained in:
2025-10-29 14:29:06 +01:00
parent 6722f42e68
commit 815c2239fe
464 changed files with 235009 additions and 24 deletions

View File

@ -16,6 +16,7 @@
#define E_RESOURCEAVAIL -12
#define E_SPAWNERROR -13
#define E_NOTYET -14
#define E_NETSOCKLISTEN -15
#if !defined(__ASSEMBLER__)

View File

@ -0,0 +1,21 @@
#ifndef SHARE_SYSDEFS_IPC_NETSOCK_H_
#define SHARE_SYSDEFS_IPC_NETSOCK_H_
// matches values of picotcp
#define NETSOCK_IPV4 0
#define NETSOCK_TCP 6
#define NETSOCKEV_CLOSE 8
#define NETSOCKEV_ERR 0x80
#define NETSOCKEV_READ 1
#define NETSOCKEV_WRITE 2
#define NETSOCKEV_FINI 0x10
#define NETSOCKEV_CONN 4
typedef int32_t netsock_t;
typedef int32_t netsockev_t;
#define IS_NETSOCKEV_READY(ev) ((ev) != E_NOTYET)
#endif // SHARE_SYSDEFS_IPC_NETSOCK_H_

View File

@ -34,7 +34,9 @@
#define SYS_DEV_LISTSIZE 34
#define SYS_DEV_STAT 35
#define SYS_DEV_CMD 36
#define SYS_TIME 38
#define SYS_TIME 38
#define SYS_IPC_NETSOCKMAKE 39
#define SYS_IPC_NETSOCKLISTEN 40
#define SYS_IPC_NETSOCKPOLLEV 41
#endif // SHARE_HDRS_SYSCALL_H_