HAL
Posted: Tue Jan 01, 2008 7:51 am
I'm wondering the best way to work on my HAL.
But I'm stuck on the following thoughts:
If my drivers are loadable modules I want to dynamically link them with a driver library (which exposes sections of the kernel most useful for driver development). Except to load the dynamic library I need a disk driver and an FS driver, which are dynamically linked to the library. If I don't use a dynamic library, how will drivers know the location of kernel functions and classes? (I want to try to keep away from kernel<->kernel interrupts unless absolutely necessary.)
How do I handle DMA, USB, etc within drivers? My OS has a DMA driver, and I'm trying to think of a way I can neatly handle things like DMA and USB and making them accessible through my disk drivers with a consistant interface.
But I'm stuck on the following thoughts:
If my drivers are loadable modules I want to dynamically link them with a driver library (which exposes sections of the kernel most useful for driver development). Except to load the dynamic library I need a disk driver and an FS driver, which are dynamically linked to the library. If I don't use a dynamic library, how will drivers know the location of kernel functions and classes? (I want to try to keep away from kernel<->kernel interrupts unless absolutely necessary.)
How do I handle DMA, USB, etc within drivers? My OS has a DMA driver, and I'm trying to think of a way I can neatly handle things like DMA and USB and making them accessible through my disk drivers with a consistant interface.