cregit-Linux how code gets into the kernel

Release 4.16 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h

/* Broadcom NetXtreme-C/E network driver.
 *
 * Copyright (c) 2014-2016 Broadcom Corporation
 * Copyright (c) 2016-2017 Broadcom Limited
 *
 * 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.
 */

#ifndef BNXT_ETHTOOL_H

#define BNXT_ETHTOOL_H


struct bnxt_led_cfg {
	
u8 led_id;
	
u8 led_state;
	
u8 led_color;
	
u8 unused;
	
__le16 led_blink_on;
	
__le16 led_blink_off;
	
u8 led_group_id;
	
u8 rsvd;
};


#define BNXT_LED_DFLT_ENA				\
	(PORT_LED_CFG_REQ_ENABLES_LED0_ID |             \
         PORT_LED_CFG_REQ_ENABLES_LED0_STATE |          \
         PORT_LED_CFG_REQ_ENABLES_LED0_BLINK_ON |       \
         PORT_LED_CFG_REQ_ENABLES_LED0_BLINK_OFF |      \
         PORT_LED_CFG_REQ_ENABLES_LED0_GROUP_ID)


#define BNXT_LED_DFLT_ENA_SHIFT	6


#define BNXT_LED_DFLT_ENABLES(x)			\
	cpu_to_le32(BNXT_LED_DFLT_ENA << (BNXT_LED_DFLT_ENA_SHIFT * (x)))


#define BNXT_FW_RESET_AP	0xfffe

#define BNXT_FW_RESET_CHIP	0xffff

extern const struct ethtool_ops bnxt_ethtool_ops;

u32 _bnxt_fw_to_ethtool_adv_spds(u16, u8);
u32 bnxt_fw_to_ethtool_speed(u16);
u16 bnxt_get_fw_auto_link_speeds(u32);
void bnxt_ethtool_init(struct bnxt *bp);
void bnxt_ethtool_free(struct bnxt *bp);

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Michael Chan9992.52%675.00%
Scott Branden43.74%112.50%
Vasundhara Volam43.74%112.50%
Total107100.00%8100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.