D | tng_enc_trace.h | 59 #define CONFIG_CMD(bus,device_fn,where) \ argument 60 (0x80000000|((bus&0xff) << 16)|((device_fn&0xff) << 8)|((where&0xff) & ~3)) 62 static inline unsigned long pci_get_long(int bus,int device_fn, int where) in pci_get_long() argument 64 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pci_get_long() 68 static inline int pci_set_long(int bus,int device_fn, int where,unsigned long value) in pci_set_long() argument 70 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pci_set_long() 75 static inline int pci_get_short(int bus,int device_fn, int where) in pci_get_short() argument 77 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8); in pci_get_short() 78 return inw(0xCFC + (where&2)); in pci_get_short() 82 static inline int pci_set_short(int bus,int device_fn, int where,unsigned short value) in pci_set_short() argument [all …]
|