/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_roboswitch.c | 2 * WPA Supplicant - roboswitch driver interface 3 * Copyright (c) 2008-2012 Jouke Witteveen 39 #define ROBO_ARLCTRL_ADDR_1 0x10 /* Multiport address 1 */ 40 #define ROBO_ARLCTRL_VEC_1 0x16 /* Multiport vector 1 */ 58 char ifname[IFNAMSIZ + 1]; 66 /* Copied from the kernel-only part of mii.h. */ 69 return (struct mii_ioctl_data *) &rq->ifr_ifru; in if_mii() 74 * RoboSwitch uses 16-bit Big Endian addresses. 81 be[(ETH_ALEN - i) / 2 - 1] = WPA_GET_BE16(addr + i); in wpa_driver_roboswitch_addr_be16() 86 struct wpa_driver_roboswitch_data *drv, u8 reg) in wpa_driver_roboswitch_mdio_read() argument [all …]
|
H A D | driver_macsec_linux.c | 40 struct macsec_drv_data *drv; member 61 char ifname[IFNAMSIZ + 1]; 110 if (!genlmsg_put(msg, 0, 0, ctx->macsec_genl_id, 0, 0, cmd, 0)) { in msg_prepare() 130 return -1; in nla_put_rxsc_config() 139 return -1; in nla_put_rxsc_config() 143 static int init_genl_ctx(struct macsec_drv_data *drv) in init_genl_ctx() argument 145 struct macsec_genl_ctx *ctx = &drv->ctx; in init_genl_ctx() 147 ctx->sk = nl_socket_alloc(); in init_genl_ctx() 148 if (!ctx->sk) { in init_genl_ctx() 150 return -1; in init_genl_ctx() [all …]
|
H A D | driver_wext.c | 3 * Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi> 9 * When used with WE-18 or newer, this interface can be used as-is with number 37 static int wpa_driver_wext_finish_drv_init(struct wpa_driver_wext_data *drv); 38 static void wpa_driver_wext_disconnect(struct wpa_driver_wext_data *drv); 42 int wpa_driver_wext_set_auth_param(struct wpa_driver_wext_data *drv, in wpa_driver_wext_set_auth_param() argument 49 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 53 if (ioctl(drv->ioctl_sock, SIOCSIWAUTH, &iwr) < 0) { in wpa_driver_wext_set_auth_param() 59 ret = errno == EOPNOTSUPP ? -2 : -1; in wpa_driver_wext_set_auth_param() 67 * wpa_driver_wext_get_bssid - Get BSSID, SIOCGIWAP 70 * Returns: 0 on success, -1 on failure [all …]
|
H A D | driver_bsd.c | 2 * WPA Supplicant - driver interaction with BSD net80211 layer 65 char ifname[IFNAMSIZ+1]; /* interface name */ 83 struct bsd_driver_data *drv; in bsd_get_drvindex() local 85 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvindex() 86 if (drv->ifindex == ifindex) in bsd_get_drvindex() 87 return drv; in bsd_get_drvindex() 96 struct bsd_driver_data *drv; in bsd_get_drvname() local 98 dl_list_for_each(drv, &global->ifaces, struct bsd_driver_data, list) { in bsd_get_drvname() 99 if (os_strcmp(drv->ifname, ifname) == 0) in bsd_get_drvname() 100 return drv; in bsd_get_drvname() [all …]
|
H A D | driver_ndis.c | 2 * WPA Supplicant - Windows/NDIS driver interface 3 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi> 41 int wpa_driver_register_event_cb(struct wpa_driver_ndis_data *drv); 47 static void wpa_driver_ndis_poll(void *drv); 49 static int wpa_driver_ndis_adapter_init(struct wpa_driver_ndis_data *drv); 50 static int wpa_driver_ndis_adapter_open(struct wpa_driver_ndis_data *drv); 51 static void wpa_driver_ndis_adapter_close(struct wpa_driver_ndis_data *drv); 170 UCHAR IEs[1]; 175 NDIS_WLAN_BSSID_EX Bssid[1]; 188 UCHAR KeyMaterial[1]; [all …]
|
H A D | driver_macsec_qca.c | 3 * Copyright (c) 2005-2009, Jouni Malinen <j@w1.fi> 5 * Copyright (c) 2013-2014, Qualcomm Atheros, Inc. 55 #pragma pack(push, 1) 85 static void __macsec_drv_init(struct macsec_qca_data *drv) in __macsec_drv_init() argument 91 wpa_printf(MSG_INFO, "%s: secy_id=%d", __func__, drv->secy_id); in __macsec_drv_init() 94 ret = nss_macsec_secy_en_set(drv->secy_id, true); in __macsec_drv_init() 98 ret = nss_macsec_secy_sc_sa_mapping_mode_set(drv->secy_id, in __macsec_drv_init() 105 rx_ctl_filt.bypass = 1; in __macsec_drv_init() 109 ret = nss_macsec_secy_rx_ctl_filt_set(drv->secy_id, 0, &rx_ctl_filt); in __macsec_drv_init() 114 tx_ctl_filt.bypass = 1; in __macsec_drv_init() [all …]
|
H A D | driver_hostap.c | 3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 40 char iface[IFNAMSIZ + 1]; 58 static void handle_data(struct hostap_driver_data *drv, u8 *buf, size_t len, in handle_data() argument 71 fc = le_to_host16(hdr->frame_control); in handle_data() 78 sa = hdr->addr2; in handle_data() 82 wpa_supplicant_event(drv->hapd, EVENT_RX_FROM_UNKNOWN, &event); in handle_data() 84 pos = (u8 *) (hdr + 1); in handle_data() 85 left = len - sizeof(*hdr); in handle_data() 97 left -= sizeof(rfc1042_header); in handle_data() 106 left -= 2; in handle_data() [all …]
|
H A D | driver_nl80211.c | 3 * Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi> 4 * Copyright (c) 2003-2004, Instant802 Networks, Inc. 5 * Copyright (c) 2005-2006, Devicescape Software, Inc. 7 * Copyright (c) 2009-2010, Atheros Communications 27 #include "common/qca-vendor.h" 28 #include "common/qca-vendor-attr.h" 57 NLMSGERR_ATTR_MAX = __NLMSGERR_ATTR_MAX - 1 164 wpa_driver_nl80211_finish_drv_init(struct wpa_driver_nl80211_data *drv, 176 #define IFIDX_ANY -1 178 static void add_ifidx(struct wpa_driver_nl80211_data *drv, int ifidx, [all …]
|
H A D | driver_privsep.c | 2 * WPA Supplicant - privilege separated driver interface 3 * Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi> 30 static int wpa_priv_reg_cmd(struct wpa_driver_privsep_data *drv, int cmd) in wpa_priv_reg_cmd() argument 34 res = sendto(drv->priv_socket, &cmd, sizeof(cmd), 0, in wpa_priv_reg_cmd() 35 (struct sockaddr *) &drv->priv_addr, in wpa_priv_reg_cmd() 36 sizeof(drv->priv_addr)); in wpa_priv_reg_cmd() 39 return res < 0 ? -1 : 0; in wpa_priv_reg_cmd() 43 static int wpa_priv_cmd(struct wpa_driver_privsep_data *drv, int cmd, in wpa_priv_cmd() argument 52 io[1].iov_base = (u8 *) data; in wpa_priv_cmd() 53 io[1].iov_len = data_len; in wpa_priv_cmd() [all …]
|
H A D | driver_nl80211_scan.c | 2 * Driver interaction with Linux nl80211/cfg80211 - Scanning 4 * Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi> 6 * Copyright (c) 2009-2010, Atheros Communications 20 #include "common/qca-vendor.h" 34 struct nlattr *tb[NL80211_ATTR_MAX + 1]; in get_noise_for_scan_results() 36 struct nlattr *sinfo[NL80211_SURVEY_INFO_MAX + 1]; in get_noise_for_scan_results() 37 static struct nla_policy survey_policy[NL80211_SURVEY_INFO_MAX + 1] = { in get_noise_for_scan_results() 43 if (info->count >= MAX_NL80211_NOISE_FREQS) in get_noise_for_scan_results() 68 info->freq[info->count] = in get_noise_for_scan_results() 70 info->noise[info->count] = in get_noise_for_scan_results() [all …]
|
H A D | driver_atheros.c | 5 * Copyright (c) 2005-2007, Jouni Malinen <j@w1.fi> 65 char iface[IFNAMSIZ + 1]; 183 get80211param(struct atheros_driver_data *drv, int op, int *data) in get80211param() argument 188 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in get80211param() 191 if (ioctl(drv->ioctl_sock, IEEE80211_IOCTL_GETPARAM, &iwr) < 0) in get80211param() 192 return -1; in get80211param() 201 set80211priv(struct atheros_driver_data *drv, int op, void *data, int len) in set80211priv() argument 206 /* Certain ioctls must use the non-inlined method */ in set80211priv() 212 os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); in set80211priv() 228 if (ioctl(drv->ioctl_sock, op, &iwr) < 0) { in set80211priv() [all …]
|
H A D | driver_nl80211_event.c | 2 * Driver interaction with Linux nl80211/cfg80211 - Event processing 3 * Copyright (c) 2002-2017, Jouni Malinen <j@w1.fi> 5 * Copyright (c) 2009-2010, Atheros Communications 16 #include "common/qca-vendor.h" 17 #include "common/qca-vendor-attr.h" 197 static void mlme_event_auth(struct wpa_driver_nl80211_data *drv, in mlme_event_auth() argument 203 if (!(drv->capa.flags & WPA_DRIVER_FLAGS_SME) && in mlme_event_auth() 204 drv->force_connect_cmd) { in mlme_event_auth() 216 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 222 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth() [all …]
|
H A D | driver_wired.c | 3 * Copyright (c) 2005-2009, Jouni Malinen <j@w1.fi> 33 #pragma pack(push, 1) 75 u_int8_t options[308]; /* 312 - cookie */ 98 switch (ntohs(hdr->ethertype)) { in handle_data() 101 sa = hdr->src; in handle_data() 106 pos = (u8 *) (hdr + 1); in handle_data() 107 left = len - sizeof(*hdr); in handle_data() 113 ntohs(hdr->ethertype)); in handle_data() 149 /* must contain at least dhcp_message->chaddr */ in handle_dhcp() 156 mac_address = (u8 *) &(msg->chaddr); in handle_dhcp() [all …]
|
H A D | driver_nl80211_capa.c | 2 * Driver interaction with Linux nl80211/cfg80211 - Capabilities 3 * Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi> 5 * Copyright (c) 2009-2010, Atheros Communications 17 #include "common/qca-vendor.h" 18 #include "common/qca-vendor-attr.h" 26 struct nlattr *tb_msg[NL80211_ATTR_MAX + 1]; in protocol_feature_handler() 39 static u32 get_nl80211_protocol_features(struct wpa_driver_nl80211_data *drv) in get_nl80211_protocol_features() argument 48 if (!nl80211_cmd(drv, msg, 0, NL80211_CMD_GET_PROTOCOL_FEATURES)) { in get_nl80211_protocol_features() 53 if (send_and_recv_resp(drv, msg, protocol_feature_handler, &feat) == 0) in get_nl80211_protocol_features() 61 struct wpa_driver_nl80211_data *drv; member [all …]
|
H A D | driver_openbsd.c | 21 char ifname[IFNAMSIZ + 1]; 31 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_get_ssid() local 36 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wpa_driver_openbsd_get_ssid() 38 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 || in wpa_driver_openbsd_get_ssid() 40 return -1; in wpa_driver_openbsd_get_ssid() 49 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_get_bssid() local 52 os_strlcpy(id.i_name, drv->ifname, sizeof(id.i_name)); in wpa_driver_openbsd_get_bssid() 53 if (ioctl(drv->sock, SIOCG80211BSSID, &id) < 0) in wpa_driver_openbsd_get_bssid() 54 return -1; in wpa_driver_openbsd_get_bssid() 65 capa->flags = WPA_DRIVER_FLAGS_4WAY_HANDSHAKE_PSK | in wpa_driver_openbsd_get_capa() [all …]
|
H A D | driver_nl80211_monitor.c | 2 * Driver interaction with Linux nl80211/cfg80211 - AP monitor interface 3 * Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi> 4 * Copyright (c) 2003-2004, Instant802 Networks, Inc. 5 * Copyright (c) 2005-2006, Devicescape Software, Inc. 7 * Copyright (c) 2009-2010, Atheros Communications 33 fc = le_to_host16(hdr->frame_control); in handle_tx_callback() 38 event.tx_status.dst = hdr->addr1; in handle_tx_callback() 46 static void from_unknown_sta(struct wpa_driver_nl80211_data *drv, in from_unknown_sta() argument 56 fc = le_to_host16(hdr->frame_control); in from_unknown_sta() 60 event.rx_from_unknown.addr = hdr->addr2; in from_unknown_sta() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-drv.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2005-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 11 #include <linux/dma-mapping.h> 16 #include "iwl-drv.h" 17 #include "iwl-csr.h" 18 #include "iwl-debug.h" 19 #include "iwl-trans.h" 20 #include "iwl-op-mode.h" [all …]
|
/freebsd/tools/tools/kdrv/ |
H A D | KernelDriver | 2 # Tcl magic -*- tcl -*- \ 6 # KernelDriver - FreeBSD driver source installer 16 # 1. Redistributions of source code must retain the above copyright 21 # 3. Neither the name of the author nor the names of any co-contributors 39 # KernelDriver provides a means for installing source-form drivers into FreeBSD 100 set candidate [glob -nocomplain "$hint/*.drvinfo"]; 105 1 { 142 # described above, and fill in the global Drv array. 146 global Drv Options; 152 set Drv(description) ""; [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/rockchip/ |
H A D | rockchip-pinconf.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /omit-if-no-ref/ 8 pcfg_pull_up: pcfg-pull-up { 9 bias-pull-up; 12 /omit-if-no-ref/ 13 pcfg_pull_down: pcfg-pull-down { 14 bias-pull-down; 17 /omit-if-no-ref/ 18 pcfg_pull_none: pcfg-pull-none { 19 bias-disable; [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/samsung/ |
H A D | exynos4x12-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos4x12 SoCs pin-mux and pin-config device tree source 8 * Samsung's Exynos4x12 SoCs pin-mux and pin-config options are listed as device 12 #include "exynos-pinctrl.h" 15 pin- ## _pin { \ 17 samsung,pin-con-pdn = <EXYNOS_PIN_PDN_ ##_mode>; \ 18 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_ ##_pull>; \ 22 gpa0: gpa0-gpio-bank { 23 gpio-controller; 24 #gpio-cells = <2>; [all …]
|
H A D | s5pv210-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's S5PV210 SoC device tree source - pin control-related 6 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. 11 * Samsung's S5PV210 SoC pin banks, pin-mux and pin-config options are 15 #include "s5pv210-pinctrl.h" 18 pin- ## _pi [all...] |
H A D | exynos5250-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos5250 SoC pin-mux and pin-config device tree source 8 * Samsung's Exynos5250 SoC pin-mux and pin-config options are listed as device 12 #include "exynos-pinctrl.h" 15 gpa0: gpa0-gpio-bank { 16 gpio-controller; 17 #gpio-cells = <2>; 19 interrupt-controller; 20 #interrupt-cells = <2>; 23 gpa1: gpa1-gpio-bank { [all …]
|
H A D | exynos4210-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos4210 SoC pin-mux and pin-config device tree source 5 * Copyright (c) 2011-2012 Samsung Electronics Co., Ltd. 7 * Copyright (c) 2011-2012 Linaro Ltd. 10 * Samsung's Exynos4210 SoC pin-mux and pin-config options are listed as device 14 #include "exynos-pinctrl.h" 17 gpa0: gpa0-gpio-bank { 18 gpio-controller; 19 #gpio-cells = <2>; 21 interrupt-controller; [all …]
|
H A D | exynos5420-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung's Exynos5420 SoC pin-mux and pin-config device tree source 8 * Samsung's Exynos5420 SoC pin-mux and pin-config options are listed as device 12 #include "exynos-pinctrl.h" 15 gpy7: gpy7-gpio-bank { 16 gpio-controller; 17 #gpio-cells = <2>; 19 interrupt-controller; 20 #interrupt-cells = <2>; 23 gpx0: gpx0-gpio-bank { [all …]
|
/freebsd/stand/libsa/ |
H A D | netif.c | 10 * 1. Redistributions of source code must retain the above copyright 50 * This decision is to keep iodesc id management simple - we get list 71 struct netif_driver *drv; in netif_init() local 79 drv = netif_drivers[d]; in netif_init() 80 for (i = 0; i < drv->netif_nifs; i++) in netif_init() 81 drv->netif_ifs[i].dif_used = 0; in netif_init() 88 struct netif_driver *drv = nif->nif_driver; in netif_match() local 92 printf("%s%d: netif_match (%d)\n", drv->netif_bname, in netif_match() 93 nif->nif_unit, nif->nif_sel); in netif_match() 95 return drv->netif_match(nif, machdep_hint); in netif_match() [all …]
|