h0bby1 wrote:
wouldn't it be possible to handle most of the device initialisation code with an aml method instead of programming it in asm
But the initialization is just a small part of driver's job. So the low level code is still required. And what about initialization for a specific environment? I mean there are possible many initial values in device registers and a particular set of values is environment dependent. For example a ps2 controller has mouse and keyboard parts, but if user uses USB mouse, then initialization of mouse part is useless, and if user uses USB keyboard, then all the ps2 controller is useless.