I have been tring to find that out, it would appear that the keybourd registers have a lot to do with it but I can not get any real information from it.
If you simply want the BIOS trap then I will have a look for you at some point but if (like me) you need to know how to access the port directly then I do not know.