Lines Matching refs:bridge
14 #include <asm/pci/bridge.h>
44 bridge_t *bridge;
47 printk("a bridge\n");
79 * point to this bridge
81 bridge = (bridge_t *) RAW_NODE_SWIN_BASE(nasid, widget_id);
86 bridge->b_int_rst_stat = BRIDGE_IRR_ALL_CLR;
91 bridge->b_int_device = 0x0;
96 bridge->b_wid_control |= BRIDGE_CTRL_IO_SWAP |
101 * are documented as reserved in the bridge docs.
103 bridge->b_wid_int_upper = 0x8000 | (masterwid << 16);
104 bridge->b_wid_int_lower = 0x01800090; /* PI_INT_PEND_MOD off*/
105 bridge->b_dir_map = (masterwid << 20); /* DMA */
106 bridge->b_int_enable = 0;
109 bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR;
112 bridge->b_wid_tflush; /* wait until Bridge PIO complete */
114 bc->base = bridge;
160 bridge_t *bridge = bc->base;
164 bridge->b_device[slot].reg &= ~BRIDGE_DEV_SWAP_DIR;
165 bridge->b_widget.w_tflush; /* Flush */
171 bridge_t *bridge = bc->base;
175 bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR;
176 bridge->b_widget.w_tflush; /* Flush */