• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ppc/boot/simple/

Lines Matching refs:bus

4  * QSpan Motorola bus to PCI bridge.  The config address register
19 * the bus times out and we get a machine check interrupt. So, the
52 * PCI Bridge hack. We assume (correctly) that bus 0 is the primary
53 * PCI bus from the QSPAN. If we are called with a bus number other
75 #define mk_config_addr(bus, dev, offset) \
76 (((bus)<<16) | ((dev)<<8) | (offset & 0xfc))
78 #define mk_config_type1(bus, dev, offset) \
79 mk_config_addr(bus, dev, offset) | 1;
98 * meet the timing specs of the PQ bus for this to work. Therefore,
99 * if you don't have external bus arbitration, you can't use
146 int qs_pci_read_config_byte(unsigned char bus, unsigned char dev_fn,
152 if ((bus > 7) || (dev_fn > 127)) {
157 if (bus == 0)
158 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
160 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset);
169 int qs_pci_read_config_word(unsigned char bus, unsigned char dev_fn,
175 if ((bus > 7) || (dev_fn > 127)) {
180 if (bus == 0)
181 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
183 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset);
192 int qs_pci_read_config_dword(unsigned char bus, unsigned char dev_fn,
195 if ((bus > 7) || (dev_fn > 127)) {
199 if (bus == 0)
200 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
202 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset);
207 int qs_pci_write_config_byte(unsigned char bus, unsigned char dev_fn,
213 if ((bus > 7) || (dev_fn > 127))
216 qs_pci_read_config_dword(bus, dev_fn, offset, &temp);
222 if (bus == 0)
223 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
225 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset);
231 int qs_pci_write_config_word(unsigned char bus, unsigned char dev_fn,
237 if ((bus > 7) || (dev_fn > 127))
240 qs_pci_read_config_dword(bus, dev_fn, offset, &temp);
246 if (bus == 0)
247 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
249 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset);
255 int qs_pci_write_config_dword(unsigned char bus, unsigned char dev_fn,
258 if ((bus > 7) || (dev_fn > 127))
261 if (bus == 0)
262 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
264 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset);