您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

mlx_blink_leds.h 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef MLX_BLINK_LEDS_H_
  2. #define MLX_BLINK_LEDS_H_
  3. /*
  4. * Copyright (C) 2015 Mellanox Technologies Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of the
  9. * License, or any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19. * 02110-1301, USA.
  20. */
  21. FILE_LICENCE ( GPL2_OR_LATER );
  22. #include "../../mlx_lib/mlx_reg_access/mlx_reg_access.h"
  23. #include "../../include/public/mlx_utils.h"
  24. struct mlx_led_control {
  25. mlx_uint32 reserved1 :16;
  26. mlx_uint32 port :8;
  27. mlx_uint32 bla :8;
  28. /* -------------- */
  29. mlx_uint32 beacon_duration :16;
  30. mlx_uint32 reserved2 :16;
  31. /* -------------- */
  32. mlx_uint32 beacon_remain :16;
  33. mlx_uint32 reserved3 :16;
  34. };
  35. mlx_status
  36. mlx_blink_leds(
  37. IN mlx_utils *utils,
  38. IN mlx_uint16 secs
  39. );
  40. #endif /* MLX_NVCONFIG_H_ */