Move dwWriteReg to xgi_cmdlist.c, the only file where it is used.
parent
be76f0eea9
commit
d3c8e98dd9
|
@ -34,6 +34,20 @@ static unsigned int get_batch_command(enum xgi_batch_type type);
|
||||||
static void triggerHWCommandList(struct xgi_info * info);
|
static void triggerHWCommandList(struct xgi_info * info);
|
||||||
static void xgi_cmdlist_reset(struct xgi_info * info);
|
static void xgi_cmdlist_reset(struct xgi_info * info);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Graphic engine register (2d/3d) acessing interface
|
||||||
|
*/
|
||||||
|
static inline void dwWriteReg(struct drm_map * map, u32 addr, u32 data)
|
||||||
|
{
|
||||||
|
#ifdef XGI_MMIO_DEBUG
|
||||||
|
DRM_INFO("mmio_map->handle = 0x%p, addr = 0x%x, data = 0x%x\n",
|
||||||
|
map->handle, addr, data);
|
||||||
|
#endif
|
||||||
|
DRM_WRITE32(map, addr, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int xgi_cmdlist_initialize(struct xgi_info * info, size_t size,
|
int xgi_cmdlist_initialize(struct xgi_info * info, size_t size,
|
||||||
struct drm_file * filp)
|
struct drm_file * filp)
|
||||||
{
|
{
|
||||||
|
|
|
@ -157,17 +157,4 @@ static inline u8 IN3CFB(struct drm_map * map, u8 index)
|
||||||
return DRM_READ8(map, 0x3CF);
|
return DRM_READ8(map, 0x3CF);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Graphic engine register (2d/3d) acessing interface
|
|
||||||
*/
|
|
||||||
static inline void dwWriteReg(struct drm_map * map, u32 addr, u32 data)
|
|
||||||
{
|
|
||||||
#ifdef XGI_MMIO_DEBUG
|
|
||||||
DRM_INFO("mmio_map->handle = 0x%p, addr = 0x%x, data = 0x%x\n",
|
|
||||||
map->handle, addr, data);
|
|
||||||
#endif
|
|
||||||
DRM_WRITE32(map, addr, data);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue