hwtstamp.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | hwtstamp.h (cf536ea3c7eefb26082836eb7f930b293dd38345) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Marvell 88E6xxx Switch hardware timestamping support 4 * 5 * Copyright (c) 2008 Marvell Semiconductor 6 * 7 * Copyright (c) 2017 National Instruments 8 * Erik Hons <erik.hons@ni.com> --- 104 unchanged lines hidden (view full) --- 113int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port, 114 struct ifreq *ifr); 115int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port, 116 struct ifreq *ifr); 117 118bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, 119 struct sk_buff *clone, unsigned int type); 120bool mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, | 1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Marvell 88E6xxx Switch hardware timestamping support 4 * 5 * Copyright (c) 2008 Marvell Semiconductor 6 * 7 * Copyright (c) 2017 National Instruments 8 * Erik Hons <erik.hons@ni.com> --- 104 unchanged lines hidden (view full) --- 113int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port, 114 struct ifreq *ifr); 115int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port, 116 struct ifreq *ifr); 117 118bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, 119 struct sk_buff *clone, unsigned int type); 120bool mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, |
121 struct sk_buff *clone, unsigned int type); | 121 struct sk_buff *clone); |
122 123int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, 124 struct ethtool_ts_info *info); 125 126int mv88e6xxx_hwtstamp_setup(struct mv88e6xxx_chip *chip); 127void mv88e6xxx_hwtstamp_free(struct mv88e6xxx_chip *chip); 128int mv88e6352_hwtstamp_port_enable(struct mv88e6xxx_chip *chip, int port); 129int mv88e6352_hwtstamp_port_disable(struct mv88e6xxx_chip *chip, int port); --- 17 unchanged lines hidden (view full) --- 147static inline bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, 148 struct sk_buff *clone, 149 unsigned int type) 150{ 151 return false; 152} 153 154static inline bool mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, | 122 123int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, 124 struct ethtool_ts_info *info); 125 126int mv88e6xxx_hwtstamp_setup(struct mv88e6xxx_chip *chip); 127void mv88e6xxx_hwtstamp_free(struct mv88e6xxx_chip *chip); 128int mv88e6352_hwtstamp_port_enable(struct mv88e6xxx_chip *chip, int port); 129int mv88e6352_hwtstamp_port_disable(struct mv88e6xxx_chip *chip, int port); --- 17 unchanged lines hidden (view full) --- 147static inline bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, 148 struct sk_buff *clone, 149 unsigned int type) 150{ 151 return false; 152} 153 154static inline bool mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, |
155 struct sk_buff *clone, 156 unsigned int type) | 155 struct sk_buff *clone) |
157{ 158 return false; 159} 160 161static inline int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, 162 struct ethtool_ts_info *info) 163{ 164 return -EOPNOTSUPP; --- 14 unchanged lines hidden --- | 156{ 157 return false; 158} 159 160static inline int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, 161 struct ethtool_ts_info *info) 162{ 163 return -EOPNOTSUPP; --- 14 unchanged lines hidden --- |