/linux-2.6.39/arch/mips/pci/ |
D | ops-mace.c | 45 u32 control = mace->pci.control; in mace_pci_read_config() 48 mace->pci.control = control & ~MACEPCI_CONTROL_MAR_INT; in mace_pci_read_config() 49 mace->pci.config_addr = mkaddr(bus, devfn, reg); in mace_pci_read_config() 52 *val = mace->pci.config_data.b[(reg & 3) ^ 3]; in mace_pci_read_config() 55 *val = mace->pci.config_data.w[((reg >> 1) & 1) ^ 1]; in mace_pci_read_config() 58 *val = mace->pci.config_data.l; in mace_pci_read_config() 62 mace->pci.error &= ~MACEPCI_ERROR_MASTER_ABORT; in mace_pci_read_config() 63 mace->pci.control = control; in mace_pci_read_config() 81 mace->pci.config_addr = mkaddr(bus, devfn, reg); in mace_pci_write_config() 84 mace->pci.config_data.b[(reg & 3) ^ 3] = val; in mace_pci_write_config() [all …]
|
D | pci-ip32.c | 28 unsigned int flags = mace->pci.error; in macepci_error() 29 unsigned int addr = mace->pci.error_addr; in macepci_error() 79 mace->pci.error = flags; in macepci_error() 130 mace->pci.error_addr = 0; in mace_init() 131 mace->pci.error = 0; in mace_init() 132 mace->pci.control = 0xff008500; in mace_init() 134 printk("MACE PCI rev %d\n", mace->pci.rev); in mace_init()
|
D | Makefile | 39 obj-$(CONFIG_SGI_IP32) += fixup-ip32.o ops-mace.o pci-ip32.o
|
/linux-2.6.39/drivers/net/ |
D | macmace.c | 62 volatile struct mace *mace; member 124 volatile struct mace *mace = mp->mace; in mace_rxdma_reset() local 125 u8 maccc = mace->maccc; in mace_rxdma_reset() 127 mace->maccc = maccc & ~ENRCV; in mace_rxdma_reset() 137 mace->maccc = maccc; in mace_rxdma_reset() 151 volatile struct mace *mace = mp->mace; in mace_txdma_reset() local 156 maccc = mace->maccc; in mace_txdma_reset() 157 mace->maccc = maccc & ~ENXMT; in mace_txdma_reset() 163 mace->maccc = maccc; in mace_txdma_reset() 224 mp->mace = (volatile struct mace *) MACE_BASE; in mace_probe() [all …]
|
D | meth.c | 101 mace->eth.mac_addr = macaddr; in load_eaddr() 108 while ((___rval = mace->eth.phy_data) & MDIO_BUSY) { \ 116 mace->eth.phy_regs = (priv->phy_addr << 5) | (phyreg & 0x1f); in mdio_read() 118 mace->eth.phy_trans_go = 1; in mdio_read() 187 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link() 196 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link() 210 mace->eth.tx_ring_base = priv->tx_ring_dma; in meth_init_tx_ring() 231 mace->eth.rx_fifo = priv->rx_ring_dmas[i]; in meth_init_rx_ring() 269 mace->eth.mac_ctrl = SGI_MAC_RESET; in meth_reset() 271 mace->eth.mac_ctrl = 0; in meth_reset() [all …]
|
D | mace.c | 44 volatile struct mace __iomem *mace; member 110 struct device_node *mace = macio_get_of_node(mdev); in mace_probe() local 118 mace->full_name); in mace_probe() 122 addr = of_get_property(mace, "mac-address", NULL); in mace_probe() 124 addr = of_get_property(mace, "local-mac-address", NULL); in mace_probe() 127 mace->full_name); in mace_probe() 162 mp->mace = ioremap(dev->base_addr, 0x1000); in mace_probe() 163 if (mp->mace == NULL) { in mace_probe() 174 mp->chipid = (in_8(&mp->mace->chipid_hi) << 8) | in mace_probe() 175 in_8(&mp->mace->chipid_lo); in mace_probe() [all …]
|
D | mace.h | 15 struct mace { struct
|
D | Makefile | 66 obj-$(CONFIG_MACE) += mace.o
|
D | Kconfig | 264 will be called mace.
|
/linux-2.6.39/arch/mips/sgi-ip32/ |
D | ip32-irq.c | 39 mace->perif.ctrl.misc; in flush_mace_bus() 188 mace->pci.control = macepci_mask; in enable_macepci_irq() 199 mace->pci.control = macepci_mask; in disable_macepci_irq() 269 mace->perif.ctrl.imask = maceisa_mask; in enable_maceisa_irq() 286 mace->perif.ctrl.imask = maceisa_mask; in disable_maceisa_irq() 295 mace_int = mace->perif.ctrl.istat; in mask_and_ack_maceisa_irq() 297 mace->perif.ctrl.istat = mace_int; in mask_and_ack_maceisa_irq() 351 printk("MACE ISA intr mask: %08lx\n", mace->perif.ctrl.imask); in ip32_unknown_interrupt() 352 printk("MACE ISA intr status: %08lx\n", mace->perif.ctrl.istat); in ip32_unknown_interrupt() 353 printk("MACE PCI control register: %08x\n", mace->pci.control); in ip32_unknown_interrupt() [all …]
|
D | ip32-reset.c | 87 unsigned long led = mace->perif.ctrl.misc ^ MACEISA_LED_RED; in blink_timeout() 88 mace->perif.ctrl.misc = led; in blink_timeout() 170 led = mace->perif.ctrl.misc | MACEISA_LED_GREEN; in panic_event() 171 mace->perif.ctrl.misc = led; in panic_event() 186 unsigned long led = mace->perif.ctrl.misc; in ip32_reboot_setup() 189 mace->perif.ctrl.misc = led; in ip32_reboot_setup()
|
D | crime.c | 22 struct sgi_mace __iomem *mace; variable 24 EXPORT_SYMBOL_GPL(mace); 33 mace = ioremap(MACE_BASE, sizeof(struct sgi_mace)); in crime_init()
|
/linux-2.6.39/sound/mips/ |
D | sgio2audio.c | 124 CODEC_CONTROL_READ, &mace->perif.audio.codec_control); in read_ad1843_reg() 126 val = readq(&mace->perif.audio.codec_control); /* flush bus */ in read_ad1843_reg() 129 val = readq(&mace->perif.audio.codec_read); in read_ad1843_reg() 148 &mace->perif.audio.codec_control); in write_ad1843_reg() 150 val = readq(&mace->perif.audio.codec_control); /* flush bus */ in write_ad1843_reg() 380 src_pos = readq(&mace->perif.audio.chan[ch].read_ptr); in snd_sgio2audio_dma_pull_frag() 403 writeq(src_pos, &mace->perif.audio.chan[ch].read_ptr); /* in bytes */ in snd_sgio2audio_dma_pull_frag() 428 dst_pos = readq(&mace->perif.audio.chan[ch].write_ptr); in snd_sgio2audio_dma_push_frag() 453 writeq(dst_pos, &mace->perif.audio.chan[ch].write_ptr); /* in bytes */ in snd_sgio2audio_dma_push_frag() 467 writeq(CHANNEL_CONTROL_RESET, &mace->perif.audio.chan[ch].control); in snd_sgio2audio_dma_start() [all …]
|
/linux-2.6.39/arch/mips/include/asm/mach-ip32/ |
D | mc146818rtc.h | 20 return mace->isa.rtc[addr << 8]; in CMOS_READ() 25 mace->isa.rtc[addr << 8] = data; in CMOS_WRITE()
|
/linux-2.6.39/drivers/parport/ |
D | parport_ip32.c | 507 &mace->perif.ctrl.parport.context_a : in parport_ip32_dma_setup_context() 508 &mace->perif.ctrl.parport.context_b; in parport_ip32_dma_setup_context() 592 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start() 612 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start() 621 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_start() 657 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop() 659 writeq(ctrl, &mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop() 662 ctx_a = readq(&mace->perif.ctrl.parport.context_a); in parport_ip32_dma_stop() 663 ctx_b = readq(&mace->perif.ctrl.parport.context_b); in parport_ip32_dma_stop() 664 ctrl = readq(&mace->perif.ctrl.parport.cntlstat); in parport_ip32_dma_stop() [all …]
|
/linux-2.6.39/drivers/input/misc/ |
D | sgi_btns.c | 46 status = readq(&mace->perif.audio.control); in button_status() 47 writeq(status & ~(3U << 23), &mace->perif.audio.control); in button_status()
|
/linux-2.6.39/drivers/input/serio/ |
D | maceps2.c | 186 port_data[0].port = &mace->perif.ps2.keyb; in maceps2_init() 188 port_data[1].port = &mace->perif.ps2.mouse; in maceps2_init()
|
/linux-2.6.39/arch/mips/include/asm/ip32/ |
D | mace.h | 363 extern struct sgi_mace __iomem *mace;
|