예제 #1
0
static int
cuda_init(void)
{
    if (via == NULL)
        return -ENODEV;
#ifndef CONFIG_PPC
    return via_cuda_start();
#endif
    return 0;
}
예제 #2
0
static int __init
cuda_init(void)
{
#ifdef CONFIG_PPC
    if (via == NULL)
	return -ENODEV;
    return 0;
#else 
    int err = cuda_init_via();
    if (err) {
	printk(KERN_ERR "cuda_init_via() failed\n");
	return -ENODEV;
    }

    return via_cuda_start();
#endif
}
예제 #3
0
static int __init
cuda_init(void)
{
#ifdef CONFIG_PPC
    if (via == NULL)
	return -ENODEV;
    return 0;
#else 
    int err = cuda_init_via();
    if (err) {
	printk(KERN_ERR "cuda_init_via() failed\n");
	return -ENODEV;
    }
    out_8(&via[IER], IER_SET|SR_INT); /* enable interrupt from SR */

    return via_cuda_start();
#endif
}