pci_bus_write_config_word

Name

pci_bus_write_config_word --  write a word to a pci device

Synopsis

int pci_bus_write_config_word (struct pci_bus * bus, unsigned int devfn, int where, u16 value);

Arguments

bus

pointer to the parent bus of the pci device to read from

devfn

the device / function of the pci device to read from

where

the location on the pci address space to write to

value

the value to write to the pci device

Description

Like pci_write_config_word but works for pci devices that do not have a pci_dev structure set up yet. Returns 0 on success.