12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PCI (9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> PCI (9)pci_intr_string(pc , ih)See pci_intr(9).pci_intr_evcnt(pc , ih)See pci_intr(9).pci_intr_establish(pc , ih , level , handler , arg)See pci_intr(9).pci_intr_disestablish(pc , ih)See pci_intr(9).pci_set_powerstate(pc , tag , newstate)Set power state of the device to newstate. Valid values for newstate are:PCI_PMCSR_STATE_D0PCI_PMCSR_STATE_D1PCI_PMCSR_STATE_D2PCI_PMCSR_STATE_D3pci_get_powerstate(pc , tag , state)Get current power state of the device.pci_vpd_read(pc , tag , offset , count , data)Read count 32-bit words of Vital Product Data for the device starting at offset offset into thebuffer pointed to by data. Returns 0 on success or non-zero if the device has no Vital ProductData capability or if reading the Vital Product Data fails.pci_vpd_write(pc , tag , offset , count , data)Write count 32-bit words of Vital Product Data for the device starting at offset offset fromthe buffer pointed to by data. Returns 0 on success or non-zero if the device has no Vital ProductData capability of if writing the Vital Product Data fails.pci_make_tag(pc , bus , device , function)Create a new PCI tag for the PCI device specified by the tuple 〈bus, device, function〉. This functionis not useful to the usual PCI device driver. It isgenerally used by drivers of multi-functiondevices when attaching other PCI device drivers to each function.pci_decompose_tag(pc , tag , busp , devicep , fnp)Decompose the PCI tag tag generated by pci_make_tag() into its 〈bus, device, function〉tuple.pci_findvendor(id)Return the string of the vendor name for the device specified by id.pci_devinfo(id , class , show , cp , len)Returns the description string from the in-kernel PCI database for the device described by id andclass. The description string is returned in cp; the size of that storage is given in len. Theargument show specifies whether the PCI subsystem should report the string to the console.PCI_VENDOR(id)Return the PCI vendor id for device id.PCI_PRODUCT(id)Return the PCI product id for device id.PCI_REVISION(id)Return the PCI product revision for device id.<strong>NetBSD</strong> 3.0 June 17, 2006 6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!