summaryrefslogtreecommitdiff
path: root/shared-core/mga_drv.h
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-05-22 04:36:33 +0000
committerIan Romanick <idr@us.ibm.com>2005-05-22 04:36:33 +0000
commit955791f0645d4b61bd20d817c532dda3a40aaddd (patch)
tree0bbe4af4013db83d8a952d05691c9b17bdb9c6c6 /shared-core/mga_drv.h
parent75cb43ccd73dd2c8c196d209862b8a3ea4e433cb (diff)
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.
Diffstat (limited to 'shared-core/mga_drv.h')
-rw-r--r--shared-core/mga_drv.h1
1 files changed, 1 insertions, 0 deletions
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);