mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-04 22:36:10 +00:00
Convert to new pci_device_cfg_write_u* interface.
This commit is contained in:
parent
a87af8218f
commit
d8bd0c41de
3 changed files with 21 additions and 21 deletions
|
|
@ -494,7 +494,7 @@ pciCfg1out(CARD16 addr, CARD32 val)
|
|||
return 1;
|
||||
}
|
||||
if (addr == 0xCFC) {
|
||||
pci_device_cfg_write_u32(Int10Current->dev, & val, OFFSET(PciCfg1Addr));
|
||||
pci_device_cfg_write_u32(Int10Current->dev, val, OFFSET(PciCfg1Addr));
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -533,7 +533,7 @@ pciCfg1outw(CARD16 addr, CARD16 val)
|
|||
if ((addr >= 0xCFC) && (addr <= 0xCFF)) {
|
||||
const unsigned offset = addr - 0xCFC;
|
||||
|
||||
pci_device_cfg_write_u16(Int10Current->dev, & val, OFFSET(PciCfg1Addr) + offset);
|
||||
pci_device_cfg_write_u16(Int10Current->dev, val, OFFSET(PciCfg1Addr) + offset);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
@ -572,7 +572,7 @@ pciCfg1outb(CARD16 addr, CARD8 val)
|
|||
if ((addr >= 0xCFC) && (addr <= 0xCFF)) {
|
||||
const unsigned offset = addr - 0xCFC;
|
||||
|
||||
pci_device_cfg_write_u8(Int10Current->dev, & val, OFFSET(PciCfg1Addr) + offset);
|
||||
pci_device_cfg_write_u8(Int10Current->dev, val, OFFSET(PciCfg1Addr) + offset);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -769,7 +769,7 @@ int1A_handler(xf86Int10InfoPtr pInt)
|
|||
return 1;
|
||||
case 0xb10b:
|
||||
if ((dev = findPci(pInt, X86_EBX)) != NULL) {
|
||||
pci_device_cfg_write_u8(dev, & X86_CL, X86_EDI);
|
||||
pci_device_cfg_write_u8(dev, X86_CL, X86_EDI);
|
||||
X86_EAX = X86_AL | (SUCCESSFUL << 8);
|
||||
X86_EFLAGS &= ~((unsigned long)0x01); /* clear carry flag */
|
||||
} else {
|
||||
|
|
@ -782,7 +782,7 @@ int1A_handler(xf86Int10InfoPtr pInt)
|
|||
return 1;
|
||||
case 0xb10c:
|
||||
if ((dev = findPci(pInt, X86_EBX)) != NULL) {
|
||||
pci_device_cfg_write_u16(dev, & X86_CX, X86_EDI);
|
||||
pci_device_cfg_write_u16(dev, X86_CX, X86_EDI);
|
||||
X86_EAX = X86_AL | (SUCCESSFUL << 8);
|
||||
X86_EFLAGS &= ~((unsigned long)0x01); /* clear carry flag */
|
||||
} else {
|
||||
|
|
@ -795,7 +795,7 @@ int1A_handler(xf86Int10InfoPtr pInt)
|
|||
return 1;
|
||||
case 0xb10d:
|
||||
if ((dev = findPci(pInt, X86_EBX)) != NULL) {
|
||||
pci_device_cfg_write_u32(dev, & X86_ECX, X86_EDI);
|
||||
pci_device_cfg_write_u32(dev, X86_ECX, X86_EDI);
|
||||
X86_EAX = X86_AL | (SUCCESSFUL << 8);
|
||||
X86_EFLAGS &= ~((unsigned long)0x01); /* clear carry flag */
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue