public final class PciCard extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PciCard.Error
Represents errors that occur when searching for a card or discovering
the resources assigned to it.
|
static class |
PciCard.Resource
Represents a bus resource allocated to a card.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<PciCard> |
fromGeographicAddress(String geo)
Reads the "irq" and "resource" files from a directory under /sys/bus/pci/devices.
|
static Optional<PciCard> |
fromVendorId(int vid)
Searches the directories under PCI_DEVICES for any one which has a "vendor" file containing
the desired vendor ID, then calls fromGeographic().
|
int |
getIrq()
Gets the IRQ assigned to the card.
|
List<PciCard.Resource> |
getResources() |
static void |
main(String[] arg)
Prints the information about two PCI/PCIe/mPCIe devices.
|
String |
toString() |
public List<PciCard.Resource> getResources()
public int getIrq()
public static Optional<PciCard> fromGeographicAddress(String geo)
geo - A geographic address that must exactly match the name of a device directory.public static Optional<PciCard> fromVendorId(int vid)
public static void main(String[] arg)
arg - The first element is the geographic address string of the first device.
The second element is a vendor ID number.Copyright © 2016 LSST. All rights reserved.