Video driver

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
pepito

Video driver

Post by pepito »

Sorry, more about the 'device manager'...

The translation from 'sector-number' to 'head-cylinder-sector' must be calculated into the 'disk driver', or it must be calculated for the 'file system module'?

What is the meaning of 'device-independent-software'?

pepito
TheUbu

RE:Video driver

Post by TheUbu »

pepito,

Slow down for a minute there as many layers involved with say reading from a disk driver. Let me create a simple example and we will follow it in steps.

First lets fopen("/COPYRIGHT","r"); now that will trigger the VFS layer which in turn will find the mount point. When it finds the MP it will do an fopen via that filesystems module which will in turn access the drive. Now let us think about this the file is at an sector offset onto the drive however the file system will probably give you a real sector offset into the drive so you will most likely be passing an LBA address or sector offset into the driver. The driver then should either do your CHS conversion or just use the LBA which most new drives can accept.


-Christopher
Post Reply