/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | device.hpp | 39 * @class Device 41 * A hardware device, such as a voltage regulator or I/O expander. 43 class Device class 47 Device() = delete; 48 Device(const Device&) = delete; 49 Device(Device&&) = delete; 50 Device& operator=(const Device&) = delete; 51 Device& operator=(Device&&) = delete; 52 ~Device() = default; 57 * @param id unique device ID [all …]
|
H A D | chassis.cpp | 27 for (std::unique_ptr<Device>& device : devices) in addToIDMap() 29 device->addToIDMap(idMap); in addToIDMap() 35 // Clear any cached data in each device in clearCache() 36 for (std::unique_ptr<Device>& device : devices) in clearCache() 38 device->clearCache(); in clearCache() 44 // Clear error history in each device in clearErrorHistory() 45 for (std::unique_ptr<Device>& device : devices) in clearErrorHistory() 47 device->clearErrorHistory(); in clearErrorHistory() 58 for (std::unique_ptr<Device>& device : devices) in closeDevices() 60 device->close(services); in closeDevices() [all …]
|
/openbmc/qemu/docs/specs/ |
H A D | pci-ids.rst | 5 Red Hat, Inc. donates a part of its device ID range to QEMU, to be used for 8 Contact Gerd Hoffmann <kraxel@redhat.com> to get a device ID assigned 14 The 1000 -> 10ff device ID range is used as follows for virtio-pci devices. 15 Note that this allocation is separate from the virtio device IDs, which are 19 network device (legacy) 21 block device (legacy) 23 balloon device (legacy) 25 console device (legacy) 27 SCSI host bus adapter device (legacy) 29 entropy generator device (legacy) [all …]
|
/openbmc/u-boot/include/dm/ |
H A D | device-internal.h | 19 * device_bind() - Create a device and bind it to a driver 21 * Called to set up a new device attached to a driver. The device will either 22 * have platdata, or a device tree node which can be used to create the 25 * Once bound a device exists but is not yet active until device_probe() is 28 * @parent: Pointer to device's parent, under which this driver will exist 29 * @drv: Device's driver 30 * @name: Name of device (e.g. device tree node name) 31 * @platdata: Pointer to data for this device - the structure is device- 32 * specific but may include the device's I/O address, etc.. This is NULL for 33 * devices which use device tree. [all …]
|
H A D | uclass-internal.h | 30 * This handles returning an error or probing a device as needed. 32 * @dev: Device that needs to be probed 33 * @ret: Error to return. If non-zero then the device is not probed 40 * dev_get_uclass_index() - Get uclass and index of device 41 * @dev: - in - Device that we want the uclass/index of 42 * @ucp: - out - A pointer to the uclass the device belongs to 44 * The device is not prepared for use - this is an internal function. 46 * @return the index of the device in the uclass list or -ENODEV if not found. 54 * #devp: Returns pointer to device, or NULL on error 56 * The device is not prepared for use - this is an internal function. [all …]
|
H A D | uclass-id.h | 22 UCLASS_SPI_EMUL, /* sandbox SPI device emulator */ 23 UCLASS_I2C_EMUL, /* sandbox I2C device emulator */ 24 UCLASS_I2C_EMUL_PARENT, /* parent for I2C device emulators */ 25 UCLASS_PCI_EMUL, /* sandbox PCI device emulator */ 26 UCLASS_USB_EMUL, /* sandbox USB bus device emulator */ 27 UCLASS_AXI_EMUL, /* sandbox AXI bus device emulator */ 34 UCLASS_BLK, /* Block device */ 35 UCLASS_BOARD, /* Device information from hardware */ 43 UCLASS_ETH, /* Ethernet device */ 49 UCLASS_I2C_EEPROM, /* I2C EEPROM device */ [all …]
|
H A D | device.h | 30 /* DM should init this device prior to relocation */ 42 /* Device is bound */ 45 /* Device name is allocated and should be freed on unbind() */ 66 * a selective device removal as specified by the remove-stage and the 88 * This holds information about a device, which is a driver bound to a 91 * A device will come into existence through a 'bind' call, either due to 93 * in the device tree (in which case of_offset is >= 0). In the latter case 94 * we translate the device tree information into platdata in a function 96 * probe method if the device has a device tree node. 102 * @driver: The driver used by this device [all …]
|
H A D | uclass.h | 58 * @post_bind: Called after a new device is bound to this uclass 59 * @pre_unbind: Called before a device is unbound from this uclass 60 * @pre_probe: Called before a new device is probed 61 * @post_probe: Called after a new device is probed 62 * @pre_remove: Called before a device is removed 63 * @child_post_bind: Called after a child is bound to a device in this uclass 71 * @per_device_auto_alloc_size: Each device can hold private data owned 74 * @per_device_platdata_auto_alloc_size: Each device can hold platform data 77 * @per_child_auto_alloc_size: Each child device (of a parent in this 78 * uclass) can hold parent data for the device/uclass. This value is only [all …]
|
/openbmc/qemu/docs/ |
H A D | qdev-device-use.txt | 1 = How to convert to -device & friends = 5 In qdev, each device has a parent bus. Some devices provide one or 6 more buses for children. You can specify a device's parent bus with 7 -device parameter bus. 9 A device typically has a device address on its parent bus. For buses 23 Example: device i440FX-pcihost is on the root bus, and provides a PCI 24 bus named pci.0. To put a FOO device into its slot 4, use -device 30 A QEMU block device (drive) has a host and a guest part. 32 In the general case, the guest device is connected to a controller 33 device. For instance, the IDE controller provides two IDE buses, each [all …]
|
/openbmc/qemu/qapi/ |
H A D | qdev.json | 9 # Device infrastructure (qdev) 16 # @device-list-properties: 18 # List properties associated with a device. 20 # @typename: the type name of a device 30 { 'command': 'device-list-properties', 37 # Add a device. 39 # @driver: the name of the new device's driver 41 # @bus: the device's parent bus (device tree path) 43 # @id: the device's ID, must be unique 47 # @json-cli: If present, the "-device" command line option supports [all …]
|
H A D | vfio.json | 14 # An enumeration of the VFIO device migration states. 16 # @stop: The device is stopped. 18 # @running: The device is running. 20 # @stop-copy: The device is stopped and its internal state is 23 # @resuming: The device is stopped and its internal state is available 26 # @running-p2p: The device is running in the P2P quiescent state. 28 # @pre-copy: The device is running, tracking its internal state and 31 # @pre-copy-p2p: The device is running in the P2P quiescent state, 44 # This event is emitted when a VFIO device migration state is changed. 46 # @device-id: The device's id, if it has one. [all …]
|
/openbmc/u-boot/lib/efi_loader/ |
H A D | efi_device_path_utilities.c | 3 * EFI device path interface 15 * Get size of a device path. 17 * This function implements the GetDevicePathSize service of the device path 18 * utilities protocol. The device path length includes the end of path tag 24 * @device_path device path 40 * Duplicate a device path. 42 * This function implements the DuplicateDevicePath service of the device path 46 * EDK2 logic: In case the device path ends with an end of instance tag, the 52 * @device_path device path 53 * @return copy of the device path [all …]
|
/openbmc/qemu/tests/qtest/fuzz/ |
H A D | generic_fuzz_configs.h | 2 * Generic Virtual-Device Fuzzing Target Configs 27 "-device virtio-9p,fsdev=hshare,mount_tag=hshare " in generic_fuzzer_virtio_9p_args() 36 "-device virtio-net,netdev=net0 -netdev user,id=net0", 40 .args = "-machine q35 -device virtio-blk,drive=disk0 " 45 .args = "-machine q35 -device virtio-scsi,num_queues=8 " 46 "-device scsi-hd,drive=disk0 " 51 .args = "-machine q35 -nodefaults -device virtio-gpu", 55 .args = "-machine q35 -nodefaults -device virtio-vga", 59 .args = "-machine q35 -nodefaults -device virtio-rng", 63 .args = "-machine q35 -nodefaults -device virtio-balloon", [all …]
|
/openbmc/u-boot/include/ |
H A D | blk.h | 63 * device's uclass instead. 66 int devnum; /* device number */ 71 unsigned char type; /* device type */ 72 unsigned char removable; /* removable device */ 74 /* device can use 48bit addr (ATA/ATAPI v7) */ 80 char vendor[BLK_VEN_SIZE + 1]; /* device vendor string */ 81 char product[BLK_PRD_SIZE + 1]; /* device product number */ 92 * device. Once these functions are removed we can drop this field. 119 * @param iftype - IF_TYPE_x for type of device 120 * @param dev - device index of particular type [all …]
|
H A D | misc.h | 10 * misc_read() - Read the device to buffer, optional. 11 * @dev: the device 12 * @offset: offset to read the device 14 * @size: data size in bytes to read the device 21 * misc_write() - Write buffer to the device, optional. 22 * @dev: the device 23 * @offset: offset to write the device 25 * @size: data size in bytes to write the device 32 * misc_ioctl() - Assert command to the device, optional. 33 * @dev: the device [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 186.out | 6 Testing: -device floppy 9 /machine/peripheral-anon/device[1]: [not inserted] 10 Attached to: /machine/peripheral-anon/device[N] 11 Removable device: not locked, tray closed 14 Testing: -device floppy,id=qdev_id 19 Removable device: not locked, tray closed 22 Testing: -device ide-cd 25 /machine/peripheral-anon/device[1]: [not inserted] 26 Attached to: /machine/peripheral-anon/device[N] 27 Removable device: not locked, tray closed [all …]
|
/openbmc/phosphor-power/ |
H A D | device.hpp | 12 * @class Device 14 * This object is an abstract base class for a device that 17 class Device class 20 Device() = delete; 21 virtual ~Device() = default; 22 Device(const Device&) = delete; 23 Device& operator=(const Device&) = delete; 24 Device(Device&&) = default; 25 Device& operator=(Device&&) = default; 30 * @param name - the device name [all …]
|
/openbmc/witherspoon-pfault-analysis/ |
H A D | device.hpp | 12 * @class Device 14 * This object is an abstract base class for a device that 17 class Device class 20 Device() = delete; 21 virtual ~Device() = default; 22 Device(const Device&) = delete; 23 Device& operator=(const Device&) = delete; 24 Device(Device&&) = default; 25 Device& operator=(Device&&) = default; 30 * @param name - the device name [all …]
|
/openbmc/ipmitool/contrib/ |
H A D | oem_ibm_sel_map | 13 …"Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)"… 14 "0xE0","0x00","0x01","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)… 15 "0xE0","0x00","0x02","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)… 16 "0xE0","0x00","0x03","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)… 17 "0xE0","0x00","0x04","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)… 18 "0xE0","0x00","0x05","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)… 19 "0xE0","0x00","0x06","Chassis Number","Slot Number","Bus Number","Device ID (MSB)","Device ID (LSB)… 20 …t Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R"… 21 …lot Number","Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","… 22 …Bus Number","Device ID (MSB)","Device ID (LSB)","Vendor ID (MSB)","Vendor ID (LSB)","R","R","R","0… [all …]
|
/openbmc/qemu/docs/devel/migration/ |
H A D | vfio.rst | 2 VFIO device migration 5 Migration of virtual machine involves saving the state for each device that 14 continue whilst the VFIO device state is transferred to the destination, this 29 the device, but the device can respond to incoming ones. Additionally, all 31 the device enters this state. 39 support P2P migration. Single VFIO device migration is allowed regardless of 42 A detailed description of the UAPI for VFIO device migration can be found in 46 VFIO implements the device hooks for the iterative approach as follows: 50 * A ``load_setup`` function that sets the VFIO device on the destination in 55 device. [all …]
|
/openbmc/openbmc/poky/scripts/contrib/ |
H A D | ddimage | 12 echo "Usage: $(basename $0) IMAGE DEVICE" 35 echo "Device details" 40 diskutil info $DEVICE | egrep "(Device Node|Media Name|Total Size)" 45 ACTUAL_DEVICE=`readlink -f $DEVICE` 47 if [ "$ACTUAL_DEVICE" != "$DEVICE" ] ; then 48 echo " device: $DEVICE -> $ACTUAL_DEVICE" 50 echo " device: $DEVICE" 52 if [ -f "/sys/class/block/$DEV/device/vendor" ]; then 53 echo " vendor: $(cat /sys/class/block/$DEV/device/vendor)" 57 if [ -f "/sys/class/block/$DEV/device/model" ]; then [all …]
|
/openbmc/qemu/docs/system/ |
H A D | virtio-net-failover.rst | 9 virtio-net device. Before migration the vfio device is unplugged and data flows 10 through the virtio-net device, on the target side another vfio-pci device is 14 The two devices are called primary and standby device. The fast hardware based 15 networking device is called the primary device and the virtio-net device is the 16 standby device. 23 devices are allowed as primary device. The user needs to ensure that primary 30 fast networking device by falling back to a virtio-net device for the 34 device via the PCIe based hotplug handler and traffic will go through 35 the virtio-net device. On the target system the primary device will be 37 again as the primary device. [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | device_tests.cpp | 19 #include "device.hpp" 64 * Creates the Chassis and System objects needed for calling some Device 100 Device device{"vdd_reg", true, deviceInvPath, std::move(i2cInterface)}; in TEST_F() local 101 EXPECT_EQ(device.getID(), "vdd_reg"); in TEST_F() 102 EXPECT_EQ(device.isRegulator(), true); in TEST_F() 103 EXPECT_EQ(device.getFRU(), deviceInvPath); in TEST_F() 104 EXPECT_EQ(&(device.getI2CInterface()), i2cInterfacePtr); in TEST_F() 105 EXPECT_EQ(device.getPresenceDetection(), nullptr); in TEST_F() 106 EXPECT_EQ(device.getConfiguration(), nullptr); in TEST_F() 107 EXPECT_EQ(device.getPhaseFaultDetection(), nullptr); in TEST_F() [all …]
|
/openbmc/openbmc/poky/meta/conf/machine/ |
H A D | qemuarm.conf | 20 # For graphics to work we need to define the VGA device as well as the necessary USB devices 21 QB_GRAPHICS = "-device virtio-gpu-pci" 22 QB_OPT_APPEND = "-device qemu-xhci -device usb-tablet -device usb-kbd" 25 QB_NETWORK_DEVICE = "-device virtio-net-device,netdev=net0,mac=@MAC@" 26 # Virtio block device 27 QB_ROOTFS_OPT = "-drive id=disk0,file=@ROOTFS@,if=none,format=raw -device virtio-blk-device,drive=d… 29 QB_SERIAL_OPT = "-device virtio-serial-device -chardev null,id=virtcon -device virtconsole,chardev=… 30 QB_TCPSERIAL_OPT = "-device virtio-serial-device -chardev socket,id=virtcon,port=@PORT@,host=127.0.…
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | Thermal.events.yaml | 7 - name: Device 10 description: The name or identifier of the device 18 A event signaling that a device is operating over a set operating 19 temperature has occurred. The device may continue to operate in a 22 message: Device {Device} is over safe operating temperature. 28 - name: Device 31 description: The name or identifier of the device 39 A event signaling that a device has potentially been powered off 44 Device {Device} is significantly over safe operating temperature 51 - name: Device [all …]
|