/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_roboswitch.c | 2 * WPA Supplicant - roboswitch driver interface 3 * Copyright (c) 2008-2012 Jouke Witteveen 20 #define ROBO_PHY_ADDR 0x1e /* RoboSwitch PHY address */ 23 #define ROBO_MII_PAGE 0x10 /* MII page register */ 24 #define ROBO_MII_ADDR 0x11 /* MII address register */ 25 #define ROBO_MII_DATA_OFFSET 0x18 /* Start of MII data registers */ 27 #define ROBO_MII_PAGE_ENABLE 0x01 /* MII page op code */ 28 #define ROBO_MII_ADDR_WRITE 0x01 /* MII address write op code */ 29 #define ROBO_MII_ADDR_READ 0x02 /* MII address read op code */ 34 #define ROBO_ARLCTRL_PAGE 0x04 /* ARL control page */ [all …]
|
H A D | driver_macsec_linux.c | 33 #define UNUSED_SCI 0xffffffffffffffff 40 struct macsec_drv_data *drv; member 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() 136 return 0; 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() [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 46 int ret = 0; in wpa_driver_wext_set_auth_param() 48 os_memset(&iwr, 0, sizeof(iwr)); in wpa_driver_wext_set_auth_param() 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() 56 "value 0x%x) failed: %s)", in wpa_driver_wext_set_auth_param() [all …]
|
H A D | driver_bsd.c | 2 * WPA Supplicant - driver interaction with BSD net80211 layer 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() 108 struct bsd_driver_data *drv = priv; in bsd_set80211() local [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. 48 #define TCI_ES 0x40 49 #define TCI_SC 0x20 50 #define TCI_SCB 0x10 51 #define TCI_E 0x08 52 #define TCI_C 0x04 85 static void __macsec_drv_init(struct macsec_qca_data *drv) in __macsec_drv_init() argument 87 int ret = 0; in __macsec_drv_init() 91 wpa_printf(MSG_INFO, "%s: secy_id=%d", __func__, drv->secy_id); in __macsec_drv_init() [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); 55 { 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03 }; 61 #define OID_802_11_BSSID 0x0d010101 62 #define OID_802_11_SSID 0x0d010102 [all …]
|
H A D | driver_hostap.c | 3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 35 static const u8 rfc1042_header[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 }; 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() 74 printf("Not ToDS data frame (fc=0x%04x)\n", fc); in handle_data() 78 sa = hdr->addr2; in handle_data() 79 os_memset(&event, 0, sizeof(event)); in handle_data() 82 wpa_supplicant_event(drv->hapd, EVENT_RX_FROM_UNKNOWN, &event); in handle_data() 85 left = len - sizeof(*hdr); in handle_data() 92 if (memcmp(pos, rfc1042_header, sizeof(rfc1042_header)) != 0) { in handle_data() [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() 37 if (res < 0) 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 50 io[0].iov_base = &cmd; in wpa_priv_cmd() [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 61 #define NLM_F_CAPPED 0x100 64 #define NLM_F_ACK_TLVS 0x200 111 #define ELOOP_SOCKET_INVALID (intptr_t) 0x8888888888888889ULL [all …]
|
H A D | driver_atheros.c | 5 * Copyright (c) 2005-2007, Jouni Malinen <j@w1.fi> 48 #define ETH_P_80211_RAW 0x0019 183 get80211param(struct atheros_driver_data *drv, int op, int *data) in get80211param() argument 187 os_memset(&iwr, 0, sizeof(iwr)); in get80211param() 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() 195 return 0; 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() [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_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" 43 if (info->count >= MAX_NL80211_NOISE_FREQS) in get_noise_for_scan_results() 46 nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in get_noise_for_scan_results() 47 genlmsg_attrlen(gnlh, 0), NULL); 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() 72 info->count++; in get_noise_for_scan_results() [all …]
|
H A D | driver_wired.c | 3 * Copyright (c) 2005-2009, Jouni Malinen <j@w1.fi> 75 u_int8_t options[308]; /* 312 - cookie */ 98 switch (ntohs(hdr->ethertype)) { in handle_data() 101 sa = hdr->src; in handle_data() 102 os_memset(&event, 0, sizeof(event)); in handle_data() 107 left = len - sizeof(*hdr); in handle_data() 112 wpa_printf(MSG_DEBUG, "Unknown ethertype 0x%04x in data frame", in handle_data() 113 ntohs(hdr->ethertype)); in handle_data() 125 len = recv(sock, buf, sizeof(buf), 0); in handle_read() 126 if (len < 0) { in handle_read() [all …]
|
H A D | driver_openbsd.c | 31 struct openbsd_driver_data *drv = priv; in wpa_driver_openbsd_get_ssid() local 35 os_memset(&ifr, 0, sizeof(ifr)); in wpa_driver_openbsd_get_ssid() 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() 57 return 0; in wpa_driver_openbsd_get_bssid() [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() 35 os_memset(&event, 0, sizeof(event)); 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() [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" 29 nla_parse(tb_msg, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0), in protocol_feature_handler() 30 genlmsg_attrlen(gnlh, 0), NULL); in protocol_feature_handler() 39 static u32 get_nl80211_protocol_features(struct wpa_driver_nl80211_data *drv) in get_nl80211_protocol_features() argument 41 u32 feat = 0; in get_nl80211_protocol_features() 46 return 0; in get_nl80211_protocol_features() [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/sys/dev/ida/ |
H A D | ida_disk.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 69 { 0, 0 } 78 DRIVER_MODULE(idad, ida, idad_driver, 0, 0); 83 * to complete. Multi-page transfers are supported. All I/O requests must 89 struct idad_softc *drv; in idad_strategy() local 91 drv = bp->bio_disk->d_drv1; in idad_strategy() 92 if (drv == NULL) { in idad_strategy() 93 bp->bio_error = EINVAL; in idad_strategy() 100 if (drv->flags & DRV_WRITEPROT && (bp->bio_cmd == BIO_WRITE)) { in idad_strategy() [all …]
|
/freebsd/tools/tools/kdrv/ |
H A D | KernelDriver | 2 # Tcl magic -*- tcl -*- \ 3 exec tclsh $0 $* 6 # KernelDriver - FreeBSD driver source installer 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"]; 102 0 { 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/stand/libsa/ |
H A D | netif.c | 50 * This decision is to keep iodesc id management simple - we get list 59 int netif_debug = 0; 71 struct netif_driver *drv; in netif_init() local 78 for (d = 0; netif_drivers[d]; d++) { in netif_init() 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() [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 …]
|