~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/ipxe/src/drivers/infiniband/mlx_utils/mlx_lib/mlx_blink_leds/mlx_blink_leds.h

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

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