dsa.h (6793abb4e8491b1d673ccfd09e1a73d1ff8b9386) | dsa.h (3d762a0f0ab9cb4a6b5993db3ce56c92f9f90ab2) |
---|---|
1/* 2 * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips 3 * Copyright (c) 2008-2009 Marvell Semiconductor 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 254 unchanged lines hidden (view full) --- 263#endif 264 265 /* EEPROM access */ 266 int (*get_eeprom_len)(struct dsa_switch *ds); 267 int (*get_eeprom)(struct dsa_switch *ds, 268 struct ethtool_eeprom *eeprom, u8 *data); 269 int (*set_eeprom)(struct dsa_switch *ds, 270 struct ethtool_eeprom *eeprom, u8 *data); | 1/* 2 * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips 3 * Copyright (c) 2008-2009 Marvell Semiconductor 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 254 unchanged lines hidden (view full) --- 263#endif 264 265 /* EEPROM access */ 266 int (*get_eeprom_len)(struct dsa_switch *ds); 267 int (*get_eeprom)(struct dsa_switch *ds, 268 struct ethtool_eeprom *eeprom, u8 *data); 269 int (*set_eeprom)(struct dsa_switch *ds, 270 struct ethtool_eeprom *eeprom, u8 *data); |
271 272 /* 273 * Register access. 274 */ 275 int (*get_regs_len)(struct dsa_switch *ds, int port); 276 void (*get_regs)(struct dsa_switch *ds, int port, 277 struct ethtool_regs *regs, void *p); |
|
271}; 272 273void register_switch_driver(struct dsa_switch_driver *type); 274void unregister_switch_driver(struct dsa_switch_driver *type); 275struct mii_bus *dsa_host_dev_to_mii_bus(struct device *dev); 276 277static inline void *ds_to_priv(struct dsa_switch *ds) 278{ 279 return (void *)(ds + 1); 280} 281 282static inline bool dsa_uses_tagged_protocol(struct dsa_switch_tree *dst) 283{ 284 return dst->rcv != NULL; 285} 286#endif | 278}; 279 280void register_switch_driver(struct dsa_switch_driver *type); 281void unregister_switch_driver(struct dsa_switch_driver *type); 282struct mii_bus *dsa_host_dev_to_mii_bus(struct device *dev); 283 284static inline void *ds_to_priv(struct dsa_switch *ds) 285{ 286 return (void *)(ds + 1); 287} 288 289static inline bool dsa_uses_tagged_protocol(struct dsa_switch_tree *dst) 290{ 291 return dst->rcv != NULL; 292} 293#endif |