sja1105.h (1913c7f3fc2514e09262baf2267a82dfdb215c39) | sja1105.h (61c77126278eb950010d2ed944c3bc09d10e0eb4) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 2 * Copyright (c) 2018, Sensor-Technik Wiedemann GmbH 3 * Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com> 4 */ 5#ifndef _SJA1105_H 6#define _SJA1105_H 7 8#include <linux/ptp_clock_kernel.h> --- 57 unchanged lines hidden (view full) --- 66 int ptp_ts_bits; 67 /* Also SPI commands are of different sizes to retrieve 68 * the egress timestamps. 69 */ 70 int ptpegr_ts_bytes; 71 const struct sja1105_dynamic_table_ops *dyn_ops; 72 const struct sja1105_table_ops *static_ops; 73 const struct sja1105_regs *regs; | 1/* SPDX-License-Identifier: GPL-2.0 2 * Copyright (c) 2018, Sensor-Technik Wiedemann GmbH 3 * Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com> 4 */ 5#ifndef _SJA1105_H 6#define _SJA1105_H 7 8#include <linux/ptp_clock_kernel.h> --- 57 unchanged lines hidden (view full) --- 66 int ptp_ts_bits; 67 /* Also SPI commands are of different sizes to retrieve 68 * the egress timestamps. 69 */ 70 int ptpegr_ts_bytes; 71 const struct sja1105_dynamic_table_ops *dyn_ops; 72 const struct sja1105_table_ops *static_ops; 73 const struct sja1105_regs *regs; |
74 int (*ptp_cmd)(const void *ctx, const void *data); | 74 int (*ptp_cmd)(const struct dsa_switch *ds, const void *data); |
75 int (*reset_cmd)(const void *ctx, const void *data); 76 int (*setup_rgmii_delay)(const void *ctx, int port); 77 /* Prototypes from include/net/dsa.h */ 78 int (*fdb_add_cmd)(struct dsa_switch *ds, int port, 79 const unsigned char *addr, u16 vid); 80 int (*fdb_del_cmd)(struct dsa_switch *ds, int port, 81 const unsigned char *addr, u16 vid); 82 const char *name; --- 39 unchanged lines hidden (view full) --- 122 SPI_READ = 0, 123 SPI_WRITE = 1, 124} sja1105_spi_rw_mode_t; 125 126/* From sja1105_main.c */ 127int sja1105_static_config_reload(struct sja1105_private *priv); 128 129/* From sja1105_spi.c */ | 75 int (*reset_cmd)(const void *ctx, const void *data); 76 int (*setup_rgmii_delay)(const void *ctx, int port); 77 /* Prototypes from include/net/dsa.h */ 78 int (*fdb_add_cmd)(struct dsa_switch *ds, int port, 79 const unsigned char *addr, u16 vid); 80 int (*fdb_del_cmd)(struct dsa_switch *ds, int port, 81 const unsigned char *addr, u16 vid); 82 const char *name; --- 39 unchanged lines hidden (view full) --- 122 SPI_READ = 0, 123 SPI_WRITE = 1, 124} sja1105_spi_rw_mode_t; 125 126/* From sja1105_main.c */ 127int sja1105_static_config_reload(struct sja1105_private *priv); 128 129/* From sja1105_spi.c */ |
130int sja1105_spi_send_packed_buf(const struct sja1105_private *priv, 131 sja1105_spi_rw_mode_t rw, u64 reg_addr, 132 void *packed_buf, size_t size_bytes); 133int sja1105_spi_send_int(const struct sja1105_private *priv, 134 sja1105_spi_rw_mode_t rw, u64 reg_addr, 135 u64 *value, u64 size_bytes); 136int sja1105_spi_send_long_packed_buf(const struct sja1105_private *priv, 137 sja1105_spi_rw_mode_t rw, u64 base_addr, 138 void *packed_buf, u64 buf_len); | 130int sja1105_xfer_buf(const struct sja1105_private *priv, 131 sja1105_spi_rw_mode_t rw, u64 reg_addr, 132 void *packed_buf, size_t size_bytes); 133int sja1105_xfer_u32(const struct sja1105_private *priv, 134 sja1105_spi_rw_mode_t rw, u64 reg_addr, u32 *value); 135int sja1105_xfer_u64(const struct sja1105_private *priv, 136 sja1105_spi_rw_mode_t rw, u64 reg_addr, u64 *value); |
139int sja1105_static_config_upload(struct sja1105_private *priv); 140int sja1105_inhibit_tx(const struct sja1105_private *priv, 141 unsigned long port_bitmap, bool tx_inhibited); 142 143extern struct sja1105_info sja1105e_info; 144extern struct sja1105_info sja1105t_info; 145extern struct sja1105_info sja1105p_info; 146extern struct sja1105_info sja1105q_info; --- 69 unchanged lines hidden --- | 137int sja1105_static_config_upload(struct sja1105_private *priv); 138int sja1105_inhibit_tx(const struct sja1105_private *priv, 139 unsigned long port_bitmap, bool tx_inhibited); 140 141extern struct sja1105_info sja1105e_info; 142extern struct sja1105_info sja1105t_info; 143extern struct sja1105_info sja1105p_info; 144extern struct sja1105_info sja1105q_info; --- 69 unchanged lines hidden --- |