Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43096
b: refs/heads/master
c: 274e1bb
h: refs/heads/master
v: v3
  • Loading branch information
Siddha, Suresh B authored and Andi Kleen committed Dec 7, 2006
1 parent 8a5e315 commit 9e3a8a3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79929fd1c1887d2a057cbb80d487a2e2f1c01a02
refs/heads/master: 274e1bbdeeaf16e71418f11f5f305ab26061f2c2
7 changes: 7 additions & 0 deletions trunk/arch/i386/pci/early.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset,
outl(val, 0xcfc);
}

void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val)
{
PDprintk("%x writing to %x: %x\n", slot, offset, val);
outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
outb(val, 0xcfc);
}

int early_pci_allowed(void)
{
return (pci_probe & (PCI_PROBE_CONF1|PCI_PROBE_NOEARLY)) ==
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86_64/pci-direct.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ extern u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset);
extern u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset);
extern u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset);
extern void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, u32 val);
extern void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val);

extern int early_pci_allowed(void);

Expand Down

0 comments on commit 9e3a8a3

Please sign in to comment.