Home
last modified time | relevance | path

Searched refs:ioaddr (Results 1 – 25 of 45) sorted by relevance

12

/rk3399_rockchip-uboot/drivers/ata/
H A Dsata_sil3114.c33 static u8 sata_busy_wait (struct sata_ioports *ioaddr, int bits,
35 static u8 sata_chk_status (struct sata_ioports *ioaddr, u8 usealtstatus);
42 static void output_data (struct sata_ioports *ioaddr, u16 * sect_buf, int words) in output_data() argument
45 __raw_writew (*sect_buf++, (void *)ioaddr->data_addr); in output_data()
49 static int input_data (struct sata_ioports *ioaddr, u16 * sect_buf, int words) in input_data() argument
52 *sect_buf++ = __raw_readw ((void *)ioaddr->data_addr); in input_data()
64 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset()
66 writeb (port[num].ctl_reg | ATA_SRST, port[num].ioaddr.ctl_addr); in sata_bus_softreset()
68 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset()
79 status = sata_busy_wait (&port[num].ioaddr, ATA_BUSY, 300, 0); in sata_bus_softreset()
[all …]
H A Dsata_dwc.c326 host.ports[0]->ioaddr.cmd_addr = base; in init_sata()
327 host.ports[0]->ioaddr.scr_addr = base + SATA_DWC_SCR_OFFSET; in init_sata()
332 host.ports[0]->ioaddr.cmd_addr = (void *)base_addr + 0x00; in init_sata()
333 host.ports[0]->ioaddr.data_addr = (void *)base_addr + 0x00; in init_sata()
335 host.ports[0]->ioaddr.error_addr = (void *)base_addr + 0x04; in init_sata()
336 host.ports[0]->ioaddr.feature_addr = (void *)base_addr + 0x04; in init_sata()
338 host.ports[0]->ioaddr.nsect_addr = (void *)base_addr + 0x08; in init_sata()
340 host.ports[0]->ioaddr.lbal_addr = (void *)base_addr + 0x0c; in init_sata()
341 host.ports[0]->ioaddr.lbam_addr = (void *)base_addr + 0x10; in init_sata()
342 host.ports[0]->ioaddr.lbah_addr = (void *)base_addr + 0x14; in init_sata()
[all …]
/rk3399_rockchip-uboot/drivers/net/
H A Duli526x.c81 #define SROM_CLK_WRITE(data, ioaddr) do { \ argument
82 outl(data|CR9_SROM_READ|CR9_SRCS, ioaddr); \
84 outl(data|CR9_SROM_READ|CR9_SRCS|CR9_SRCLK, ioaddr); \
86 outl(data|CR9_SROM_READ|CR9_SRCS, ioaddr); \
108 long ioaddr; /* I/O base address */ member
242 db->ioaddr = dev->iobase; in uli526x_initialize()
295 __FUNCTION__, db->ioaddr); in uli526x_init_one()
310 ((u16 *) db->srom)[i] = cpu_to_le16(read_srom_word(db->ioaddr, in uli526x_init_one()
343 if (!((inl(db->ioaddr + DCR12)) & 0x8)) { in uli526x_disable()
345 outl(ULI526X_RESET, db->ioaddr + DCR0); in uli526x_disable()
[all …]
H A Drtl8139.c177 static int ioaddr; variable
258 ioaddr = dev->iobase; in rtl8139_probe()
261 outb(0x00, ioaddr + Config1); in rtl8139_probe()
269 if (inb(ioaddr + MediaStatus) & MSRLinkFail) { in rtl8139_probe()
304 long ee_addr = ioaddr + Cfg9346; in read_eeprom()
348 outl(rtl8139_rx_config | rx_mode, ioaddr + RxConfig); in set_rx_mode()
350 outl(mc_filter[0], ioaddr + MAR0 + 0); in set_rx_mode()
351 outl(mc_filter[1], ioaddr + MAR0 + 4); in set_rx_mode()
358 outb(CmdReset, ioaddr + ChipCmd); in rtl_reset()
365 if ((inb(ioaddr + ChipCmd) & CmdReset) == 0) break; in rtl_reset()
[all …]
H A Ddc2114x.c148 static int do_eeprom_cmd(struct eth_device *dev, u_long ioaddr,int cmd,int cmd_len);
149 static int do_read_eeprom(struct eth_device *dev,u_long ioaddr,int location,int addr_len);
152 static int write_srom(struct eth_device *dev, u_long ioaddr, int index, int new_value);
156 static int read_srom(struct eth_device *dev, u_long ioaddr, int index);
547 static int do_read_eeprom(struct eth_device *dev, u_long ioaddr, int location, int addr_len) in do_read_eeprom() argument
553 sendto_srom(dev, SROM_RD | SROM_SR, ioaddr); in do_read_eeprom()
554 sendto_srom(dev, SROM_RD | SROM_SR | DT_CS, ioaddr); in do_read_eeprom()
563 sendto_srom(dev, SROM_RD | SROM_SR | DT_CS | dataval, ioaddr); in do_read_eeprom()
565 sendto_srom(dev, SROM_RD | SROM_SR | DT_CS | dataval | DT_CLK, ioaddr); in do_read_eeprom()
568 printf("%X", getfrom_srom(dev, ioaddr) & 15); in do_read_eeprom()
[all …]
H A Drtl8169.c62 static unsigned long ioaddr; variable
99 #define RTL_W8(reg, val8) writeb((val8), ioaddr + (reg))
100 #define RTL_W16(reg, val16) writew((val16), ioaddr + (reg))
101 #define RTL_W32(reg, val32) writel((val32), ioaddr + (reg))
102 #define RTL_R8(reg) readb(ioaddr + (reg))
103 #define RTL_R16(reg) readw(ioaddr + (reg))
104 #define RTL_R32(reg) readl(ioaddr + (reg))
396 ioaddr = dev_iobase; in rtl8169_init_board()
530 ioaddr = dev_iobase; in rtl_recv_common()
624 ioaddr = dev_iobase; in rtl_send_common()
[all …]
H A Dpic32_mdio.c104 int pic32_mdio_init(const char *name, ulong ioaddr) in pic32_mdio_init() argument
118 bus->priv = (void *)ioaddr; in pic32_mdio_init()
/rk3399_rockchip-uboot/drivers/mmc/
H A Dtangier_sdhci.c21 void __iomem *ioaddr; member
43 plat->ioaddr = devm_ioremap(dev, base, SZ_1K); in sdhci_tangier_probe()
44 if (!plat->ioaddr) in sdhci_tangier_probe()
48 host->ioaddr = plat->ioaddr; in sdhci_tangier_probe()
H A Dpci_mmc.c32 u32 ioaddr; in pci_mmc_probe() local
35 dm_pci_read_config32(dev, PCI_BASE_ADDRESS_0, &ioaddr); in pci_mmc_probe()
36 host->ioaddr = map_sysmem(ioaddr, 0); in pci_mmc_probe()
H A Dmv_sdhci.c50 u32 ata = (unsigned long)host->ioaddr + SD_CE_ATA_2; in mv_sdhci_writeb()
59 writeb(val, host->ioaddr + reg); in mv_sdhci_writeb()
78 host->ioaddr = (void *)regbase; in mv_sdh_init()
H A Dmsm_sdhci.c140 caps = readl(host->ioaddr + SDHCI_CAPABILITIES); in msm_sdc_probe()
142 writel(caps, host->ioaddr + SDHCI_VENDOR_SPEC_CAPABILITIES0); in msm_sdc_probe()
174 host->ioaddr = (void *)devfdt_get_addr(dev); in msm_ofdata_to_platdata()
180 host->ioaddr == (void *)FDT_ADDR_T_NONE) in msm_ofdata_to_platdata()
H A Dsti_sdhci.c86 sti_mmc_core_config((const u32) host->ioaddr, mmc_instance); in sti_sdhci_probe()
111 host->ioaddr = (void *)devfdt_get_addr(dev); in sti_sdhci_ofdata_to_platdata()
H A Dbcm2835_sdhci.c82 writel(val, host->ioaddr + reg); in bcm2835_sdhci_raw_writel()
88 return readl(host->ioaddr + reg); in bcm2835_sdhci_raw_readl()
204 host->ioaddr = (void *)base; in bcm2835_sdhci_probe()
H A Datmel_sdhci.c30 host->ioaddr = regbase; in atmel_sdhci_init()
75 host->ioaddr = (void *)devfdt_get_addr(dev); in atmel_sdhci_probe()
H A Dbcmstb_sdhci.c57 host->ioaddr = (void *)regbase; in bcmstb_sdhci_init()
H A Dhi6220_dw_mmc.c51 host->ioaddr = (void *)(ulong)regbase; in hi6220_dwmci_add_port()
H A Dpic32_sdhci.c45 host->ioaddr = ioremap(addr, size); in pic32_sdhci_probe()
/rk3399_rockchip-uboot/include/
H A Dsdhci.h275 void *ioaddr; member
305 writel(val, host->ioaddr + reg); in sdhci_writel()
313 writew(val, host->ioaddr + reg); in sdhci_writew()
321 writeb(val, host->ioaddr + reg); in sdhci_writeb()
329 return readl(host->ioaddr + reg); in sdhci_readl()
337 return readw(host->ioaddr + reg); in sdhci_readw()
345 return readb(host->ioaddr + reg); in sdhci_readb()
352 writel(val, host->ioaddr + reg); in sdhci_writel()
357 writew(val, host->ioaddr + reg); in sdhci_writew()
362 writeb(val, host->ioaddr + reg); in sdhci_writeb()
[all …]
H A Ddwmmc.h171 void *ioaddr; member
221 writel(val, host->ioaddr + reg); in dwmci_writel()
226 writew(val, host->ioaddr + reg); in dwmci_writew()
231 writeb(val, host->ioaddr + reg); in dwmci_writeb()
235 return readl(host->ioaddr + reg); in dwmci_readl()
240 return readw(host->ioaddr + reg); in dwmci_readw()
245 return readb(host->ioaddr + reg); in dwmci_readb()
/rk3399_rockchip-uboot/drivers/rkflash/
H A Drknandc_base.c72 priv->ioaddr = dev_read_addr_ptr(dev); in rockchip_nand_ofdata_to_platdata()
84 ret = nandc_flash_init(priv->ioaddr); in rockchip_nand_probe()
H A Drksfc_base.c97 priv->ioaddr = dev_read_addr_ptr(dev); in rockchip_rksfc_ofdata_to_platdata()
110 sfc_init(priv->ioaddr); in rockchip_rksfc_probe()
/rk3399_rockchip-uboot/board/synopsys/hsdk/
H A Dhsdk.c41 host->ioaddr = (void *)ARC_DWMMC_BASE; in board_mmc_init()
/rk3399_rockchip-uboot/board/synopsys/axs10x/
H A Daxs10x.c27 host->ioaddr = (void *)ARC_DWMMC_BASE; in board_mmc_init()
/rk3399_rockchip-uboot/drivers/rknand/
H A Drknand.h16 void *ioaddr; member
H A Drknand.c187 ndev->ioaddr = dev_read_addr_ptr(udev); in rockchip_nand_probe()
188 ret = rk_ftl_init(ndev->ioaddr); in rockchip_nand_probe()

12