Home | History | Annotate | Download | only in src

Lines Matching refs:where

59 #define CONFIG_CMD(bus,device_fn,where)   \
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)
64 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8);
68 static inline int pci_set_long(int bus,int device_fn, int where,unsigned long value)
70 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8);
75 static inline int pci_get_short(int bus,int device_fn, int where)
77 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8);
78 return inw(0xCFC + (where&2));
82 static inline int pci_set_short(int bus,int device_fn, int where,unsigned short value)
84 outl(CONFIG_CMD(bus,device_fn,where), 0xCF8);
85 outw(value,0xCFC + (where&2));