Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/drm/mga_state.c
Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | DMA_BLOCK(MGA_WIADDR, MGA_WMODE_SUSPEND, | ||||
MGA_WFLAG, 0x00000000, | MGA_WFLAG, 0x00000000, | ||||
MGA_WR24, 0x00000000); | MGA_WR24, 0x00000000); | ||||
DMA_BLOCK(MGA_WR25, 0x00000100, | DMA_BLOCK(MGA_WR25, 0x00000100, | ||||
MGA_WR34, 0x00000000, | MGA_WR34, 0x00000000, | ||||
MGA_WR42, 0x0000ffff, | MGA_WR42, 0x0000ffff, | ||||
MGA_WR60, 0x0000ffff); | MGA_WR60, 0x0000ffff); | ||||
/* Padding required to to hardware bug. | /* Padding required due to hardware bug. | ||||
*/ | */ | ||||
DMA_BLOCK(MGA_DMAPAD, 0xffffffff, | DMA_BLOCK(MGA_DMAPAD, 0xffffffff, | ||||
MGA_DMAPAD, 0xffffffff, | MGA_DMAPAD, 0xffffffff, | ||||
MGA_DMAPAD, 0xffffffff, | MGA_DMAPAD, 0xffffffff, | ||||
MGA_WIADDR, (dev_priv->warp_pipe_phys[pipe] | | MGA_WIADDR, (dev_priv->warp_pipe_phys[pipe] | | ||||
MGA_WMODE_START | dev_priv->wagp_enable)); | MGA_WMODE_START | dev_priv->wagp_enable)); | ||||
ADVANCE_DMA(); | ADVANCE_DMA(); | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | DMA_BLOCK(MGA_WR49, 0x00000000, /* tex0 */ | ||||
MGA_WR53, 0x00000000, /* tex1 */ | MGA_WR53, 0x00000000, /* tex1 */ | ||||
MGA_WR61, 0x00000000); /* tex1 */ | MGA_WR61, 0x00000000); /* tex1 */ | ||||
DMA_BLOCK(MGA_WR54, MGA_G400_WR_MAGIC, /* tex0 width */ | DMA_BLOCK(MGA_WR54, MGA_G400_WR_MAGIC, /* tex0 width */ | ||||
MGA_WR62, MGA_G400_WR_MAGIC, /* tex0 height */ | MGA_WR62, MGA_G400_WR_MAGIC, /* tex0 height */ | ||||
MGA_WR52, MGA_G400_WR_MAGIC, /* tex1 width */ | MGA_WR52, MGA_G400_WR_MAGIC, /* tex1 width */ | ||||
MGA_WR60, MGA_G400_WR_MAGIC); /* tex1 height */ | MGA_WR60, MGA_G400_WR_MAGIC); /* tex1 height */ | ||||
/* Padding required to to hardware bug */ | /* Padding required due to hardware bug */ | ||||
DMA_BLOCK(MGA_DMAPAD, 0xffffffff, | DMA_BLOCK(MGA_DMAPAD, 0xffffffff, | ||||
MGA_DMAPAD, 0xffffffff, | MGA_DMAPAD, 0xffffffff, | ||||
MGA_DMAPAD, 0xffffffff, | MGA_DMAPAD, 0xffffffff, | ||||
MGA_WIADDR2, (dev_priv->warp_pipe_phys[pipe] | | MGA_WIADDR2, (dev_priv->warp_pipe_phys[pipe] | | ||||
MGA_WMODE_START | dev_priv->wagp_enable)); | MGA_WMODE_START | dev_priv->wagp_enable)); | ||||
ADVANCE_DMA(); | ADVANCE_DMA(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 791 Lines • Show Last 20 Lines |