pci_write(D3hpci)
pci_write --
write data to PCI configuration space
Synopsis
#include <sys/types.h>
#include <sys/hpci.h>
#include <sys/hpci_bios.h>
#include <sys/ddi.h>
int pci_write_byte(rm_key_t hpci, uchar_t bus, uchar_t devfun,
ushort_t offset, uchar_t buf);
int pci_write_word(rm_key_t hpci, uchar_t bus, uchar_t devfun,
ushort_t offset, ushort_t buf);
int pci_write_dword(rm_key_t hpci, uchar_t bus, uchar_t devfun,
ushort_t offset, uint_t buf);
Description
The
pci_write( )
functions
write a byte, word, or double word
to PCI configuration space
for the device on the specified bus
with the device/function number
as specified in the PCI BIOS specification.
Arguments
hpci-
resource manager
key for this instance
of the hot plug controller.
bus-
PCI bus to be queried.
devfun-
device/function number as defined in
the PCI BIOS specification.
This is defined as:
(device << 3) | (function)
offset-
offset in config space into which to write;
should be less than 256.
buf-
data to be written.
Return values
This function returns values
as per corresponding 2.1 PCI BIOS calls.
Usage
Context and synchronization
Blockable
context
Hardware applicability
All
Version applicability
hpci:
1
References
pci(D5)
``Hotplug devices'' in HDK Technical Reference
``PCI'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005