Lines Matching refs:ai

40 	accelerator_info *ai, crtc_info *crtc, display_mode *mode, impactv_params *tv_params );
84 accelerator_info *ai )
86 vuint8 *regs = ai->regs;
107 accelerator_info *ai, crtc_info *crtc, display_mode *mode, impactv_params *tv_params )
109 virtual_card *vc = ai->vc;
110 shared_info *si = ai->si;
111 vuint8 *regs = ai->regs;
202 Radeon_WaitForIdle( ai, true );
206 Radeon_ReadRMXRegisters( ai, &fp_values );
208 Radeon_ReadFPRegisters( ai, &fp_values );
215 Radeon_InternalTVOutReadRegisters( ai, &impactv_values );
217 Radeon_TheatreReadTVRegisters( ai, &impactv_values );
222 Radeon_CalcCRTCRegisters( ai, crtc, mode, &crtc_values );
227 Radeon_CalcImpacTVRegisters( ai, mode, tv_params, &impactv_values,
252 Radeon_CalcFPRegisters( ai, crtc, fp_info, &crtc_values, &fp_values );
259 Radeon_InitCommonRegs( ai );
261 Radeon_ProgramCRTCRegisters( ai, crtc->crtc_idx, &crtc_values );
266 Radeon_ProgramRMXRegisters( ai, &fp_values );
269 Radeon_ProgramFPRegisters( ai, crtc, fp_info, &fp_values );
272 Radeon_ProgramPLL( ai, crtc->crtc_idx, &pll_values );
276 Radeon_InternalTVOutProgramRegisters( ai, &impactv_values );
278 Radeon_TheatreProgramTVRegisters( ai, &impactv_values );
319 accelerator_info *ai, bool enable )
321 shared_info *si = ai->si;
324 int_cntl = INREG( ai->regs, RADEON_GEN_INT_CNTL );
334 OUTREG( ai->regs, RADEON_GEN_INT_CNTL, int_cntl );
339 OUTREG( ai->regs, RADEON_GEN_INT_STATUS, int_cntl );
350 virtual_card *vc = ai->vc;
351 shared_info *si = ai->si;
386 //Radeon_Finish( ai );
387 Radeon_EnableIRQ( ai, false );
399 ioctl( ai->fd, RADEON_FREE_MEM, &fm );
404 ioctl( ai->fd, RADEON_FREE_MEM, &fm );
439 if( ioctl( ai->fd, RADEON_ALLOC_MEM, &am ) == B_OK ) {
457 if( ioctl( ai->fd, RADEON_ALLOC_MEM, &am ) == B_OK ) {
476 Radeon_InitMultiModeVars( ai, &mode );
491 Radeon_SetDPMS( ai, 0, B_DPMS_SUSPEND );
495 Radeon_SetDPMS( ai, 1, B_DPMS_SUSPEND );
504 err1 = Radeon_SetMode( ai, &si->crtc[0], &mode, &tv_params );
506 err2 = Radeon_SetMode( ai, &si->crtc[1], &mode, &tv_params );
513 Radeon_ReadMonitorRoutingRegs( ai, &routing_values );
514 Radeon_CalcMonitorRouting( ai, &tv_params, &routing_values );
515 Radeon_ProgramMonitorRouting( ai, &routing_values );
519 Radeon_SetDPMS( ai, 0, (err1 == B_OK) ? B_DPMS_ON : B_DPMS_SUSPEND );
521 Radeon_SetDPMS( ai, 1, (err2 == B_OK) ? B_DPMS_ON : B_DPMS_SUSPEND );
523 OUTREGP( ai->regs, RADEON_CRTC_EXT_CNTL, 0, ~RADEON_CRTC_DISPLAY_DIS );
529 si->dac_cntl2 = INREG( ai->regs, RADEON_DAC_CNTL2 );
532 Radeon_Init2D( ai );
534 Radeon_FillStateBuffer( ai, vc->datatype );
540 Radeon_MoveDisplay( ai, 0, 0 );
542 Radeon_MoveDisplay( ai, mode.h_display_start, mode.v_display_start );
546 Radeon_InitPalette( ai, 0 );
548 Radeon_InitPalette( ai, 1 );
552 Radeon_SetCursorColors( ai, 0 );
554 Radeon_SetCursorColors( ai, 1 );
557 Radeon_EnableIRQ( ai, true );