zephyr/drivers/ethernet
James Harris b10428163a kernel: sem: add K_SEM_MAX_LIMIT
Currently there is no way to distinguish between a caller
explicitly asking for a semaphore with a limit that
happens to be `UINT_MAX` and a semaphore that just
has a limit "as large as possible".

Add `K_SEM_MAX_LIMIT`, currently defined to `UINT_MAX`, and akin
to `K_FOREVER` versus just passing some very large wait time.

In addition, the `k_sem_*` APIs were type-confused, where
the internal data structure was `uint32_t`, but the APIs took
and returned `unsigned int`. This changes the underlying data
structure to also use `unsigned int`, as changing the APIs
would be a (potentially) breaking change.

These changes are backwards-compatible, but it is strongly suggested
to take a quick scan for `k_sem_init` and `K_SEM_DEFINE` calls with
`UINT_MAX` (or `UINT32_MAX`) and replace them with `K_SEM_MAX_LIMIT`
where appropriate.

Signed-off-by: James Harris <james.harris@intel.com>
2021-03-05 08:13:53 -06:00
..
CMakeLists.txt drivers: ethernet: Add support for KSZ8794 DSA device 2021-01-20 10:03:42 +02:00
dsa_ksz8794.c drivers: ethernet: Add support for KSZ8794 DSA device 2021-01-20 10:03:42 +02:00
dsa_ksz8794.h drivers: ethernet: Add support for KSZ8794 DSA device 2021-01-20 10:03:42 +02:00
eth.h random: Include header where it is used 2020-07-08 21:05:36 -04:00
eth_e1000.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
eth_e1000_priv.h drivers: eth_e1000: use device MMIO 2020-07-17 11:38:18 +02:00
eth_enc28j60.c drivers: ethernet: Convert drivers to new DT device macros 2020-12-17 11:02:11 -06:00
eth_enc28j60_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_enc424j600.c drivers: ethernet: Convert drivers to new DT device macros 2020-12-17 11:02:11 -06:00
eth_enc424j600_priv.h drivers: ethernet: Fix device instance const qualifier loss 2020-09-02 13:48:13 +02:00
eth_gecko.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
eth_gecko_priv.h device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
eth_liteeth.c drivers: ethernet: remove stale Kconfig IRQ priority 2021-03-03 12:16:06 +03:00
eth_mcux.c drivers: eth: mcux: Convert clock control to use DEVICE_DT_GET 2021-02-19 05:36:35 -06:00
eth_native_posix.c drivers: ethernet: Convert DEVICE_AND_API_INIT to DEVICE_DEFINE 2020-12-19 20:01:24 -05:00
eth_native_posix_adapt.c headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
eth_native_posix_priv.h drivers: eth: native_posix: Allow non-root access 2018-10-23 11:08:39 +03:00
eth_sam0_gmac.h drivers: ethernet: eth_sam_gmac: Add SAM0 family support 2020-04-17 04:56:28 -05:00
eth_sam_gmac.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
eth_sam_gmac_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_smsc911x.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
eth_smsc911x_priv.h license: add missing SPDX headers 2021-02-11 08:05:16 -05:00
eth_stellaris.c device: Remove DEVICE_DT_DECLARE / DEVICE_DT_INST_DECLARE 2021-01-15 07:16:21 -06:00
eth_stellaris_priv.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
eth_stm32_hal.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
eth_stm32_hal_priv.h drivers: ethernet: stm32: add support for DT pinctrl 2020-10-30 15:54:13 +01:00
eth_w5500.c drivers: ethernet: Convert drivers to new DT device macros 2020-12-17 11:02:11 -06:00
eth_w5500_priv.h ethernet: w5500: use bit fielding number for mode 2020-10-26 07:35:46 -04:00
Kconfig eth: Add support for Distributed Switch Architecture [DSA] switches 2021-01-20 10:03:42 +02:00
Kconfig.dsa eth: Add support for Distributed Switch Architecture [DSA] switches 2021-01-20 10:03:42 +02:00
Kconfig.e1000 drivers: eth: e1000: Add a hexdump of the received/sent data 2020-01-02 16:58:27 -05:00
Kconfig.enc28j60 drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
Kconfig.enc424j600 drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
Kconfig.gecko drivers: ethernet: remove stale Kconfig IRQ priority 2021-03-03 12:16:06 +03:00
Kconfig.liteeth drivers: ethernet: remove stale Kconfig IRQ priority 2021-03-03 12:16:06 +03:00
Kconfig.mcux power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
Kconfig.native_posix net: native_posix: gptp: Add multiport support 2020-08-19 12:47:09 -04:00
Kconfig.sam_gmac drivers: ethernet: sam_gmac: Add SOC_FAMILY_SAM0 dependency 2020-07-02 08:37:17 -04:00
Kconfig.smsc911x kconfig: Remove '# Hidden' comments on promptless symbols 2019-12-21 10:30:33 -05:00
Kconfig.stellaris kconfig: Remove '# Hidden' comments on promptless symbols 2019-12-21 10:30:33 -05:00
Kconfig.stm32_hal drivers: ethernet: remove stale Kconfig IRQ priority 2021-03-03 12:16:06 +03:00
Kconfig.w5500 drivers: eth: add driver for w5500 Ethernet Controller 2020-10-02 11:34:57 +02:00
phy_gecko.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
phy_gecko.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
phy_sam_gmac.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
phy_sam_gmac.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00