Lines Matching refs:interface

30  * This file contains defines for the SPI interface
49 int (*reset_cb) (int interface, cvmx_spi_mode_t mode);
52 int (*calendar_setup_cb) (int interface, cvmx_spi_mode_t mode,
56 int (*clock_detect_cb) (int interface, cvmx_spi_mode_t mode,
60 int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout);
63 int (*calendar_sync_cb) (int interface, cvmx_spi_mode_t mode,
66 /** Called when interface is up */
67 int (*interface_up_cb) (int interface, cvmx_spi_mode_t mode);
72 * Return true if the supplied interface is configured for SPI
74 * @interface: Interface to check
75 * Returns True if interface is SPI
77 static inline int cvmx_spi_is_spi_interface(int interface)
79 uint64_t gmxState = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface));
84 * Initialize and start the SPI interface.
86 * @interface: The identifier of the packet interface to configure and
87 * use as a SPI interface.
88 * @mode: The operating mode for the SPI interface. The interface
97 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode,
101 * This routine restarts the SPI interface after it has lost synchronization
104 * @interface: The identifier of the packet interface to configure and
105 * use as a SPI interface.
106 * @mode: The operating mode for the SPI interface. The interface
113 extern int cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode,
117 * Return non-zero if the SPI interface has a SPI4000 attached
119 * @interface: SPI interface the SPI4000 is connected to
123 static inline int cvmx_spi4000_is_present(int interface)
131 * @interface: SPI interface the SPI4000 is connected to
133 static inline int cvmx_spi4000_initialize(int interface)
141 * @interface: Interface the SPI4000 is on
146 int interface,
173 * @interface: The identifier of the packet interface to configure and
174 * use as a SPI interface.
175 * @mode: The operating mode for the SPI interface. The interface
183 extern int cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode);
189 * @interface: The identifier of the packet interface to configure and
190 * use as a SPI interface.
191 * @mode: The operating mode for the SPI interface. The interface
200 extern int cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode,
206 * @interface: The identifier of the packet interface to configure and
207 * use as a SPI interface.
208 * @mode: The operating mode for the SPI interface. The interface
217 extern int cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode,
223 * @interface: The identifier of the packet interface to configure and
224 * use as a SPI interface.
225 * @mode: The operating mode for the SPI interface. The interface
234 extern int cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode,
240 * @interface: The identifier of the packet interface to configure and
241 * use as a SPI interface.
242 * @mode: The operating mode for the SPI interface. The interface
251 extern int cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode,
255 * Callback to handle interface up
257 * @interface: The identifier of the packet interface to configure and
258 * use as a SPI interface.
259 * @mode: The operating mode for the SPI interface. The interface
267 extern int cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode);