vreg
pcb->pcb_vr.vreg[8][0] = vr->__vr32[2];
pcb->pcb_vr.vreg[8][1] = vr->__vr32[3];
pcb->pcb_vr.vreg[i][0] = vr[0].__vr32[0];
pcb->pcb_vr.vreg[i][1] = vr[1].__vr32[0];
pcb->pcb_vr.vreg[i][2] = vr[2].__vr32[0];
pcb->pcb_vr.vreg[i][3] = vr[3].__vr32[0];
vr[0].__vr32[0] = pcb->pcb_vr.vreg[i][0];
vr[1].__vr32[0] = pcb->pcb_vr.vreg[i][1];
vr[2].__vr32[0] = pcb->pcb_vr.vreg[i][2];
vr[3].__vr32[0] = pcb->pcb_vr.vreg[i][3];
mcp->__vrf.__vrs[0].__vr32[2] = pcb->pcb_vr.vreg[8][0];
mcp->__vrf.__vrs[0].__vr32[3] = pcb->pcb_vr.vreg[8][1];
struct vreg;
void vec_load_from_vreg(const struct vreg *);
void vec_unload_to_vreg(struct vreg *);
struct vreg pcb_vr __attribute__((aligned(16)));
struct vreg vstate;
uint32_t vreg[32][4];
memcpy(pcb->pcb_vr.vreg, &mcp->__vrf.__vrs,
sizeof (pcb->pcb_vr.vreg));
memcpy(mcp->__vrf.__vrs, pcb->pcb_vr.vreg,
curpcb->pcb_vr.vreg[scratch][0] = 0x7FFFDEAD;
curpcb->pcb_vr.vreg[scratch][1] = 0x7FFFDEAD;
curpcb->pcb_vr.vreg[scratch][2] = 0x7FFFDEAD;
curpcb->pcb_vr.vreg[scratch][3] = 0x7FFFDEAD;
process_machdep_read_vecregs(struct lwp *l, struct vreg *vregs)
process_machdep_write_vecregs(struct lwp *l, struct vreg *vregs)
iov.iov_len = sizeof(struct vreg);
uio.uio_resid = sizeof(struct vreg);
struct vreg r;
vap->va_bytes = vap->va_size = sizeof(struct vreg);
sun4_vcache_flush_region(int vreg, int ctx)
p = (char *)VRTOVA(vreg); /* reg..reg+sz rather than 0..sz */
sun4_vcache_flush_segment(int vreg, int vseg, int ctx)
p = (char *)VSTOVA(vreg, vseg); /* seg..seg+sz rather than 0..sz */
srmmu_vcache_flush_region(int vreg, int ctx)
p = (char *)VRTOVA(vreg); /* reg..reg+sz rather than 0..sz */
srmmu_vcache_flush_segment(int vreg, int vseg, int ctx)
p = (char *)VSTOVA(vreg, vseg); /* seg..seg+sz rather than 0..sz */
#define AXP_CTRL(name, min, max, step, ereg, emask, vreg, vmask) \
.c_voltage_reg = AXP_##vreg##_REG, .c_voltage_mask = (vmask) }
#define AXP_CTRL2(name, min, max, step1, step1cnt, step2, step2cnt, ereg, emask, vreg, vmask) \
.c_voltage_reg = AXP_##vreg##_REG, .c_voltage_mask = (vmask) }
#define AXP_CTRL(name, min, max, step, ereg, emask, vreg, vmask) \
.c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
#define AXP_CTRL2(name, min, max, step1, step1cnt, step2, step2cnt, ereg, emask, vreg, vmask) \
.c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
#define AXP_CTRL2_RANGE(name, min, max, step1, step1cnt, step2start, step2, step2cnt, ereg, emask, vreg, vmask) \
.c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }
#define AXP_CTRL_IO(name, min, max, step, ereg, emask, eval, dval, vreg, vmask) \
.c_voltage_reg = (vreg), .c_voltage_mask = (vmask) }