Home | History | Annotate | Download | only in hw

Lines Matching defs:val

42 static void pci_host_data_writeb(void* opaque, pci_addr_t addr, uint32_t val)
46 PCI_DPRINTF("writeb addr " TARGET_FMT_plx " val %x\n",
47 (target_phys_addr_t)addr, val);
49 pci_data_write(s->bus, s->config_reg | (addr & 3), val, 1);
52 static void pci_host_data_writew(void* opaque, pci_addr_t addr, uint32_t val)
56 val = bswap16(val);
58 PCI_DPRINTF("writew addr " TARGET_FMT_plx " val %x\n",
59 (target_phys_addr_t)addr, val);
61 pci_data_write(s->bus, s->config_reg | (addr & 3), val, 2);
64 static void pci_host_data_writel(void* opaque, pci_addr_t addr, uint32_t val)
68 val = bswap32(val);
70 PCI_DPRINTF("writel addr " TARGET_FMT_plx " val %x\n",
71 (target_phys_addr_t)addr, val);
73 pci_data_write(s->bus, s->config_reg, val, 4);
79 uint32_t val;
83 val = pci_data_read(s->bus, s->config_reg | (addr & 3), 1);
84 PCI_DPRINTF("readb addr " TARGET_FMT_plx " val %x\n",
85 (target_phys_addr_t)addr, val);
86 return val;
92 uint32_t val;
95 val = pci_data_read(s->bus, s->config_reg | (addr & 3), 2);
96 PCI_DPRINTF("readw addr " TARGET_FMT_plx " val %x\n",
97 (target_phys_addr_t)addr, val);
99 val = bswap16(val);
101 return val;
107 uint32_t val;
110 val = pci_data_read(s->bus, s->config_reg | (addr & 3), 4);
111 PCI_DPRINTF("readl addr " TARGET_FMT_plx " val %x\n",
112 (target_phys_addr_t)addr, val);
114 val = bswap32(val);
116 return val;