Exemplo n.º 1
0
void aftermove(W *w, P *p)
{
	if (pos.link.prev != &pos && pos.link.prev->w == w && pos.link.prev->p && oabs(pos.link.prev->p->line - p->line) < 3) {
		poffline(pset(pos.link.prev->p, p));
	} else {
		markpos(w, p);
	}
}
Exemplo n.º 2
0
{
        volatile u_int16_t *p;

        p = (volatile u_int16_t *)(handle + offset * AMIGA_SIMPLE_BUS_STRIDE);

        while (count > 0) {
                *p = bswap16(*pointer);
                amiga_bus_reorder_protect();
                ++pointer;
                --count;
        }
}

const struct amiga_bus_space_methods amiga_bus_stride_1swap_abs = {

	.bsm =		oabs(bsm_absolute_),
	.bsms =		oabs(bsms_),
	.bsu =		oabs(bsu_),
	.bsa =		NULL,
	.bsf =		NULL,

	.bsr1 =		oabs(bsr1_),
	.bsw1 =		oabs(bsw1_),
	.bsrm1 =	oabs(bsrm1_),
	.bswm1 =	oabs(bswm1_),
	.bsrr1 =	oabs(bsrr1_),
	.bswr1 =	oabs(bswr1_),
	.bssr1 =	oabs(bssr1_),
	.bscr1 =	oabs(bscr1_),

	.bsr2 =		oabs(bsr2_),            /* XXX swap? */
Exemplo n.º 3
0
		  const u_int16_t *pointer, bus_size_t count)
{
	volatile u_int16_t *p;

	p = (volatile u_int16_t *)(handle + offset * AMIGA_SIMPLE_BUS_STRIDE);

	while (count > 0) {
		*p = bswap16(*pointer);
		++pointer;
		--count;
	}
}

const struct amiga_bus_space_methods amiga_bus_stride_4swap = {

        oabs(bsm_),
        oabs(bsms_),
        oabs(bsu_),
        0,
        0,

        oabs(bsr1_),
        oabs(bsw1_),
        oabs(bsrm1_),
        oabs(bswm1_),
        oabs(bsrr1_),
        oabs(bswr1_),
        oabs(bssr1_),
        oabs(bscr1_),

        oabs(bsr2_),		/* XXX swap? */