Exemple #1
0
static void tnetw1130_write1b(tnetw1130_t *s, hwaddr addr,
                              uint8_t value)
{
    assert(addr < TNETW1130_MEM1_SIZE);
    s->mem1[addr] = value;
    TRACE(TNETW, logout("addr %s = 0x%02x\n", tnetw1130_regname1(addr), value));
}
Exemple #2
0
static void tnetw1130_write1l(tnetw1130_t *s, hwaddr addr,
                              uint32_t value)
{
    assert(addr < TNETW1130_MEM1_SIZE);
    reg_write32(s->mem1, addr, value);
    TRACE(TNETW, logout("addr %s = 0x%08x\n", tnetw1130_regname1(addr), value));
}
Exemple #3
0
static uint32_t tnetw1130_read1l(tnetw1130_t *s, hwaddr addr)
{
    assert(addr < TNETW1130_MEM1_SIZE);
    uint32_t value = reg_read32(s->mem1, addr);
    TRACE(TNETW, logout("addr %s = 0x%08x\n", tnetw1130_regname1(addr), value));
    return value;
}
Exemple #4
0
static uint16_t tnetw1130_read1w(tnetw1130_t *s, hwaddr addr)
{
    uint16_t value = 0;
    assert(addr < TNETW1130_MEM1_SIZE);
    value = reg_read16(s->mem1, addr);
    TRACE(TNETW, logout("addr %s = 0x%04x\n", tnetw1130_regname1(addr), value));
    return value;
}
Exemple #5
0
static uint8_t tnetw1130_read1b(tnetw1130_t *s, hwaddr addr)
{
    uint8_t value = 0;
    assert(addr < TNETW1130_MEM1_SIZE);
    value = s->mem1[addr];
    TRACE(TNETW, logout("addr %s = 0x%02x\n", tnetw1130_regname1(addr), value));
    return value;
}
static void tnetw1130_write1l(pci_tnetw1130_t * d, target_phys_addr_t addr,
                              uint32_t value)
{
    tnetw1130_t *s = &d->tnetw1130;
    assert(addr < TNETW1130_MEM1_SIZE);
    reg_write32(s->mem1, addr, value);
    TRACE(TNETW, logout("addr %s = 0x%08x\n", tnetw1130_regname1(addr), value));
}
static void tnetw1130_write1b(pci_tnetw1130_t * d, target_phys_addr_t addr,
                              uint8_t value)
{
    tnetw1130_t *s = &d->tnetw1130;
    assert(addr < TNETW1130_MEM1_SIZE);
    s->mem1[addr] = value;
    TRACE(TNETW, logout("addr %s = 0x%02x\n", tnetw1130_regname1(addr), value));
}
static uint32_t tnetw1130_read1l(pci_tnetw1130_t * d, target_phys_addr_t addr)
{
    tnetw1130_t *s = &d->tnetw1130;
    assert(addr < TNETW1130_MEM1_SIZE);
    uint32_t value = reg_read32(s->mem1, addr);
    TRACE(TNETW, logout("addr %s = 0x%08x\n", tnetw1130_regname1(addr), value));
    return value;
}
static uint8_t tnetw1130_read1b(pci_tnetw1130_t * d, target_phys_addr_t addr)
{
    tnetw1130_t *s = &d->tnetw1130;
    uint8_t value = 0;
    assert(addr < TNETW1130_MEM1_SIZE);
    value = s->mem1[addr];
    TRACE(TNETW, logout("addr %s = 0x%02x\n", tnetw1130_regname1(addr), value));
    return value;
}