userspace: export temperature from sensors to HAL's shmem
HAL at update of fan speed reads Switch's temperature sensors.
Sensors read:
-FPGA
-PLL (was read before to drive PWM for fan)
-Power supply left
-Power supply right
Additionally:
-add hal_temp_sensors structure to hal shmem, add current temperature and
threshold values (to be implemented in later commits)
-increment HAL_SHMEM_VERSION
-update hal_shmem.h in ppsi
-update dump_shmem with new structure, add specific type for temperature
sensors
-in hal_ports.c
--rename struct wrs_shm_head *head to struct wrs_shm_head *hal_shmem_hdr
--remove void *hal_port_shmem as not needed,
--make struct hal_shmem_header *hal_shmem extern, defined in hal_main.c
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
Showing
- userspace/libwr/fan.c 20 additions, 5 deletionsuserspace/libwr/fan.c
- userspace/libwr/include/libwr/fan.h 3 additions, 2 deletionsuserspace/libwr/include/libwr/fan.h
- userspace/libwr/include/libwr/hal_shmem.h 14 additions, 2 deletionsuserspace/libwr/include/libwr/hal_shmem.h
- userspace/ppsi 1 addition, 1 deletionuserspace/ppsi
- userspace/tools/wrs_dump_shmem.c 22 additions, 0 deletionsuserspace/tools/wrs_dump_shmem.c
- userspace/wrsw_hal/hal_main.c 4 additions, 1 deletionuserspace/wrsw_hal/hal_main.c
- userspace/wrsw_hal/hal_ports.c 11 additions, 13 deletionsuserspace/wrsw_hal/hal_ports.c
Please register or sign in to comment