Re: [linux-fbdev] Fwd: Re: module depencies during startup

From: James Simmons (jsimmons@linux-fbdev.org)
Date: Wed Mar 28 2001 - 10:55:15 EST


>> After moving directories agp and drm from char into video and adapting
>>the Makefiles the agp is still initialized far after i810fb. :-(
>
>fbmem_init() <- chr_dev_init() <- device_init() <- partition_setup()
>
>partition_setup() seems to be part of $(CORE_FILES) in the main Makefile.

Hum. Could the following work?

In mem.c

int __init chr_dev_init(void)
{
        if (devfs_register_chrdev(MEM_MAJOR,"mem",&memory_fops))
                printk("unable to get major %d for memory devs\n", MEM_MAJOR);
        memory_devfs_register();
        rand_initialize();
        raw_init();
#ifdef CONFIG_I2C
        i2c_init_all();
#endif
#ifdef CONFIG_AGP
        agp_init();
#endif
#if defined (CONFIG_FB)
        fbmem_init();
#endif

>Of course we can still wonder how graphics hardware is related to disk
>partitions...

My other personal favorite is consolemap_init in drivers/block/genhd.c.

MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.

James Simmons [jsimmons@linux-fbdev.org] ____/|
fbdev/console/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U
http://linuxconsole.sourceforge.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 31 2001 - 21:00:18 EST