• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/octeon-sdk/

Lines Matching defs:port

182  * @param port      SPI4000 RGMII port to write to. (0-9)
186 static void __cvmx_spi4000_mdio_write(int interface, int port, int location, int val)
194 mdio.s.phy_address = port;
214 * @param port SPI4000 RGMII port to read from. (0-9)
218 static int __cvmx_spi4000_mdio_read(int interface, int port, int location)
225 mdio.s.phy_address = port;
244 int port;
263 // Step 3b: De-assert port enables.
272 for (port=0; port < 10; port++)
274 int port_offset = port << 7;
335 for (port=0; port < 10; port++)
338 __cvmx_spi4000_write(interface, port + 0x0600, 0x0900); // TXFIFO High watermark
339 __cvmx_spi4000_write(interface, port + 0x060a, 0x0800); // TXFIFO Low watermark
340 __cvmx_spi4000_write(interface, port + 0x0614, 0x0380); // TXFIFO threshold
349 // Step 14: Assert port enable
364 int port;
373 for (port=0; port < 10; port++)
374 cvmx_spi4000_check_speed(interface, port);
376 for (port=0; port < 10; port++)
377 __cvmx_spi4000_mdio_write(interface, port, 0x14, 0x00e2);
379 for (port=0; port < 10; port++)
380 __cvmx_spi4000_mdio_write(interface, port, 0x4, 0x0d01);
382 for (port=0; port < 10; port++)
383 __cvmx_spi4000_mdio_write(interface, port, 0x0, 0x9140);
388 * Poll all the SPI4000 port and check its speed
391 * @param port Port to poll (0-9)
392 * @return Status of the port. 0=down. All other values the port is up.
394 cvmx_gmxx_rxx_rx_inbnd_t cvmx_spi4000_check_speed(int interface, int port)
404 if (port>=10)
450 read_status = __cvmx_spi4000_mdio_read(interface, port, 0x11);
455 if (read_status != phy_status[port])
457 phy_status[port] = read_status;
462 __cvmx_spi4000_write(interface, (port<<7) | 0x0010, 0x3); /* 1Gbps */
464 __cvmx_spi4000_write(interface, (port<<7) | 0x0010, 0x1); /* 100Mbps */
469 __cvmx_spi4000_write(interface, (port<<7) | 0x0010, 0x3); /* 1Gbps */