void PL050_Init(Uint32 KeyboardBase, Uint8 KeyboardIRQ, Uint32 MouseBase, Uint8 MouseIRQ)
{
if( KeyboardBase ) {
void PL050_Init(Uint32 KeyboardBase, Uint8 KeyboardIRQ, Uint32 MouseBase, Uint8 MouseIRQ)
{
if( KeyboardBase ) {
}
if( MouseBase ) {
gpPL050_MouseBase = (void*)MM_MapHWPages(MouseBase, 1);
IRQ_AddHandler(MouseIRQ, PL050_MouseHandler, NULL);
}
if( MouseBase ) {
gpPL050_MouseBase = (void*)MM_MapHWPages(MouseBase, 1);
IRQ_AddHandler(MouseIRQ, PL050_MouseHandler, NULL);
//PL050_WriteMouseData(0xF6); // Set Default Settings
PL050_WriteMouseData(0xD4);
PL050_WriteMouseData(0xF4); // Enable Packets
//PL050_WriteMouseData(0xF6); // Set Default Settings
PL050_WriteMouseData(0xD4);
PL050_WriteMouseData(0xF4); // Enable Packets