From 955791f0645d4b61bd20d817c532dda3a40aaddd Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Sun, 22 May 2005 04:36:33 +0000 Subject: Refactor the routines for "calculating" the size of the WARP microcode. The two routines (one for G200 and one for G400) were replaced with static const variables and a single function that returns the correct size. The code to generate an error if the allocated WARP region is too small was refactored from mga_warp_install_{g200,g400}_microcode to mga_wrap_install_microcode. mga_warp_microcode_size is global to the MGA DRM because it will soon be used by code in another file. --- shared-core/mga_drv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'shared-core/mga_drv.h') diff --git a/shared-core/mga_drv.h b/shared-core/mga_drv.h index 86dedbe8..e12dbd42 100644 --- a/shared-core/mga_drv.h +++ b/shared-core/mga_drv.h @@ -130,6 +130,7 @@ extern void mga_do_dma_wrap_end(drm_mga_private_t * dev_priv); extern int mga_freelist_put(drm_device_t * dev, drm_buf_t * buf); /* mga_warp.c */ +extern unsigned int mga_warp_microcode_size(const drm_mga_private_t * dev_priv); extern int mga_warp_install_microcode(drm_mga_private_t * dev_priv); extern int mga_warp_init(drm_mga_private_t * dev_priv); -- cgit v1.2.3