microkernel and constant driver interface
Posted: Thu Jan 03, 2008 5:48 am
I have driver interface, which works fine for end devices (e.g. storage devices, input devices, etc), but things like my DMA driver exist within the kernel as a global object my other drivers depend on. It works, but it seems to steer away from my consistent interface.
I'm planning on rewriting my driver interface, and using an event based system. I also wish to move my drivers out of kernel land (including DMA). I'll leave process management (including loading/unloading), memory management, and event management inside of the kernel since these aren't really 'drivers' as such and I don't want to abstract them away.
What I want to know, is how do microkernels handle drivers like DMA? How does a floppy driver find the DMA driver (I don't want to make it a 'special-case' driver, or else I'll be doing that for PCI, USB, etc, and my driver-interface will loose that feeling of consistency) and interact with it? How do drivers in general work in a microkernel environment?
I'm planning on rewriting my driver interface, and using an event based system. I also wish to move my drivers out of kernel land (including DMA). I'll leave process management (including loading/unloading), memory management, and event management inside of the kernel since these aren't really 'drivers' as such and I don't want to abstract them away.
What I want to know, is how do microkernels handle drivers like DMA? How does a floppy driver find the DMA driver (I don't want to make it a 'special-case' driver, or else I'll be doing that for PCI, USB, etc, and my driver-interface will loose that feeling of consistency) and interact with it? How do drivers in general work in a microkernel environment?