blob: 4ce77d3f6da03f353ad6c5442d3b709fb45686a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
static unsigned pci_locate_device(unsigned addr)
{
addr &= ~0xff;
for(; addr <= 0x00ffff00; addr += 0x00000100) {
__builtin_outl(addr, 0x12);
}
return addr;
}
static void main(void)
{
unsigned long addr;
addr = pci_locate_device(0);
__builtin_outl(addr, 0x12);
}
|