/freebsd-9.3-release/sys/contrib/octeon-sdk/ |
H A D | cvmx-helper-loop.h | 59 * Probe a LOOP interface and determine the number of ports 60 * connected to it. The LOOP interface should still be down after 63 * @param interface Interface to probe 65 * @return Number of ports on the interface. Zero to disable. 67 extern int __cvmx_helper_loop_probe(int interface); 71 * Bringup and enable a LOOP interface. After this call packet 75 * @param interface Interface to bring up 79 extern int __cvmx_helper_loop_enable(int interface);
|
H A D | cvmx-helper-npi.h | 59 * Probe a NPI interface and determine the number of ports 60 * connected to it. The NPI interface should still be down after 63 * @param interface Interface to probe 65 * @return Number of ports on the interface. Zero to disable. 67 extern int __cvmx_helper_npi_probe(int interface); 71 * Bringup and enable a NPI interface. After this call packet 75 * @param interface Interface to bring up 79 extern int __cvmx_helper_npi_enable(int interface);
|
H A D | cvmx-spi.h | 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 Interfac 106 cvmx_spi_is_spi_interface(int interface) argument [all...] |
H A D | cvmx-helper-spi.h | 59 * Probe a SPI interface and determine the number of ports 60 * connected to it. The SPI interface should still be down after 63 * @param interface Interface to probe 65 * @return Number of ports on the interface. Zero to disable. 67 extern int __cvmx_helper_spi_probe(int interface); 71 * Bringup and enable a SPI interface. After this call packet I/O 75 * @param interface Interface to bring up 79 extern int __cvmx_helper_spi_enable(int interface);
|
H A D | cvmx-helper-srio.h | 59 * Probe a SRIO interface and determine the number of ports 60 * connected to it. The SRIO interface should still be down after 63 * @param interface Interface to probe 65 * @return Number of ports on the interface. Zero to disable. 67 extern int __cvmx_helper_srio_probe(int interface); 71 * Bringup and enable a SRIO interface. After this call packet 75 * @param interface Interface to bring up 79 extern int __cvmx_helper_srio_enable(int interface);
|
H A D | cvmx-spi4000.c | 89 #define SPI4000_TWSI_ID(interface) (0x66 + interface) 121 * @param interface Interface the SPI4000 is on. (0 or 1) 125 static void __cvmx_spi4000_write(int interface, int address, uint32_t data) argument 128 cvmx_twsix_write_ia(0, SPI4000_TWSI_ID(interface), SPI4000_WRITE_ADDRESS_HIGH, 2, 1, address); 129 cvmx_twsix_write_ia(0, SPI4000_TWSI_ID(interface), SPI4000_WRITE_DATA0, 4, 1, data); 131 status = cvmx_twsi_read8(SPI4000_TWSI_ID(interface), SPI4000_DO_WRITE); 133 status = cvmx_twsi_read8(SPI4000_TWSI_ID(interface), SPI4000_GET_WRITE_STATUS); 144 * @param interface Interface the SPI4000 is on. (0 or 1) 149 static uint32_t __cvmx_spi4000_read(int interface, in argument 186 __cvmx_spi4000_mdio_write(int interface, int port, int location, int val) argument 218 __cvmx_spi4000_mdio_read(int interface, int port, int location) argument 242 __cvmx_spi4000_configure_mac(int interface) argument 362 __cvmx_spi4000_configure_phy(int interface) argument 394 cvmx_spi4000_check_speed(int interface, int port) argument 502 cvmx_spi4000_is_present(int interface) argument 522 cvmx_spi4000_initialize(int interface) argument [all...] |
H A D | cvmx-helper-xaui.c | 85 * Probe a XAUI interface and determine the number of ports 86 * connected to it. The XAUI interface should still be down 89 * @param interface Interface to probe 91 * @return Number of ports on the interface. Zero to disable. 93 int __cvmx_helper_xaui_probe(int interface) argument 110 /* Due to errata GMX-700 on CN56XXp1.x and CN52XXp1.x, the interface 113 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); 115 cvmx_write_csr(CVMX_GMXX_INF_MODE(interface), mode.u64); 117 __cvmx_helper_setup_gmx(interface, 1); 120 all of the PKO packet ports for this interface t 155 __cvmx_helper_xaui_enable(int interface) argument 257 int interface = cvmx_helper_get_interface_num(ipd_port); local 302 int interface = cvmx_helper_get_interface_num(ipd_port); local 338 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-helper-rgmii.h | 61 * @param interface Interface to probe 65 extern int __cvmx_helper_rgmii_probe(int interface); 68 * Put an RGMII interface in loopback mode. Internal packets sent 79 * to get RGMII to function on the supplied interface. 81 * @param interface PKO Interface to configure (0 or 1) 85 extern int __cvmx_helper_rgmii_enable(int interface);
|
H A D | cvmx-helper-sgmii.h | 59 * Probe a SGMII interface and determine the number of ports 60 * connected to it. The SGMII interface should still be down after 63 * @param interface Interface to probe 65 * @return Number of ports on the interface. Zero to disable. 67 extern int __cvmx_helper_sgmii_probe(int interface); 71 * Bringup and enable a SGMII interface. After this call packet 75 * @param interface Interface to bring up 79 extern int __cvmx_helper_sgmii_enable(int interface);
|
H A D | cvmx-helper-xaui.h | 59 * Probe a XAUI interface and determine the number of ports 60 * connected to it. The XAUI interface should still be down 63 * @param interface Interface to probe 65 * @return Number of ports on the interface. Zero to disable. 67 extern int __cvmx_helper_xaui_probe(int interface); 71 * Bringup and enable a XAUI interface. After this call packet 75 * @param interface Interface to bring up 79 extern int __cvmx_helper_xaui_enable(int interface);
|
H A D | cvmx-helper-sgmii.c | 92 * @param interface Interface to init 93 * @param index Index of prot on the interface 97 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) argument 105 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); 107 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); 112 pcsx_miscx_ctl_reg.u64 = cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); 113 pcsx_linkx_timer_count_reg.u64 = cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); 124 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), pcsx_linkx_timer_count_reg.u64); 136 pcsx_anx_adv_reg.u64 = cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); 141 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), pcsx_anx_adv_re 174 __cvmx_helper_sgmii_hardware_init_link(int interface, int index) argument 225 __cvmx_helper_sgmii_hardware_init_link_speed(int interface, int index, cvmx_helper_link_info_t link_info) argument 320 __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) argument 359 __cvmx_helper_sgmii_probe(int interface) argument 383 __cvmx_helper_sgmii_enable(int interface) argument 416 int interface = cvmx_helper_get_interface_num(ipd_port); local 519 int interface = cvmx_helper_get_interface_num(ipd_port); local 541 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-gmx.h | 67 * @param interface Which interface (0 or 1) 68 * @param port_mask Mask (4bits) of which ports on the interface to disable 77 static inline int cvmx_gmx_set_backpressure_override(uint32_t interface, uint32_t port_mask) argument 81 if (port_mask & ~0xf || interface & ~0x1) 86 cvmx_write_csr(CVMX_GMXX_TX_OVR_BP(interface), gmxx_tx_ovr_bp.u64);
|
H A D | cvmx-helper-rgmii.c | 97 * @param interface Interface to probe 101 int __cvmx_helper_rgmii_probe(int interface) argument 105 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); 111 cvmx_dprintf("ERROR: RGMII initialize called in SPI interface\n"); 144 * Put an RGMII interface in loopback mode. Internal packets sent 152 int interface = (port >> 4) & 1; local 161 cvmx_write_csr(CVMX_GMXX_TXX_CLK(index, interface), 1); 162 cvmx_write_csr(CVMX_GMXX_TXX_SLOT(index, interface), 0x200); 163 cvmx_write_csr(CVMX_GMXX_TXX_BURST(index, interface), 0x2000); 164 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cf 185 __cvmx_helper_rgmii_enable(int interface) argument 297 int interface = cvmx_helper_get_interface_num(ipd_port); local 333 int interface = cvmx_helper_get_interface_num(ipd_port); local 503 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-helper-spi.c | 92 * Probe a SPI interface and determine the number of ports 93 * connected to it. The SPI interface should still be down after 96 * @param interface Interface to probe 98 * @return Number of ports on the interface. Zero to disable. 100 int __cvmx_helper_spi_probe(int interface) argument 105 cvmx_spi4000_is_present(interface)) 113 if (interface == 1) { 120 enable.s.enable &= 0xffff << (16 - (interface*16)); 132 enable.s.enable |= 0xffff << (interface*16); 135 __cvmx_helper_setup_gmx(interface, num_port 150 __cvmx_helper_spi_enable(int interface) argument 188 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-spi.c | 123 * Initialize and start the SPI interface. 125 * @param interface The identifier of the packet interface to configure and 126 * use as a SPI interface. 127 * @param mode The operating mode for the SPI interface. The interface 136 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports) argument 144 INVOKE_CB( cvmx_spi_callbacks.reset_cb, interface, mode); 147 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, num_ports); 150 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mod 177 cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) argument 224 cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode) argument 329 cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports) argument 438 cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 510 cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 579 cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 631 cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode) argument [all...] |
H A D | cvmx-helper.c | 128 /* Port count per interface */ 135 * Return the number of interfaces the chip has. Each interface 138 * one interface. 168 * Return the number of ports on an interface. Depending on the 170 * specifies that the interface doesn't exist or isn't usable. 172 * @param interface Interface to get the port count for 174 * @return Number of ports on interface. Can be Zero. 176 int cvmx_helper_ports_on_interface(int interface) argument 178 return interface_port_count[interface]; 186 * Get the operating mode of an interface 195 cvmx_helper_interface_get_mode(int interface) argument 341 cvmx_helper_interface_probe(int interface) argument 407 __cvmx_helper_interface_setup_ipd(int interface) argument 456 __cvmx_helper_interface_setup_pko(int interface) argument 520 int interface; local 673 __cvmx_helper_packet_hardware_enable(int interface) argument 730 int interface; local 771 int interface; local 880 int interface; local 1229 int interface = cvmx_helper_get_interface_num(ipd_port); local 1276 int interface = cvmx_helper_get_interface_num(ipd_port); local 1345 int interface = cvmx_helper_get_interface_num(ipd_port); local 1407 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-helper-util.h | 61 * Convert a interface mode into a human readable string 120 * @param interface Interface to configure 121 * @param num_ports Number of ports on the interface 125 extern int __cvmx_helper_setup_gmx(int interface, int num_ports); 129 * interface. 131 * @param interface Interface to use 132 * @param port Port on the interface 136 extern int cvmx_helper_get_ipd_port(int interface, int port); 141 * interface. 143 * @param interface Interfac 147 cvmx_helper_get_first_ipd_port(int interface) argument 160 cvmx_helper_get_last_ipd_port(int interface) argument [all...] |
/freebsd-9.3-release/sys/xen/interface/ |
H A D | arch-x86_32.h | 4 * Guest OS interface to x86 32-bit Xen. 27 #include <xen/interface/arch-x86/xen.h>
|
/freebsd-9.3-release/usr.sbin/IPXrouted/ |
H A D | interface.h | 35 * @(#)interface.h 8.1 (Berkeley) 6/5/93 45 * An ``interface'' is similar to an ifnet structure, 51 * We list only one address for each interface, the AF_IPX one. 53 struct interface { struct 54 struct interface *int_next; 81 #define IFF_UP 0x1 /* interface is up */ 85 #define IFF_POINTOPOINT 0x10 /* interface is point-to-point link */ 88 #define IFF_INTERFACE 0x400000 /* hardware interface */ 89 #define IFF_REMOTE 0x800000 /* interface isn't on this machine */ 91 struct interface *if_ifwithadd [all...] |
/freebsd-9.3-release/sys/i386/include/xen/ |
H A D | features.h | 14 #include <xen/interface/version.h>
|
/freebsd-9.3-release/sys/xen/ |
H A D | features.h | 12 #include <xen/interface/version.h>
|
/freebsd-9.3-release/sys/mips/cavium/octe/ |
H A D | ethernet-common.c | 60 int interface = INTERFACE(priv->port); local 63 if ((interface < 2) && (cvmx_helper_interface_get_mode(interface) != CVMX_HELPER_INTERFACE_MODE_SPI)) { 79 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); 80 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64 & ~1ull); 82 cvmx_write_csr(CVMX_GMXX_RXX_ADR_CTL(index, interface), control.u64); 84 cvmx_write_csr(CVMX_GMXX_RXX_ADR_CAM_EN(index, interface), 0); 86 cvmx_write_csr(CVMX_GMXX_RXX_ADR_CAM_EN(index, interface), 1); 88 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); 103 int interface local 141 int interface = INTERFACE(priv->port); local 183 int interface = INTERFACE(priv->port); local 213 int interface = INTERFACE(priv->port); local [all...] |
/freebsd-9.3-release/sbin/natd/samples/ |
H A D | natd.cf.sample | 41 # Obtain interface name from the command output of "ifconfig -a" 44 interface ep0 72 # will be known by to the outside interface. These are sometimes known as 73 # virtual IP numbers. It's suggested to use the "interface" directive
|
/freebsd-9.3-release/sbin/dhclient/ |
H A D | bpf.c | 3 /* BPF socket interface code, originally contributed by Archie Cobbs. */ 59 * Called by get_interface_list for each interface that's discovered. 60 * Opens a packet filter for each interface and adds it to the select 82 /* Set the BPF device to point at this interface. */ 84 error("Can't attach interface %s to bpf device %s: %m", 97 * don't need to register this interface twice. 194 /* Open a BPF device and hang it on this interface... */ 253 send_packet(struct interface_info *interface, struct dhcp_packet *raw, argument 264 assemble_hw_header(interface, buf, &bufp, hto); 275 result = writev(interface 291 receive_packet(struct interface_info *interface, unsigned char *buf, size_t len, struct sockaddr_in *from, struct hardware *hfrom) argument [all...] |
/freebsd-9.3-release/usr.sbin/bsdconfig/networking/ |
H A D | devices | 83 f_dialog_menutag_fetch interface 84 defaultitem="$interface" 88 # device name if the interface is active. Remove the asterisk 91 case "$interface" in 92 *\*) interface="${interface%?}" ;; 96 # Obtain initial interface settings to be configured. These will be 108 _ifconfig=$( f_sysrc_get ifconfig_$interface ) 146 [ "$_ipaddr" ] || f_ifconfig_inet $interface _ipaddr 147 [ "$_netmask" ] || f_ifconfig_netmask $interface _netmas [all...] |