void xf86OSInitVidMem(VidMemInfoPtr pVidMem) { checkDevMem(TRUE); if (has_bwx()) { xf86Msg(X_PROBED, "Machine type has 8/16 bit access\n"); } else { xf86Msg(X_PROBED, "Machine needs sparse mapping\n"); } pVidMem->initialised = TRUE; }
void xf86OSInitVidMem(VidMemInfoPtr pVidMem) { checkDevMem(TRUE); pVidMem->linearSupported = useDevMem; if (has_bwx()) { xf86Msg(X_PROBED, "Machine type has 8/16 bit access\n"); pVidMem->mapMem = mapVidMem; pVidMem->unmapMem = unmapVidMem; } else { xf86Msg(X_PROBED, "Machine needs sparse mapping\n"); pVidMem->mapMem = mapVidMemSparse; pVidMem->unmapMem = unmapVidMemSparse; #ifndef __NetBSD__ if (axpSystem == -1) axpSystem = bsdGetAXP(); hae_thresh = xf86AXPParams[axpSystem].hae_thresh; hae_mask = xf86AXPParams[axpSystem].hae_mask; #endif /* __NetBSD__ */ } pVidMem->initialised = TRUE; }