diff options
| author | Ben Skeggs <skeggsb@gmail.com> | 2007-08-06 21:45:18 +1000 | 
|---|---|---|
| committer | Ben Skeggs <skeggsb@gmail.com> | 2007-08-06 21:45:18 +1000 | 
| commit | 97770db72040dc032130413e0cdabc1777560a75 (patch) | |
| tree | a3b31266e5049c059ba8e9146a911a6bda402efe /shared-core/nv04_instmem.c | |
| parent | beaa0c9a28b30a6ba3292184d04875b6a597e433 (diff) | |
nouveau: Various internal and external API changes
1. DRM_NOUVEAU_GPUOBJ_FREE
	Used to free GPU objects.  The obvious usage case is for Gr objects,
	but notifiers can also be destroyed in the same way.
	GPU objects gain a destructor method and private data fields with
	this change, so other specialised cases (like notifiers) can be
	implemented on top of gpuobjs.
2. DRM_NOUVEAU_CHANNEL_FREE
3. DRM_NOUVEAU_CARD_INIT
	Ideally we'd do init during module load, but this isn't currently
	possible.  Doing init during firstopen() is bad as X has a love of
	opening/closing the DRM many times during startup.  Once the
	modesetting-101 branch is merged this can go away.
	IRQs are enabled in nouveau_card_init() now, rather than having the
	X server call drmCtlInstHandler().  We'll need this for when we give
	the kernel module its own channel.
4. DRM_NOUVEAU_GETPARAM
	Add CHIPSET_ID value, which will return the chipset id derived
	from NV_PMC_BOOT_0.
4. Use list_* in a few places, rather than home-brewed stuff.
Diffstat (limited to 'shared-core/nv04_instmem.c')
| -rw-r--r-- | shared-core/nv04_instmem.c | 10 | 
1 files changed, 0 insertions, 10 deletions
| diff --git a/shared-core/nv04_instmem.c b/shared-core/nv04_instmem.c index 35b20abd..36aa6200 100644 --- a/shared-core/nv04_instmem.c +++ b/shared-core/nv04_instmem.c @@ -93,13 +93,6 @@ int nv04_instmem_init(struct drm_device *dev)  	nv04_instmem_determine_amount(dev);  	nv04_instmem_configure_fixed_tables(dev); -	if ((ret = nouveau_gpuobj_new_fake(dev, dev_priv->ramht_offset, -						dev_priv->ramht_size, -						NVOBJ_FLAG_ZERO_ALLOC | -						NVOBJ_FLAG_ALLOW_NO_REFS, -						&dev_priv->ramht, NULL))) -		return ret; -  	/* Create a heap to manage RAMIN allocations, we don't allocate  	 * the space that was reserved for RAMHT/FC/RO.  	 */ @@ -117,9 +110,6 @@ int nv04_instmem_init(struct drm_device *dev)  void  nv04_instmem_takedown(struct drm_device *dev)  { -	struct drm_nouveau_private *dev_priv = dev->dev_private; - -	nouveau_gpuobj_del(dev, &dev_priv->ramht);  }  int | 
