Lines Matching +full:ctrl +full:- +full:module
4 * Copyright (c) 2010-2012 Calxeda
22 #include "hw/qdev-properties.h"
26 #include "qemu/module.h"
29 /* L2C-310 r3p2 */
40 uint32_t ctrl; member
53 VMSTATE_UINT32(ctrl, L2x0State),
78 cache_data = (s->aux_ctrl & (7 << 17)) >> 15; in l2x0_priv_read()
79 cache_data |= (s->aux_ctrl & (1 << 16)) >> 16; in l2x0_priv_read()
80 return s->cache_type |= (cache_data << 18) | (cache_data << 6); in l2x0_priv_read()
82 return s->ctrl; in l2x0_priv_read()
84 return s->aux_ctrl; in l2x0_priv_read()
86 return s->tag_ctrl; in l2x0_priv_read()
88 return s->data_ctrl; in l2x0_priv_read()
90 return s->filter_start; in l2x0_priv_read()
92 return s->filter_end; in l2x0_priv_read()
118 s->ctrl = value & 1; in l2x0_priv_write()
121 s->aux_ctrl = value; in l2x0_priv_write()
124 s->tag_ctrl = value; in l2x0_priv_write()
127 s->data_ctrl = value; in l2x0_priv_write()
130 s->filter_start = value; in l2x0_priv_write()
133 s->filter_end = value; in l2x0_priv_write()
152 s->ctrl = 0; in l2x0_priv_reset()
153 s->aux_ctrl = 0x02020000; in l2x0_priv_reset()
154 s->tag_ctrl = 0; in l2x0_priv_reset()
155 s->data_ctrl = 0; in l2x0_priv_reset()
156 s->filter_start = 0; in l2x0_priv_reset()
157 s->filter_end = 0; in l2x0_priv_reset()
171 memory_region_init_io(&s->iomem, obj, &l2x0_mem_ops, s, in l2x0_priv_init()
173 sysbus_init_mmio(dev, &s->iomem); in l2x0_priv_init()
177 DEFINE_PROP_UINT32("cache-type", L2x0State, cache_type, 0x1c100100),
184 dc->vmsd = &vmstate_l2x0; in l2x0_class_init()