Lines Matching defs:interface

49  * This file contains defines for the SPI interface
80 int (*reset_cb)(int interface, cvmx_spi_mode_t mode);
83 int (*calendar_setup_cb)(int interface, cvmx_spi_mode_t mode, int num_ports);
86 int (*clock_detect_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
89 int (*training_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
92 int (*calendar_sync_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
94 /** Called when interface is up */
95 int (*interface_up_cb)(int interface, cvmx_spi_mode_t mode);
101 * Return true if the supplied interface is configured for SPI
103 * @param interface Interface to check
104 * @return True if interface is SPI
106 static inline int cvmx_spi_is_spi_interface(int interface)
108 uint64_t gmxState = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface));
113 * Initialize and start the SPI interface.
115 * @param interface The identifier of the packet interface to configure and
116 * use as a SPI interface.
117 * @param mode The operating mode for the SPI interface. The interface
126 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports);
129 * This routine restarts the SPI interface after it has lost synchronization
132 * @param interface The identifier of the packet interface to configure and
133 * use as a SPI interface.
134 * @param mode The operating mode for the SPI interface. The interface
141 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout);
144 * Return non-zero if the SPI interface has a SPI4000 attached
146 * @param interface SPI interface the SPI4000 is connected to
150 extern int cvmx_spi4000_is_present(int interface);
155 * @param interface SPI interface the SPI4000 is connected to
157 extern int cvmx_spi4000_initialize(int interface);
162 * @param interface Interface the SPI4000 is on
166 extern cvmx_gmxx_rxx_rx_inbnd_t cvmx_spi4000_check_speed(int interface, int port);
187 * @param interface The identifier of the packet interface to configure and
188 * use as a SPI interface.
189 * @param mode The operating mode for the SPI interface. The interface
195 extern int cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode);
200 * @param interface The identifier of the packet interface to configure and
201 * use as a SPI interface.
202 * @param mode The operating mode for the SPI interface. The interface
210 extern int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports);
215 * @param interface The identifier of the packet interface to configure and
216 * use as a SPI interface.
217 * @param mode The operating mode for the SPI interface. The interface
224 extern int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout);
229 * @param interface The identifier of the packet interface to configure and
230 * use as a SPI interface.
231 * @param mode The operating mode for the SPI interface. The interface
238 extern int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout);
243 * @param interface The identifier of the packet interface to configure and
244 * use as a SPI interface.
245 * @param mode The operating mode for the SPI interface. The interface
252 extern int cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout);
255 * Callback to handle interface up
257 * @param interface The identifier of the packet interface to configure and
258 * use as a SPI interface.
259 * @param mode The operating mode for the SPI interface. The interface
265 extern int cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode);