2007-03-26 03:43:48 -06:00
|
|
|
#include "drmP.h"
|
|
|
|
#include "drm.h"
|
|
|
|
#include "nouveau_drv.h"
|
|
|
|
#include "nouveau_drm.h"
|
|
|
|
|
|
|
|
int
|
2007-07-12 23:09:31 -06:00
|
|
|
nv04_timer_init(struct drm_device *dev)
|
2007-03-26 03:43:48 -06:00
|
|
|
{
|
2007-07-12 23:09:31 -06:00
|
|
|
struct drm_nouveau_private *dev_priv = dev->dev_private;
|
2007-03-26 03:43:48 -06:00
|
|
|
|
|
|
|
NV_WRITE(NV04_PTIMER_INTR_EN_0, 0x00000000);
|
|
|
|
NV_WRITE(NV04_PTIMER_INTR_0, 0xFFFFFFFF);
|
|
|
|
|
|
|
|
NV_WRITE(NV04_PTIMER_NUMERATOR, 0x00000008);
|
|
|
|
NV_WRITE(NV04_PTIMER_DENOMINATOR, 0x00000003);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2007-07-12 23:09:31 -06:00
|
|
|
nv04_timer_takedown(struct drm_device *dev)
|
2007-03-26 03:43:48 -06:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|