Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102237
b: refs/heads/master
c: e7891c7
h: refs/heads/master
i:
  102235: 133b6dd
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Jun 10, 2008
1 parent 85943f5 commit 8494d25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25e18499e08cb097cbbfeab5de25d094d5312ee5
refs/heads/master: e7891c733f9b26c851edde50cf886a30bd133dbd
9 changes: 8 additions & 1 deletion trunk/arch/x86/pci/early.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ 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);
outb(val, 0xcfc + (offset&3));
}

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

int early_pci_allowed(void)
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/pci-direct.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ 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 void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val);

extern int early_pci_allowed(void);

Expand Down

0 comments on commit 8494d25

Please sign in to comment.