1 #include <linux/kernel.h>
13 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
21 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
22 v =
inb(0xcfc + (offset&3));
29 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
30 v =
inw(0xcfc + (offset&2));
37 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
43 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
44 outb(val, 0xcfc + (offset&3));
49 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8);
50 outw(val, 0xcfc + (offset&2));
68 for (i = 0; i < 256; i += 4) {
73 for (j = 0; j < 4; j++) {
74 printk(
" %02x", val & 0xff);
88 for (bus = 0; bus < 256; bus++) {
89 for (slot = 0; slot < 32; slot++) {
90 for (func = 0; func < 8; func++) {
96 if (
class == 0xffffffff)