| /freebsd/sys/contrib/device-tree/Bindings/connector/ |
| H A D | usb-connector.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/connector/usb-connector.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ro [all...] |
| /freebsd/sys/geom/raid/ |
| H A D | md_nvidia.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2000 - 2008 Søren Schmidt <sos@FreeBSD.org> 60 uint8_t revision[4]; member 160 printf("nvidia_id <%.8s>\n", meta->nvidia_id); in g_raid_md_nvidia_print() 161 printf("config_size %u\n", meta->config_size); in g_raid_md_nvidia_print() 162 printf("checksum 0x%08x\n", meta->checksum); in g_raid_md_nvidia_print() 163 printf("version 0x%04x\n", meta->version); in g_raid_md_nvidia_print() 164 printf("disk_number %d\n", meta->disk_number); in g_raid_md_nvidia_print() 165 printf("dummy_0 0x%02x\n", meta->dummy_0); in g_raid_md_nvidia_print() [all …]
|
| /freebsd/sys/contrib/device-tree/include/dt-bindings/usb/ |
| H A D | pd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 64 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */ 89 * Based on "Table 6-14 Fixed Supply PDO - Sink" of "USB Power Delivery Specification Revision 3.0, 99 * -------------------- 107 * <15:0> :: USB-IF assigned VID for this cable vendor 110 /* PD Rev2.0 definition */ 139 * ------------- 140 * <31:0> : USB-IF assigned XID for this cable 146 * ----------- 153 * UFP VDO (PD Revision 3.0+ only) [all …]
|
| /freebsd/sys/i386/i386/ |
| H A D | bios.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 94 for (cv = (u_int8_t *)sdh, ck = 0, i = 0; i < (sdh->len * 16); i++) { in bios32_init() 98 if ((ck == 0) && (BIOS_START <= sdh->entry ) && in bios32_init() 99 (sdh->entry < (BIOS_START + BIOS_SIZE))) { in bios32_init() 100 bios32_SDCI = BIOS_PADDRTOVADDR(sdh->entry); in bios32_init() 104 sdh->entry, bios32_SDCI, sdh->revision, sdh->len); in bios32_init() 130 for (cv = (u_int8_t *)pt, ck = 0, i = 0; i < pt->len; i++) { in bios32_init() 139 pt->pmentrybase, pt->pmentryoffset, pt->version >> 4, pt->version & 0xf); in bios32_init() 140 if ((pt->control & 0x3) == 0x01) in bios32_init() [all …]
|
| /freebsd/stand/efi/loader/ |
| H A D | main.c | 1 /*- 2 * Copyright (c) 2008-2010 Rui Paulo 6 * Copyright (c) 2016-2019 Netflix, Inc. written by M. Warner Losh 106 * in the event no currdev is found. -2 means always break, -1 means 138 status = BS->LocateHandle(ByProtocol, &inputid, 0, &sz, 0); in has_keyboard() 141 status = BS->LocateHandle(ByProtocol, &inputid, 0, &sz, in has_keyboard() 175 if ((EISA_ID_TO_NUM(acpi->HID) & 0xff00) == 0x300 && in has_keyboard() 176 (acpi->HID & 0xffff) == PNP_EISA_ID_CONST) { in has_keyboard() 190 if (usb->DeviceClass == 3 && /* HID */ in has_keyboard() 191 usb->DeviceSubClass == 1 && /* Boot devices */ in has_keyboard() [all …]
|
| /freebsd/sys/dev/mii/ |
| H A D | mii.h | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 107 #define IDR2_REV 0x000f /* vendor revision */ 128 #define ANAR_X_FD 0x0020 /* local device supports 1000BASE-X FD */ 129 #define ANAR_X_HD 0x0040 /* local device supports 1000BASE-X HD */ 153 #define ANLPAR_X_FD 0x0020 /* local device supports 1000BASE-X FD */ 154 #define ANLPAR_X_HD 0x0040 /* local device supports 1000BASE-X HD */ 164 #define ANER_LPNP 0x0008 /* link parter next page-able */ 165 #define ANER_NP 0x0004 /* next page-able */ 167 #define ANER_LPAN 0x0001 /* link parter autoneg-able */ [all …]
|
| /freebsd/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | iw_cxgbe.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2009-2013, 2016 Chelsio, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 42 #include <linux/dma-mapping.h> 85 #define PBL_OFF(rdev_p, a) ((a) - (rdev_ 133 struct c4iw_stat pd; global() member 462 u32 pd; global() member 697 u8 revision; global() member [all...] |
| /freebsd/sys/dev/qlnx/qlnxe/ |
| H A D | ecore_rdma.c | 2 * Copyright (c) 2018-2019 Cavium, Inc. 64 bmap->max_count = max_count; in ecore_rdma_bmap_alloc() 67 bmap->bitmap = OSAL_NULL; in ecore_rdma_bmap_alloc() 74 bmap->bitmap = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size_in_bytes); in ecore_rdma_bmap_alloc() 75 if (!bmap->bitmap) in ecore_rdma_bmap_alloc() 83 OSAL_SNPRINTF(bmap->name, QEDR_MAX_BMAP_NAME, "%s", name); in ecore_rdma_bmap_alloc() 93 *id_num = OSAL_FIND_FIRST_ZERO_BIT(bmap->bitmap, bmap->max_count); in ecore_rdma_bmap_alloc_id() 94 if (*id_num >= bmap->max_count) in ecore_rdma_bmap_alloc_id() 97 OSAL_SET_BIT(*id_num, bmap->bitmap); in ecore_rdma_bmap_alloc_id() 100 bmap->name, *id_num); in ecore_rdma_bmap_alloc_id() [all …]
|
| /freebsd/contrib/tcpdump/ |
| H A D | print-lldp.c | 2 * Copyright (c) 1998-2007 The TCPDUMP project 24 #include "netdissect-stdinc.h" 197 { LLDP_PRIVATE_TIA_SUBTYPE_CAPABILITIES, "LLDP-MED Capabilities" }, 200 { LLDP_PRIVATE_TIA_SUBTYPE_EXTENDED_POWER_MDI, "Extended power-via-MDI" }, 201 { LLDP_PRIVATE_TIA_SUBTYPE_INVENTORY_HARDWARE_REV, "Inventory - hardware revision" }, 202 { LLDP_PRIVATE_TIA_SUBTYPE_INVENTORY_FIRMWARE_REV, "Inventory - firmware revision" }, 203 { LLDP_PRIVATE_TIA_SUBTYPE_INVENTORY_SOFTWARE_REV, "Inventory - software revision" }, 204 { LLDP_PRIVATE_TIA_SUBTYPE_INVENTORY_SERIAL_NUMBER, "Inventory - serial number" }, 205 { LLDP_PRIVATE_TIA_SUBTYPE_INVENTORY_MANUFACTURER_NAME, "Inventory - manufacturer name" }, 206 { LLDP_PRIVATE_TIA_SUBTYPE_INVENTORY_MODEL_NAME, "Inventory - model name" }, [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_main.c | 1 /*- 2 * Copyright (c) 2013-2021, Mellanox Technologies, Ltd. All rights reserved. 32 #include <linux/dma-mapping.h> 55 MODULE_DESCRIPTION("Mellanox Connect-IB HCA IB driver"); 83 int port_type_cap = MLX5_CAP_GEN(dev->mdev, port_type); in mlx5_ib_port_link_layer() 109 write_lock(&ibdev->roce.netdev_lock); in mlx5_netdev_event() 111 if (mlx5_netdev_match(ndev, ibdev->mdev, "mce")) in mlx5_netdev_event() 112 ibdev->roce.netdev = (event == NETDEV_UNREGISTER) ? in mlx5_netdev_event() 114 write_unlock(&ibdev->roce.netdev_lock); in mlx5_netdev_event() 121 if ((upper == ndev || (!upper && ndev == ibdev->roce.netdev)) in mlx5_netdev_event() [all …]
|
| /freebsd/sys/dev/irdma/ |
| H A D | irdma_verbs.c | 1 /*- 2 * SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB 4 * Copyright (c) 2015 - 2023 Intel Corporation 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 38 * irdma_query_device - get device attributes 49 struct irdma_pci_f *rf = iwdev->rf; in irdma_query_device() 50 struct pci_dev *pcidev = iwdev->rf->pcidev; in irdma_query_device() 51 struct irdma_hw_attrs *hw_attrs = &rf->sc_dev.hw_attrs; in irdma_query_device() 53 if (udata->inlen || udata->outlen) in irdma_query_device() [all …]
|
| /freebsd/sys/netpfil/pf/ |
| H A D | if_pfsync.c | 1 /*- 2 * SPDX-License-Identifier: (BSD-2-Clause AND ISC) 30 /*- 49 * Revisions picked from OpenBSD after revision 1.110 import: 50 * 1.119 - don't m_copydata() beyond the len of mbuf in pfsync_input() 51 * 1.118, 1.124, 1.148, 1.149, 1.151, 1.171 - fixes to bulk updates 52 * 1.120, 1.175 - use monotonic time_uptime 53 * 1.122 - reduce number of updates for non-TCP sessions 54 * 1.125, 1.127 - rewrite merge or stale processing 55 * 1.128 - cleanups [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm64/allwinner/ |
| H A D | sun50i-a64-pinephone.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include "sun50i-a64.dtsi" 7 #include "sun50i-a64-cpu-opp.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/pwm/pwm.h> 15 chassis-type = "handset"; 23 compatible = "pwm-backlight"; 25 enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ [all …]
|
| /freebsd/sys/dev/smartpqi/ |
| H A D | smartpqi_cam.c | 1 /*- 2 * Copyright 2016-2023 Microchip Technology, Inc. and/or its subsidiaries. 42 device_t dev = softs->os_specific.pqi_dev; in update_sim_properties() 46 cpi->version_num = 1; in update_sim_properties() 47 cpi->hba_inquiry = PI_SDTR_ABLE|PI_TAG_ABLE|PI_WIDE_16; in update_sim_properties() 48 cpi->target_sprt = 0; in update_sim_properties() 49 cpi->hba_misc = PIM_NOBUSRESET | PIM_UNMAPPED; in update_sim_properties() 50 cpi->hba_eng_cnt = 0; in update_sim_properties() 51 cpi->max_lun = PQI_MAX_MULTILUN; in update_sim_properties() 52 cpi->max_target = MAX_TARGET_DEVICES; in update_sim_properties() [all …]
|
| /freebsd/contrib/llvm-project/clang/tools/clang-scan-deps/ |
| H A D | ClangScanDeps.cpp | 1 //===- ClangScanDeps.cpp - Implementation of clang-scan-deps --------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 55 NAME##_init, std::size(NAME##_init) - 1); 77 static std::string OutputFileName = "-"; 113 Tbl.printHelp(llvm::outs(), "clang-scan-deps [options]", "clang-scan-deps"); in ParseArgs() 123 llvm::StringSwitch<std::optional<ScanningMode>>(A->getValue()) in ParseArgs() 124 .Case("preprocess-dependency-directives", in ParseArgs() 130 << ": for the --mode option: Cannot find option named '" in ParseArgs() 131 << A->getValue() << "'\n"; in ParseArgs() [all …]
|
| /freebsd/usr.sbin/cxgbetool/ |
| H A D | cxgbetool.c | 1 /*- 88 unsigned char islog2; /* Field contains the base-2 log of the value */ 118 "\tloadboot-cfg <bc.bin> install boot config\n" in usage() 119 "\tloadboot-cfg clear remove boot config\n" in usage() 120 "\tloadcfg <fw-config.txt> install configuration file\n" in usage() 122 "\tloadfw <fw-image.bin> install firmware\n" in usage() 130 "\tsched-class params <param> <val> .. configure TX scheduler class\n" in usage() 131 "\tsched-queue <port> <queue> <class> bind NIC queues to TX Scheduling class\n" in usage() 265 return (val >> shift) & ((1 << len) - 1); in xtract() 273 for ( ; reg_array->nam in dump_block_regs() 484 int vers, revision, rc; dump_regs() local 3260 parse_offload_policy_line(size_t lno,char * line,size_t llen,pcap_t * pd,struct offload_rule * r) parse_offload_policy_line() argument 3376 pcap_t *pd; parse_offload_policy() local [all...] |
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | c64 | 2 #------------------------------------------------------------------------------ 16 # Reference: https://vice-emu.sourceforge.io/vice_17.html#SEC391 18 # http://mark0.net/download/triddefs_xml.7z/defs/c/crt-c64.trid.xml 23 # skip DROID fmt-822-signature-id-1179.crt with missing packet length 25 >>0 use c64-crt 27 0 name c64-crt 29 #!:mime application/octet-stream 30 !:mime application/x-commodore-crt 32 # http://mark0.net/download/triddefs_xml.7z/defs/c/car-ccs64.trid.xml 36 # 32-byte null padded cartridge name like: "BUGS BUNNY" "CART64" "EasyFlash" "FINAL CARTRIDGE" "Mag… [all …]
|
| /freebsd/sys/dev/usb/controller/ |
| H A D | usb_controller.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 139 /*------------------------------------------------------------------------* 143 *------------------------------------------------------------------------*/ 155 if (bus->bus_roothold != NULL) { in usb_root_mount_rel() 156 DPRINTF("Releasing root mount hold %p\n", bus->bus_roothold); in usb_root_mount_rel() 157 root_mount_rel(bus->bus_roothold); in usb_root_mount_rel() 158 bus->bus_roothold = NULL; in usb_root_mount_rel() 163 /*------------------------------------------------------------------------* 165 *------------------------------------------------------------------------*/ [all …]
|
| /freebsd/usr.sbin/mptutil/ |
| H A D | mpt_show.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 16 * 3. Neither the name of the author nor the names of any co-contributors 102 if (man0->Header.PageLength < sizeof(*man0) / 4) { in show_adapter() 109 printf(" Board Name: %.16s\n", man0->BoardName); in show_adapter() 110 printf(" Board Assembly: %.16s\n", man0->BoardAssembly); in show_adapter() 111 printf(" Chip Name: %.16s\n", man0->ChipName); in show_adapter() 112 printf(" Chip Revision: %.16s\n", man0->ChipRevision); in show_adapter() 120 if (ioc2->CapabilitiesFlags & in show_adapter() 125 if (ioc2->CapabilitiesFlags & in show_adapter() [all …]
|
| /freebsd/sys/dev/sfxge/common/ |
| H A D | efx_regs_mcdi.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright 2008-2013 Solarflare Communications Inc. All rights reserved. 32 /* Power-on reset state */ 54 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 57 /* The rest of these are firmware-defined */ 65 /* Values to be written to the per-port status dword in shared 94 * | | \--- Response 95 * | \------- Error 96 * \------------------------------ Resync (always set) [all …]
|
| /freebsd/stand/common/ |
| H A D | gfx_fb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 37 * ALL pixel data is assumed to be 32-bit BGRA (byte order Blue, Green, Red, 43 * 32-bit to/from 32-bit is trivial case. 44 * 32-bit to/from 24-bit is also simple - we just drop the alpha channel. 45 * 32-bit to/from 16-bit is more complicated, because we nee to handle 46 * data loss from 32-bit to 16-bit. While reading/writing from/to video, we 47 * need to apply masks of 16-bit color components. This will preserve 48 * colors for terminal text. For 32-bit truecolor PMG images, we need to 49 * translate 32-bit colors to 15/16 bit colors and this means data loss. [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm64/rockchip/ |
| H A D | rk3588-friendlyelec-cm3588-nas.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 9 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/pinctrl/rockchip.h> 14 #include <dt-bindings/usb/pd.h> 15 #include "rk3588-friendlyelec-cm3588.dtsi" 19 compatible = "friendlyarm,cm3588-nas", "friendlyarm,cm3588", "rockchip,rk3588"; 21 adc_key_recovery: adc-key-recovery { 22 compatible = "adc-keys"; [all …]
|
| /freebsd/usr.sbin/moused/msconvd/ |
| H A D | msconvd.c | 2 ** SPDX-License-Identifier: BSD-4-Clause 129 int revision; /* PnP revision, 100 for 1.00 */ member 340 (CS8 | CREAD | HUPCL ), /* GTCO Digi-Pad */ 374 .level = -1, 378 .mfd = -1, 379 .ufd = -1, 380 .mremsfd = -1, 381 .mremcfd = -1, 430 while ((c = getopt(argc, argv, "DF:I:PRS:cdfhi:l:p:r:st:")) != -1) in main() 478 else if (strcmp(optarg, "medium-high") == 0) in main() [all …]
|
| /freebsd/sys/dev/sound/pci/ |
| H A D | es137x.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause AND BSD-4-Clause 30 /*- 128 #define ES_BLK_ALIGN (~(ES_BLK_MIN - 1)) 148 * 32bit Ensoniq Configuration (es->escfg). 149 * ---------------------------------------- 151 * +-------+--------+------+------+---------+--------+---------+---------+ 153 * +-------+--------+------+------+---------+--------+---------+---------+ 157 * +-------+--------+------+------+---------+--------+---------+---------+ 200 * DAC 1/2 configuration through kernel hint - hint.pcm.<unit>.dac="val" [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2024-2025 Intel Corporation 8 #include "iwl-io.h" 16 #include "iwl-utils.h" 25 #include "fw/dhc-utils.h" 40 return !mld->fw_status.running || mld->fw_status.in_d3; in iwl_mld_dbgfs_fw_cmd_disabled() 42 return !mld->fw_status.running; in iwl_mld_dbgfs_fw_cmd_disabled() 55 iwl_fw_dbg_clear_monitor_buf(&mld->fwrt); in iwl_dbgfs_fw_dbg_clear_write() 64 return -EIO; in iwl_dbgfs_fw_nmi_write() 69 mld->fw_status.do_not_dump_once = true; in iwl_dbgfs_fw_nmi_write() [all …]
|