/illumos-gate/usr/src/cmd/acpi/common/ |
H A D | ahpredef.c | 3 * Module Name: ahpredef - Table of all known ACPI predefined names 11 * Some or all of this work - Copyright (c) 1999 - 2018, Intel Corp. 28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 104 * re-exports any such software from a foreign destination, Licensee shall 105 * ensure that the distribution and export/re-export of the software is in 108 * any of its subsidiaries will export/re-export any technical data, process, 130 * 3. Neither the names of the above-listed copyright holders nor the names 175 … AH_PREDEF ("_ADR", "Address", "Returns address of a device on parent bus, and resource field"), 183 AH_PREDEF ("_ALx", "Active List", "Returns a list of active cooling device objects"), 187 AH_PREDEF ("_ATT", "Type-Specific Attribute", "Resource Descriptor field"), [all …]
|
/illumos-gate/usr/src/common/acpica/events/ |
H A D | evxfgpe.c | 3 * Module Name: evxfgpe - External Interfaces for General Purpose Events (GPEs) 11 * Some or all of this work - Copyright (c) 1999 - 2018, Intel Corp. 28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 104 * re-exports any such software from a foreign destination, Licensee shall 105 * ensure that the distribution and export/re-export of the software is in 108 * any of its subsidiaries will export/re-export any technical data, process, 130 * 3. Neither the names of the above-listed copyright holders nor the names 174 * device _PRW methods (this indicates that these GPEs are 175 * generally intended for system or device wakeup. Such GPEs 181 * Device has been added or if any new GPE methods have been added via a [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | isapnp.c | 31 * Machine-independant ISA PnP enumerator implementing a subset of the 89 * Get the device's serial number. Returns 1 if the serial is valid. 122 * Fills the buffer with resource info from the device. 123 * Returns nonzero if the device fails to report 139 printf("PnP device failed to report resource data\n"); in isapnp_get_resource_info() 153 * We scan the resource data for compatible device IDs and 168 while ((limit-- > 0) && !isapnp_get_resource_info(&tag, 1)) { in isapnp_scan_resdata() 173 /* Got a compatible device id resource */ in isapnp_scan_resdata() 207 if (pi->pi_desc == NULL) { in isapnp_scan_resdata() 208 pi->pi_desc = (char *)str; in isapnp_scan_resdata() [all …]
|
H A D | isapnp.h | 16 * 4. Neither the name of the author nor the names of any co-contributors 71 registers to their power-up values. 85 This register is write-only. The values are not sticky, that is, 90 #define WAKE 0x03 macro 96 pointer to the byte-serial device is reset. This register is 117 so that each card may be individually selected during a Wake[CSN] 123 Selects the current logical device. All reads and writes of memory, 125 of the logical device written here. In addition, the I/O Range 127 device. This register is read/write. If a card has only 1 logical 128 device, this location should be a read-only value of 0x00. [all …]
|
/illumos-gate/usr/src/uts/intel/io/acpica/ |
H A D | acpica.c | 115 * Non-zero enables lax behavior with respect to some 123 * For non-DEBUG builds, set the ACPI CA debug level to 0 125 * Field-patchable for diagnostic use. 181 * acpica module is never unloaded at run-time; there's always in _fini() 188 * Install acpica-provided (default) address-space handlers 256 "efi-systab")) in acpica_check_bios_date() 272 bios_year = ((int)(*(datep + 6) - '0') * 10) + (*(datep + 7) - '0'); in acpica_check_bios_date() 274 bios_month = ((int)(*datep - '0') * 10) + (*(datep + 1) - '0'); in acpica_check_bios_date() 276 bios_day = ((int)(*(datep + 3) - '0') * 10) + (*(datep + 4) - '0'); in acpica_check_bios_date() 282 /* non-digit chars in BIOS date */ in acpica_check_bios_date() [all …]
|
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/ |
H A D | lm.h | 2 * Copyright 2014-2017 Cavium, Inc. 9 * at http://opensource.org/licenses/CDDL-1.0 43 /* Main device structure. */ 76 * Network wake-up frame. 84 /* Wake-up frame pattern. */ 215 * only initializes all the device configurations; however states machines 245 * chip to its initial power-on state. */ 394 * This routine is called to add a wake-up pattern to the main list that 395 * contains all the wake-up frame. */ 405 * This routine is called to remove the wake-up pattern from the main list [all …]
|
/illumos-gate/usr/src/cmd/vntsd/ |
H A D | vntsd.c | 31 * -i <device instance> 32 * VCC device instance to use, e.g. virtual-console-concentrator@0. 34 * -p <ip address> 36 * -d 38 * -t timeout for inactivity 0 = indefinite 39 * -A enable Authorization checking. Mutually exclusive with -p. 64 #if !defined(TEXT_DOMAIN) /* Should be defined by cc -D */ 76 #define VNTSD_INVALID_LISTEN_ADDR ((in_addr_t)-1) 92 if (thr_self() != vntsdp->tid) { in exit_sig_handler() 94 (void) thr_kill(vntsdp->tid, sig); in exit_sig_handler() [all …]
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | todds1287.h | 23 * Copyright (c) 1999-2001 by Sun Microsystems, Inc. 55 * Minor number is instance << 8 + clone minor from range 1-255; clone 0 is 58 #define DS1287_MINOR_TO_CLONE(minor) ((minor) & (DS1287_MAX_CLONE - 1)) 61 dev_info_t *dip; /* device info pointer */ 86 #define RTC_DOW 0x6 /* Day-of-Week */ 87 #define RTC_DOM 0x7 /* Day-of-Month */ 109 #define RTC_UIE 0x10 /* Update-ended Interrupt Enable */ 140 #define APC_WDWR 0x43 /* Wake up Day of Week */ 141 #define APC_WDMR 0x44 /* Wake up Date of Month */ 142 #define APC_WMR 0x45 /* Wake up Month */ [all …]
|
/illumos-gate/usr/src/uts/common/io/udmf/ |
H A D | dm9601reg.h | 27 #define WCR 0x0fU /* wake up control register */ 35 #define USBDA 0xf0U /* usb device address register */ 45 #define NCR_WAKEEN 0x40U /* 1: wake up event enable */ 223 #define EPCR_EPOS 0x08U /* select device, 0:eeprom, 1:phy */ 243 /* EEPROM & PHY data register (0x0d(low)-0x0e(hi)) */ 245 /* wake up control register (0x0f) */ 262 /* physical address register (0x10-0x15) */ 263 /* multicast address register (0x16-0x1c) */ 294 /* vendor id register (0x28-0x29) */ 295 /* product id register (0x2a-0x2b) */ [all …]
|
/illumos-gate/usr/src/contrib/bhyve/dev/usb/controller/ |
H A D | xhcireg.h | 3 /*- 61 #define XHCI_HCS0_AC64(x) ((x) & 0x1) /* 64-bit capable */ 86 #define XHCI_STS_HCH 0x00000001 /* RO - Host Controller Halted */ 87 #define XHCI_STS_HSE 0x00000004 /* RW - Host System Error */ 88 #define XHCI_STS_EINT 0x00000008 /* RW - Event Interrupt */ 89 #define XHCI_STS_PCD 0x00000010 /* RW - Port Change Detect */ 90 #define XHCI_STS_SSS 0x00000100 /* RO - Save State Status */ 91 #define XHCI_STS_RSS 0x00000200 /* RO - Restore State Status */ 92 #define XHCI_STS_SRE 0x00000400 /* RW - Save/Restore Error */ 93 #define XHCI_STS_CNR 0x00000800 /* RO - Controller Not Ready */ [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | tty_pts.c | 14 * PTY - Stream "pseudo-tty" device. 54 extern int npty; /* number of pseudo-ttys configured in */ 68 * Subsidiary side. This is a streams device. 125 static dev_info_t *ptsl_dip; /* for dev-to-dip conversions */ 189 return (-1); in ptsl_attach() 245 mutex_enter(&pty->ptc_lock); in ptslopen() 247 * Block waiting for controller to open, unless this is a no-delay in ptslopen() 251 if (pty->pt_ttycommon.t_writeq == NULL) { in ptslopen() 252 pty->pt_ttycommon.t_iflag = 0; in ptslopen() 253 pty->pt_ttycommon.t_cflag = (B38400 << IBSHIFT)|B38400|IFLAGS; in ptslopen() [all …]
|
/illumos-gate/usr/src/man/man4d/ |
H A D | hid.4d | 8 hid \- Human interface device (HID) class driver 11 \fBkeyboard@unit-address\fR 12 \fBmouse@unit-address\fR 13 \fBinput@unit-address:consumer_control\fR 20 driver that supports the \fIHuman Interface Device Class (HID) 1.0\fR 21 specification. The Human Interface Device (HID) class encompasses devices 24 front-panel controls such as knobs, switches, and buttons. A USB device with 30 the device and generic HID functionality. For example, HID interfaces are 31 required to have an interrupt pipe for the device to send data packets, and the 33 The \fBhid\fR driver is also responsible for managing the device through the [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | epm.h | 59 #define PM_LEVEL_UPONLY (-2) /* only raise power level */ 60 #define PM_LEVEL_DOWNONLY (-3) /* only lower power level */ 61 #define PM_LEVEL_EXACT (-4) /* wants exact power level */ 70 #define PMC_BC 0x00010 /* no pm-components, backwards compat */ 71 #define PMC_COMPONENTS_DONE 0x00020 /* parsed pm-components */ 72 #define PMC_COMPONENTS_FAILED 0x00040 /* failed parsing pm-components */ 73 #define PMC_SUSPENDED 0x00080 /* device has been suspended */ 78 #define PMC_NOPMKID 0x01000 /* non-pm'd child of pm'd parent */ 92 #define PMC_CPU_DEVICE 0x80000 /* device is a power manageable CPU */ 127 * dev_info struct (if initialized by driver and/or auto-pm) [all …]
|
H A D | poll_impl.h | 43 * device has a polled event pending. Only fds with their bit set will be 48 * chained onto a device's pollhead, and these are kept in a hash table (7) 53 * +-----------+ +-------------+ 54 * | kthread_t |--->| pollstate_t |-->+-------------+ (6) 55 * +-----------+ +-------------+(5)| pcacheset_t |->[_][_][_][_] pollfd_t 56 * | +-------------+ 57 * | | pcacheset_t |->[_][_][_][_] pollfd_t 58 * (1a) | +-------------+ 59 * +---------------+ | 61 * +-v-------------+ | [all …]
|
/illumos-gate/usr/src/man/man9f/ |
H A D | biodone.9f | 9 biodone \- release buffer after buffer I/O transfer and notify blocked threads 58 Generally, the first validation test performed by any block device 59 \fBstrategy\fR(9E) routine is a check for an end-of-file (\fBEOF\fR) condition. 61 condition when the device is accessed directly. If a \fBread\fR(2) request is 62 made for one block beyond the limits of the device (line 10), it will report an 64 device, the routine will report an error condition. In either case, report the 76 8 daddr_t blkno = bp->b_blkno; /* get block number */ 84 16 if ((blkno == RAMDNBLK) && (bp->b_flags & B_READ)) { 89 21 bp->b_resid = bp->b_bcount; /* compute return value */ 92 24 bp->b_error = ENXIO; /* limits of RAM disk */ [all …]
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/include/ |
H A D | lm.h | 77 /* Main device structure. */ 91 /* structure for represnting an array of slow-path cqes */ 104 * Network wake-up frame. 112 /* Wake-up frame pattern. */ 117 …u8_t mask [LM_NWUF_PATTERN_MASK_SIZE]; // 16 bytes --> (128 bits - each bit represents patter… 118 u8_t pattern [LM_NWUF_PATTERN_SIZE]; // 128 bytes --> (1024 bits) 202 …s its own parameters |-------------------------------------------------------------------------… 204 …/* | ---------------------------------|----------------|----------------------------------|-------… 212 …/* |----------------------------------------------------------------------------------------------… 295 * @param pdev Device instance [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mp_machdep.c | 26 * Copyright (c) 2009-2010, Intel Corporation. 71 #define OFFSETOF(s, m) (size_t)(&(((s *)0)->m)) 203 * If non-zero, idle cpus will become "halted" when there's 210 * If non-zero, idle cpus will use mwait if available to halt instead of hlt. 219 * If non-zero, idle cpus will not use power saving Deep C-States idle loop. 223 * Non-power saving idle loop and wakeup pointers. 246 * Hyper-threading is SMT in pg_plat_hw_shared() 274 if (cpupm_domain_id(cp, CPUPM_DTYPE_ACTIVE) != (id_t)-1) in pg_plat_hw_shared() 279 if (cpupm_domain_id(cp, CPUPM_DTYPE_IDLE) != (id_t)-1) in pg_plat_hw_shared() 290 * If pghw_type_t is an unsupported hardware type, then return -1 [all …]
|
/illumos-gate/usr/src/uts/common/io/nvme/ |
H A D | nvme_lock.c | 37 return (lock->nl_writer != NULL || in nvme_rwlock_wr_or_pend() 38 list_is_empty(&lock->nl_pend_writers) == 0); in nvme_rwlock_wr_or_pend() 48 return (nvme_rwlock_wr_or_pend(&nvme->n_lock) || in nvme_rwlock_block_ns_rdlock() 49 nvme_rwlock_wr_or_pend(&ns->ns_lock)); in nvme_rwlock_block_ns_rdlock() 65 return (nvme_rwlock_wr_or_pend(&nvme->n_lock) || in nvme_rwlock_block_ns_wrlock() 66 nvme_rwlock_wr_or_pend(&ns->ns_lock) || in nvme_rwlock_block_ns_wrlock() 67 list_is_empty(&ns->ns_lock.nl_readers) == 0); in nvme_rwlock_block_ns_wrlock() 78 return (nvme_rwlock_wr_or_pend(&nvme->n_lock)); in nvme_rwlock_block_ctrl_rdlock() 97 if (nvme_rwlock_wr_or_pend(&nvme->n_lock) || in nvme_rwlock_block_ctrl_wrlock() 98 list_is_empty(&nvme->n_lock.nl_readers) == 0) { in nvme_rwlock_block_ctrl_wrlock() [all …]
|
/illumos-gate/usr/src/boot/include/net/ |
H A D | if.h | 1 /*- 52 * Note: this is the same size as a generic device's external name. 78 uint8_t ifi_physical; /* e.g., AUI, Thinnet, 10base-T, etc */ 118 /*- 121 * flags field, but with the advent of fine-grained locking, they have been 123 * the stack-owned fields, and the device driver the device-owned fields. 133 * (i) if_flags field set by device driver before attach, read-only there 137 * (d) if_drv_flags field written only by the device driver, read by either 144 #define IFF_POINTOPOINT 0x10 /* (i) is a point-to-point link */ 158 #define IFF_PPROMISC 0x20000 /* (n) user-requested promisc mode */ [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | priplugin.c | 61 propinfo->version = PICLD_PLUGIN_VERSION_1; in set_prop_info() 62 propinfo->read = NULL; in set_prop_info() 63 propinfo->write = NULL; in set_prop_info() 64 propinfo->piclinfo.type = type; in set_prop_info() 65 propinfo->piclinfo.accessmode = PICL_READ; in set_prop_info() 66 propinfo->piclinfo.size = size; in set_prop_info() 67 (void) strlcpy(propinfo->piclinfo.name, name, in set_prop_info() 68 sizeof (propinfo->piclinfo.name)); in set_prop_info() 147 "threads created - registering event handlers\n"); in priplugin_init() 149 * register event_handler for both "sysevent-device-added", in priplugin_init() [all …]
|
/illumos-gate/usr/src/uts/common/io/igc/core/ |
H A D | igc_defines.h | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 15 /* Wake Up Control */ 22 /* Wake Up Filter Control */ 31 /* Wake Up Status */ 38 /* Packet types that are enabled for wake packet delivery */ 46 /* Wake Up Packet Length */ 49 /* Wake Up Packet Memory stores the first 128 bytes of the wake up packet */ 57 /* Extended Device Control */ 72 #define IGC_CTRL_EXT_IAME 0x08000000 /* Int ACK Auto-mask */ [all …]
|
H A D | igc_regs.h | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 11 #define IGC_CTRL 0x00000 /* Device Control - RW */ 12 #define IGC_STATUS 0x00008 /* Device Status - RO */ 13 #define IGC_EECD 0x00010 /* EEPROM/Flash Control - RW */ 15 #define IGC_EERD 0x12014 /* EEprom mode read - RW */ 16 #define IGC_EEWR 0x12018 /* EEprom mode write - RW */ 17 #define IGC_CTRL_EXT 0x00018 /* Extended Device Control - RW */ 18 #define IGC_MDIC 0x00020 /* MDI Control - RW */ 19 #define IGC_MDICNFG 0x00E04 /* MDI Config - RW */ [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/usb_ia/ |
H A D | usb_ia.c | 52 uint_t usb_ia_instance_debug = (uint_t)-1; 270 *result = (void *)usb_ia->ia_dip; in usb_ia_info() 297 USB_DPRINTF_L4(DPRINT_MASK_PM, usb_ia->ia_log_handle, in usb_ia_post_attach() 298 "usb_ia_post_attach: ifno = %d result = %d", ifno, as->result); in usb_ia_post_attach() 306 USB_DPRINTF_L4(DPRINT_MASK_PM, usb_ia->ia_log_handle, in usb_ia_post_detach() 307 "usb_ia_post_detach: ifno = %d result = %d", ifno, ds->result); in usb_ia_post_detach() 325 dev_info_t *root_hub_dip = hub_usba_device->usb_root_hub_dip; in usb_ia_bus_ctl() 332 USB_DPRINTF_L4(DPRINT_MASK_PM, usb_ia->ia_log_handle, in usb_ia_bus_ctl() 341 switch (as->when) { in usb_ia_bus_ctl() 344 USB_DPRINTF_L2(DPRINT_MASK_PM, usb_ia->ia_log_handle, in usb_ia_bus_ctl() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunpci.c | 67 cfgaddr = hp->ah_addr + offset; in pci_config_get8() 78 cfgaddr = hp->ah_addr + offset; in pci_config_get16() 89 cfgaddr = hp->ah_addr + offset; in pci_config_get32() 100 cfgaddr = hp->ah_addr + offset; in pci_config_get64() 111 cfgaddr = hp->ah_addr + offset; in pci_config_put8() 122 cfgaddr = hp->ah_addr + offset; in pci_config_put16() 133 cfgaddr = hp->ah_addr + offset; in pci_config_put32() 144 cfgaddr = hp->ah_addr + offset; in pci_config_put64() 158 * devices can have upto 4k config space. In case of PCI Express device, 160 * of all 4k. But some devices don't respond to reads to non-existent [all …]
|
/illumos-gate/usr/src/uts/common/sys/usb/hcd/xhci/ |
H A D | xhcireg.h | 64 * Structural Parameters 1 - xHCI 1.1 / 5.3.3 72 * Structural Parameters 2 - xHCI 1.1 / 5.3.4 82 * Structural Parameters 3 - xHCI 1.1 / 5.3.5 89 * Capability Parameters 1 - xHCI 1.1 / 5.3.6 97 * Capability Parameters 1 - xHCI 1.1 / 5.3.9 122 #define XHCI_STS_HCH 0x00000001 /* RO - HC Halted */ 123 #define XHCI_STS_HSE 0x00000004 /* RW - Host System Error */ 124 #define XHCI_STS_EINT 0x00000008 /* RW - Event Interrupt */ 125 #define XHCI_STS_PCD 0x00000010 /* RW - Port Change Detect */ 126 #define XHCI_STS_SSS 0x00000100 /* RO - Save State Status */ [all …]
|