diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-19 17:36:28 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-19 17:36:28 -0600 |
commit | f4400fe41a5a80ea58f8881eaa263aae99636698 (patch) | |
tree | c0f0d7aa440d416241ae3595c1f8e76fa83be200 /cmd/sbc_harness/config/config.h | |
parent | 221a0cb9c45c205cb07dfd6bc91d401363d3c8c1 (diff) |
finish w5500?
Diffstat (limited to 'cmd/sbc_harness/config/config.h')
-rw-r--r-- | cmd/sbc_harness/config/config.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/cmd/sbc_harness/config/config.h b/cmd/sbc_harness/config/config.h index 4817bf8..c3e8bf3 100644 --- a/cmd/sbc_harness/config/config.h +++ b/cmd/sbc_harness/config/config.h @@ -7,7 +7,14 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ -#define CONFIG_NETIO_NUM_CONNS 8 +/* W5500 **********************************************************************/ + +/** + * How many W5500 chips we have. + */ +#define CONFIG_W5500_NUM 1 + +/* 9P *************************************************************************/ #define CONFIG_9P_PORT 564 /** @@ -38,14 +45,20 @@ #define CONFIG_9P_MAX_REQS 2 #define CONFIG_9P_MAX_ERR_SIZE 128 /* 128 is what Plan 9 4e uses */ +/* COROUTINE ******************************************************************/ + #define CONFIG_COROUTINE_DEFAULT_STACK_SIZE (32*1024) #define CONFIG_COROUTINE_MEASURE_STACK 1 /* bool */ #define CONFIG_COROUTINE_PROTECT_STACK 1 /* bool */ #define CONFIG_COROUTINE_DEBUG 0 /* bool */ #define CONFIG_COROUTINE_VALGRIND 0 /* bool */ -#define CONFIG_COROUTINE_NUM (1 /* usb_common */ +\ - 1 /* usb_keyboard */ +\ - CONFIG_NETIO_NUM_CONNS /* accept+read */ +\ - (CONFIG_9P_MAX_REQS*CONFIG_NETIO_NUM_CONNS) /* work+write */ ) + +#define _CONFIG_9P_NUM_SOCKS 7 +#define CONFIG_COROUTINE_NUM ( \ + 1 /* usb_common */ + \ + 1 /* usb_keyboard */ + \ + CONFIG_W5500_NUM /* irq handler */ + \ + _CONFIG_9P_NUM_SOCKS /* 9P accept()+read() */ + \ + (CONFIG_9P_MAX_REQS*_CONFIG_9P_NUM_SOCKS) /* 9P work+write() */ ) #endif /* _CONFIG_H_ */ |