Questions tagged [pci]

Questions in this tag are only for questions related to the PCI Local Bus standard which is a computer bus for attaching hardware devices in a computer.

Questions in this tag are only for questions related to the PCI Local Bus standard which is a computer bus for attaching hardware devices in a computer.

483 questions
4
votes
2 answers

PCI Express validation using driver

I'm using Windriver Jungo for testing PCI express device connected to my PC. I can able to read/write memory in 8/16/32/64 bit modes and the board responding very well. But my doubt is that, according to PCI express specification we can send a TLP…
Premjith
  • 1,128
  • 1
  • 11
  • 21
4
votes
3 answers

Should I use a thread to asynchronously access my device connected to the PCI bus?

I have a piece of hardware that is connected to my PC via the PCI bus. I am accessing the hardware through a .NET wrapper around the device driver. I do not have any specifications on how the device is performing PCI-wise. Which brings me to my…
kasperhj
  • 10,052
  • 21
  • 63
  • 106
4
votes
1 answer

How to get the Device ID of PCI devices?

I am trying to get the system device IDs from the device manager, in C#. I found some code to find the USB device ID, but I don't know how to change the code from USB device to PCI device. This is the code that I found: ManagementObjectSearcher mos…
user1600045
  • 41
  • 1
  • 2
3
votes
1 answer

Write to a parallel port on windows 7

I try to find out how to access a parallel port for writing some bits on a Windows7 machine. This parallel port ist located on a PCI-Card, and is automatically installed by Windows7 and can be monitored as LPT2. The adresses assigned to the Port are…
Milla Well
  • 3,193
  • 3
  • 35
  • 50
3
votes
1 answer

macOS DriverKit: Making PCI dext to replace built-in driver

I'm trying to write a user-space PCI driver in DriverKit for educational/research purposes. I've found an example from WorthDoingBadly which has the boilerplate code for a PCI device dext (I've removed the exploit code). I've modified it to match a…
Mads Y
  • 342
  • 1
  • 4
  • 12
3
votes
2 answers

Can the PCI device on the bus listen to other's device data?

What if I have a PCI bus (w/o PCI-PCI bridges) with 3 devices: spy-device, sender PCI device and receiver device (e.g. bridge from PCI to CPU). The sender start transferring data to receiver. The transmitter state of spy-device is Z (disconnected…
osgx
  • 90,338
  • 53
  • 357
  • 513
3
votes
1 answer

PCIDriverKit Entitlement check failed (migrate KEXT to DEXT)

kernel: DK: MyDriver-0x100000f45: provider entitlements check failed kernel: DK: IOUserServer(com.MyDriver-0x100000f45)::exit(Entitlements check failed) kernel: (com.MyDriver.dext) Kernel requested exit (Entitlements check failed) I'm trying to…
jreing
  • 281
  • 1
  • 11
3
votes
1 answer

How does MSI-X triggers interrupt handlers? Is there a need to poll the chosen memory address?

I have a small kernel which is booted with UEFI. I'm using QEMU for virtualization. I want to write a xHCI driver to support USB keyboards in my kernel. I'm having trouble to find concise and clear information. I "found" the xHCI in my kernel. I…
user123
  • 2,510
  • 2
  • 6
  • 20
3
votes
1 answer

How does Linux kernel set PCI BARs so that there is no address conflict?

As far as I understand, (which could very well be wrong,) each PCI device knows how much(size) iomem/ioport address space it wants to claim, but it does not know where(offset). Only the BIOS or OS can tell the device where that place should be,…
QnA
  • 1,035
  • 10
  • 25
3
votes
0 answers

Laptop idle power consumption tuning when using Yubikey Nano

Background About a year ago, I used powertop to optimise my laptop's power consuption (following this and this guide), ending up with this systemd service: [Unit] Description=Powertop tunings for X1 Carbon…
Thore
  • 322
  • 2
  • 10
3
votes
1 answer

How to get Vendor ID and Device ID of all PCI Devices?

I need to get Vendor ID and Device ID of all PCI bus Devices from Linux using C/C++ (inline asm allowed), but I can't even understand from what to start. Please, give me some pieces of advice or code parts.
Andrei Shpakovskiy
  • 138
  • 1
  • 2
  • 7
3
votes
1 answer

What are the most common busmaster operations, and how are they better than regular DMA?

Can someone list the most common operations that use the bus mastering provision of the host bus? I can list a few.. 1) The GPU transfers the overall framebuffer to the video card using bus-mastering over PCI-e (in recent x86). 2) The ethernet card…
user2277550
  • 553
  • 7
  • 22
3
votes
0 answers

Get USB Host Controller parameters in Linux programmatically

I need to get some parameters related to USB Host Controllers in Linux. I made a lot of searches in the internet and the only way that I found is using pciutils lib. Each PCI device is in the structure pci_dev in pci.h: struct pci_dev { struct…
Kallel Omar
  • 1,208
  • 2
  • 17
  • 51
3
votes
1 answer

Read address from MSI Capability Structure

Is it possible to find the location of the MSI Capability Structure associated with a particular interrupt? Specifically, I need to know the PCI address that when written to, triggers that interrupt. MSI interrupts can easily be initialize with the…
Cain Rose
  • 43
  • 7
3
votes
1 answer

Why there are 6 Base Address Registers (BARs) in PCIe endpoint?

After some reading about the PCIe, I came around the PCI compatible configuration headers and after understanding the header there is Base address Register(BAR) field. Where there are total 6 BARs in each PCIe endpoint. Why there are 6 BARs and not…
Rahul Talole
  • 137
  • 1
  • 2
  • 9