- Code formatting and precise an info in a comment,
- Remove an unneeded commented call, and
- Mention that INT 15h functions C1h and C2h need to be implemented for PS/2 support.
svn path=/trunk/; revision=64167
#define BDA_SEGMENT 0x40
#define BIOS_SEGMENT 0xF000
#define BDA_SEGMENT 0x40
#define BIOS_SEGMENT 0xF000
-#define BIOS_EQUIPMENT_LIST 0x2C // HACK: Disable FPU for now
+// HACK: Disable FPU for now
+#define BIOS_EQUIPMENT_LIST 0x2C // Bit 2 set: Mouse present
+ case 0xC1:
+ case 0xC2:
+ {
+ DPRINT1("INT 15h, AH = 0x%02X must be implemented in order to support vendor mouse drivers\n");
+ break;
+ }
+
default:
{
DPRINT1("BIOS Function INT 15h, AH = 0x%02X NOT IMPLEMENTED\n",
default:
{
DPRINT1("BIOS Function INT 15h, AH = 0x%02X NOT IMPLEMENTED\n",
/* Initialize platform hardware (PIC/PIT chips, ...) */
BiosHwSetup();
/* Initialize platform hardware (PIC/PIT chips, ...) */
BiosHwSetup();
- /* Initialize the Keyboard and Video BIOS */
- if (!KbdBios32Initialize() || !VidBios32Initialize() || !MouseBios32Initialize()) return FALSE;
+ /* Initialize the Keyboard, Video and Mouse BIOS */
+ if (!KbdBios32Initialize() || !VidBios32Initialize() || !MouseBios32Initialize())
+ return FALSE;
///////////// MUST BE DONE AFTER IVT INITIALIZATION !! /////////////////////
///////////// MUST BE DONE AFTER IVT INITIALIZATION !! /////////////////////
WORD Character;
/* Get the scan code and virtual key code */
WORD Character;
/* Get the scan code and virtual key code */
- ScanCode = IOReadB(PS2_DATA_PORT);
+ ScanCode = IOReadB(PS2_DATA_PORT);
VirtualKey = MapVirtualKey(ScanCode & 0x7F, MAPVK_VSC_TO_VK);
/* Check if this is a key press or release */
VirtualKey = MapVirtualKey(ScanCode & 0x7F, MAPVK_VSC_TO_VK);
/* Check if this is a key press or release */
/* Set up the HW vector interrupts */
EnableHwIRQ(1, BiosKeyboardIrq);
/* Set up the HW vector interrupts */
EnableHwIRQ(1, BiosKeyboardIrq);
- // EnableHwIRQ(12, BiosMouseIrq);