2874c5fd28
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
36 lines
766 B
C
36 lines
766 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (c) 2014-2015 Hisilicon Limited.
|
|
*/
|
|
|
|
#ifndef _HNS_DSAF_MISC_H
|
|
#define _HNS_DSAF_MISC_H
|
|
|
|
#include <linux/of.h>
|
|
#include <linux/of_address.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
#include "hns_dsaf_mac.h"
|
|
|
|
#define CPLD_ADDR_PORT_OFFSET 0x4
|
|
|
|
#define HS_LED_ON 0xE
|
|
#define HS_LED_OFF 0xF
|
|
|
|
#define CPLD_LED_ON_VALUE 1
|
|
#define CPLD_LED_DEFAULT_VALUE 0
|
|
|
|
#define MAC_SFP_PORT_OFFSET 0x2
|
|
|
|
#define DSAF_LED_SPEED_S 0
|
|
#define DSAF_LED_SPEED_M (0x3 << DSAF_LED_SPEED_S)
|
|
|
|
#define DSAF_LED_LINK_B 2
|
|
#define DSAF_LED_DATA_B 4
|
|
#define DSAF_LED_ANCHOR_B 5
|
|
|
|
struct dsaf_misc_op *hns_misc_op_get(struct dsaf_device *dsaf_dev);
|
|
struct
|
|
platform_device *hns_dsaf_find_platform_device(struct fwnode_handle *fwnode);
|
|
#endif
|