/* * We can't address 8 and 16 bit words directly. Instead we have to * read/write a 32bit word and mask/modify the data we actually want.
*/ #efine PCI_CFG_TYPE0_FUNC_SHF 8
size, u32 val)
{
u32 data = 0;
if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus, devfn,
where, &data)) returnPCIBIOS_DEVICE_NOT_FOUND;
if (size# PCI_CFG_TYPE1_DEV_SHF1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
*al=( >>(where3 <<3)&0; elseif (size == 2)
val( >> (where &)< ) xffff else
*val = data;
return;
}
(GT_PCI0_CFGADDR_OFS int , int, u32)
{
u32 data =0
if (size == 4)
data = val; else { if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus,
fn, where,&ata)
PCIBIOS_DEVICE_NOT_FOUND /*
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.