hwtstamp.h (cf536ea3c7eefb26082836eb7f930b293dd38345) | hwtstamp.h (5c5416f5d4c75fe6aba56f6c2c45a070b5e7cc78) |
---|---|
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> --- 103 unchanged lines hidden (view full) --- 112 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); | 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> --- 103 unchanged lines hidden (view full) --- 112 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); | 120void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, 121 struct sk_buff *skb); |
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); --- 16 unchanged lines hidden (view full) --- 146 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 | 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); --- 16 unchanged lines hidden (view full) --- 146 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) | 154static inline void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, 155 struct sk_buff *skb) |
156{ | 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; 164} 165 --- 12 unchanged lines hidden --- | 157} 158 159static inline int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, 160 struct ethtool_ts_info *info) 161{ 162 return -EOPNOTSUPP; 163} 164 --- 12 unchanged lines hidden --- |