/freebsd-10.2-release/sys/contrib/octeon-sdk/ |
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); 68 static inline int __cvmx_helper_npi_enumerate(int interface) argument 70 return __cvmx_helper_npi_probe(interface); 75 * Bringup and enable a NPI interface. After this call packet 79 * @param interface Interface to bring up 83 extern int __cvmx_helper_npi_enable(int interface); [all...] |
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); 68 extern int __cvmx_helper_loop_enumerate(int interface); 72 * Bringup and enable a LOOP interface. After this call packet 76 * @param interface Interface to bring up 80 extern int __cvmx_helper_loop_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); 68 static inline int __cvmx_helper_srio_enumerate(int interface) argument 70 return __cvmx_helper_srio_probe(interface); 75 * Bringup and enable a SRIO interface. After this call packet 79 * @param interface Interface to bring up 83 extern int __cvmx_helper_srio_enable(int interface); [all...] |
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-ilk.h | 57 extern int __cvmx_helper_ilk_enumerate(int interface); 61 * Probe a ILK interface and determine the number of ports 62 * connected to it. The ILK interface should still be down after 65 * @param interface Interface to probe 67 * @return Number of ports on the interface. Zero to disable. 69 extern int __cvmx_helper_ilk_probe(int interface); 73 * Bringup and enable a ILK interface. After this call packet 77 * @param interface Interface to bring up 81 extern int __cvmx_helper_ilk_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); 68 extern int __cvmx_helper_sgmii_enumerate(int interface); 72 * Bringup and enable a SGMII interface. After this call packet 76 * @param interface Interface to bring up 80 extern int __cvmx_helper_sgmii_enable(int interface);
|
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); 68 extern int __cvmx_helper_spi_enumerate(int interface); 72 * Bringup and enable a SPI interface. After this call packet I/O 76 * @param interface Interface to bring up 80 extern int __cvmx_helper_spi_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); 68 extern int __cvmx_helper_xaui_enumerate(int interface); 72 * Bringup and enable a XAUI interface. After this call packet 76 * @param interface Interface to bring up 80 extern int __cvmx_helper_xaui_enable(int interface);
|
H A D | cvmx-helper-rgmii.h | 61 * @param interface Interface to probe 65 extern int __cvmx_helper_rgmii_probe(int interface); 66 static inline int __cvmx_helper_rgmii_enumerate(int interface) argument 68 return __cvmx_helper_rgmii_probe(interface); 72 * Put an RGMII interface in loopback mode. Internal packets sent 83 * to get RGMII to function on the supplied interface. 85 * @param interface PKO Interface to configure (0 or 1) 89 extern int __cvmx_helper_rgmii_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 | 88 int __cvmx_helper_xaui_enumerate(int interface) argument 93 gmx_hg2_control.u64 = cvmx_read_csr(CVMX_GMXX_HG2_CONTROL(interface)); 102 * Probe a XAUI interface and determine the number of ports 103 * connected to it. The XAUI interface should still be down 106 * @param interface Interface to probe 108 * @return Number of ports on the interface. Zero to disable. 110 int __cvmx_helper_xaui_probe(int interface) argument 152 qlm = cvmx_qlm_interface(interface); 158 /* Due to errata GMX-700 on CN56XXp1.x and CN52XXp1.x, the interface 161 mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface)); 199 __cvmx_helper_xaui_link_init(int interface) argument 303 __cvmx_helper_xaui_enable(int interface) argument 354 int interface = cvmx_helper_get_interface_num(ipd_port); local 421 int interface = cvmx_helper_get_interface_num(ipd_port); local 457 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-helper-util.h | 73 * Convert a interface mode into a human readable string 132 * @param interface Interface to configure 133 * @param num_ports Number of ports on the interface 137 extern int __cvmx_helper_setup_gmx(int interface, int num_ports); 141 * Get the number of ipd_ports on an interface. 143 * @param interface 145 * @return the number of ipd_ports on the interface and -1 for error. 147 extern int __cvmx_helper_get_num_ipd_ports(int interface); 151 * Get the number of pko_ports on an interface. 153 * @param interface 242 cvmx_helper_get_first_ipd_port(int interface) argument 255 cvmx_helper_get_last_ipd_port(int interface) argument [all...] |
H A D | cvmx-ilk.h | 43 * This file contains defines for the ILK interface 132 int (*calendar_setup_rx) (int interface, int cal_depth, 154 extern int cvmx_ilk_start_interface (int interface, unsigned char num_lanes); 155 extern int cvmx_ilk_set_pipe (int interface, int pipe_base, 157 extern int cvmx_ilk_tx_set_channel (int interface, cvmx_ilk_pipe_chan_t *pch, 159 extern int cvmx_ilk_rx_set_pknd (int interface, cvmx_ilk_chan_pknd_t *chpknd, 161 extern int cvmx_ilk_calendar_setup_cb (int interface, int num_ports); 162 extern int cvmx_ilk_calendar_sync_cb (int interface, int timeout); 163 extern int cvmx_ilk_enable (int interface); 164 extern int cvmx_ilk_disable (int interface); [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-spi.c | 89 int __cvmx_helper_spi_enumerate(int interface) argument 97 enable.s.enable &= 0xffff << (16 - (interface*16)); 100 if (interface == 1) 109 if (interface == 0) 111 if (interface == 1) 118 cvmx_spi4000_is_present(interface)) 126 * Probe a SPI interface and determine the number of ports 127 * connected to it. The SPI interface should still be down after 130 * @param interface Interface to probe 132 * @return Number of ports on the interface 134 __cvmx_helper_spi_probe(int interface) argument 165 __cvmx_helper_spi_enable(int interface) argument 210 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
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 504 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-ilk.c | 122 * Initialize and start the ILK interface. 124 * @param interface The identifier of the packet interface to configure and 125 * use as a ILK interface. cn68xx has 2 interfaces: ilk0 and 128 * @param lane_mask the lane group for this interface 132 int cvmx_ilk_start_interface (int interface, unsigned char lane_mask) argument 145 if (interface >= CVMX_NUM_ILK_INTF) 152 * interface only */ 153 other_intf = !interface; 154 this_qlm = interface 231 cvmx_ilk_set_pipe(int interface, int pipe_base, unsigned int pipe_len) argument 274 cvmx_ilk_tx_set_channel(int interface, cvmx_ilk_pipe_chan_t *pch, unsigned int num_chs) argument 316 cvmx_ilk_rx_set_pknd(int interface, cvmx_ilk_chan_pknd_t *chpknd, unsigned int num_pknd) argument 359 cvmx_ilk_rx_cal_conf(int interface, int cal_depth, cvmx_ilk_cal_entry_t *pent) argument 492 cvmx_ilk_rx_set_hwm(int interface, int hi_wm) argument 526 cvmx_ilk_rx_cal_ena(int interface, unsigned char cal_ena) argument 561 cvmx_ilk_cal_setup_rx(int interface, int cal_depth, cvmx_ilk_cal_entry_t *pent, int hi_wm, unsigned char cal_ena) argument 600 cvmx_ilk_tx_cal_conf(int interface, int cal_depth, cvmx_ilk_cal_entry_t *pent) argument 708 cvmx_ilk_bp_conf(int interface, int cal_depth, cvmx_ilk_cal_entry_t *pent) argument 748 cvmx_ilk_tx_cal_ena(int interface, unsigned char cal_ena) argument 782 cvmx_ilk_cal_setup_tx(int interface, int cal_depth, cvmx_ilk_cal_entry_t *pent, unsigned char cal_ena) argument 811 cvmx_ilk_reg_dump_rx(int interface) argument 891 cvmx_ilk_reg_dump_tx(int interface) argument 952 cvmx_ilk_runtime_status(int interface) argument 1009 cvmx_ilk_enable(int interface) argument 1094 cvmx_ilk_disable(int interface) argument 1143 cvmx_ilk_get_intf_ena(int interface) argument 1173 cvmx_ilk_get_intf_ln_msk(int interface) argument 1188 cvmx_ilk_get_chan_info(int interface, unsigned char **chans, unsigned char *num_chan) argument 1207 cvmx_ilk_show_stats(int interface, cvmx_ilk_stats_ctrl_t *pstats) argument 1341 cvmx_ilk_lpbk(int interface, cvmx_ilk_lpbk_ena_t enable, cvmx_ilk_lpbk_mode_t mode) argument [all...] |
H A D | cvmx-helper-ilk.c | 77 int __cvmx_helper_ilk_enumerate(int interface) argument 79 interface -= CVMX_ILK_GBL_BASE; 80 return cvmx_ilk_chans[interface]; 85 * Probe a ILK interface and determine the number of ports 86 * connected to it. The ILK 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_ilk_probe(int interface) argument 104 interface -= CVMX_ILK_GBL_BASE; 105 if (interface > 299 __cvmx_helper_ilk_enable(int interface) argument 316 int interface = cvmx_helper_get_interface_num(ipd_port); local [all...] |
H A D | cvmx-helper-sgmii.c | 97 * @param interface Interface to init 98 * @param index Index of prot on the interface 102 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) argument 110 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); 112 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); 117 pcsx_miscx_ctl_reg.u64 = cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); 118 pcsx_linkx_timer_count_reg.u64 = cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); 135 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), pcsx_linkx_timer_count_reg.u64); 147 pcsx_anx_adv_reg.u64 = cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); 152 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), pcsx_anx_adv_re 206 __cvmx_helper_sgmii_hardware_init_link(int interface, int index) argument 274 __cvmx_helper_sgmii_hardware_init_link_speed(int interface, int index, cvmx_helper_link_info_t link_info) argument 374 __cvmx_helper_sgmii_hardware_init(int interface, int num_ports) argument 430 __cvmx_helper_sgmii_enumerate(int interface) argument 448 __cvmx_helper_sgmii_probe(int interface) argument 483 __cvmx_helper_sgmii_enable(int interface) argument 568 int interface = cvmx_helper_get_interface_num(ipd_port); local 617 int interface = cvmx_helper_get_interface_num(ipd_port); local 723 int interface = cvmx_helper_get_interface_num(ipd_port); local 761 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 222 cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode) argument 327 cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports) argument 436 cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 508 cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 577 cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 629 cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode) argument [all...] |
/freebsd-10.2-release/contrib/wpa/hostapd/ |
H A D | ctrl_iface.h | 2 * hostapd / UNIX domain socket -based control interface 15 int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface); 16 void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface); 28 hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface) argument 34 hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interface) argument
|
/freebsd-10.2-release/usr.sbin/IPXrouted/ |
H A D | interface.h | 35 * @(#)interface.h 8.1 (Berkeley) 6/5/93 37 * $FreeBSD: releng/10.2/usr.sbin/IPXrouted/interface.h 50479 1999-08-28 01:35:59Z peter $ 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 is [all...] |
/freebsd-10.2-release/sys/i386/include/xen/ |
H A D | features.h | 14 #include <xen/interface/version.h>
|
/freebsd-10.2-release/sys/xen/ |
H A D | features.h | 12 #include <xen/interface/version.h>
|
/freebsd-10.2-release/sys/mips/cavium/octe/ |
H A D | ethernet-common.c | 59 int interface = INTERFACE(priv->port); local 62 if ((interface < 2) && (cvmx_helper_interface_get_mode(interface) != CVMX_HELPER_INTERFACE_MODE_SPI)) { 78 gmx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); 79 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64 & ~1ull); 81 cvmx_write_csr(CVMX_GMXX_RXX_ADR_CTL(index, interface), control.u64); 83 cvmx_write_csr(CVMX_GMXX_RXX_ADR_CAM_EN(index, interface), 0); 85 cvmx_write_csr(CVMX_GMXX_RXX_ADR_CAM_EN(index, interface), 1); 87 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmx_cfg.u64); 138 int interface local 176 int interface = INTERFACE(priv->port); local 218 int interface = INTERFACE(priv->port); local 248 int interface = INTERFACE(priv->port); local [all...] |