Exemplo n.º 1
0
KGSL_API void
kgsl_intr_isr(gsl_device_t *device)
{
    if (device->intr.flags & GSL_FLAGS_INITIALIZED) {
	kgsl_device_active(device);
	device->ftbl.intr_isr(device);
    }
}
Exemplo n.º 2
0
int kgsl_device_clock(gsl_deviceid_t id, int enable)
{
	int ret = GSL_SUCCESS;
	gsl_device_t *device;

	device = &gsl_driver.device[id-1];       // device_id is 1 based
	if (device->flags & GSL_FLAGS_INITIALIZED) {
		if (enable)
			kgsl_device_active(device);
		else
			kgsl_device_inactive((unsigned long)device);
	} else {
		printk(KERN_ERR "%s: Dev %d clock is already off!\n", __func__, id);
		ret = GSL_FAILURE;
	}
	
	return ret;
}
Exemplo n.º 3
0
KGSL_API void
kgsl_intr_isr()
{
    gsl_deviceid_t  device_id;
    gsl_device_t    *device;

    // loop through the devices, and call device specific isr
    for (device_id = (gsl_deviceid_t)(GSL_DEVICE_ANY + 1); device_id <= GSL_DEVICE_MAX; device_id++)
    {
        device = &gsl_driver.device[device_id-1];    // device_id is 1 based

        if (device->intr.flags & GSL_FLAGS_INITIALIZED)
        {
	    kgsl_device_active(device);
            device->ftbl.intr_isr(device);
        }
    }
}