iPXE
mlx_blink_leds.h
Go to the documentation of this file.
00001 #ifndef MLX_BLINK_LEDS_H_
00002 #define MLX_BLINK_LEDS_H_
00003 
00004 /*
00005  * Copyright (C) 2015 Mellanox Technologies Ltd.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as
00009  * published by the Free Software Foundation; either version 2 of the
00010  * License, or any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301, USA.
00021  */
00022 
00023 FILE_LICENCE ( GPL2_OR_LATER );
00024 
00025 #include "../../mlx_lib/mlx_reg_access/mlx_reg_access.h"
00026 #include "../../include/public/mlx_utils.h"
00027 
00028 struct mlx_led_control {
00029         mlx_uint32 reserved1    :16;
00030         mlx_uint32 port :8;
00031         mlx_uint32 bla  :8;
00032 /* -------------- */
00033         mlx_uint32 beacon_duration      :16;
00034         mlx_uint32 reserved2    :16;
00035 /* -------------- */
00036         mlx_uint32 beacon_remain        :16;
00037         mlx_uint32 reserved3    :16;
00038 };
00039 
00040 mlx_status
00041 mlx_blink_leds(
00042                 IN mlx_utils *utils,
00043                 IN mlx_uint16 secs
00044                 );
00045 
00046 #endif /* MLX_NVCONFIG_H_ */