integrated USB mouse driver

This commit is contained in:
Markus Fröschle
2013-12-11 15:46:32 +00:00
parent 9a59cc0788
commit a2d85bb27b
3 changed files with 3 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ SECTIONS
OBJDIR/pci.o(.text)
OBJDIR/usb.o(.text)
OBJDIR/usb_mem.o(.text)
OBJDIR/usb_mouse.o(.text)
OBJDIR/ohci-hcd.o(.text)
OBJDIR/ehci-hcd.o(.text)
OBJDIR/wait.o(.text)

View File

@@ -1094,11 +1094,11 @@ void usb_scan_devices(void *priv)
debug_printf("No USB keyboard found\r\n");
else
debug_printf("USB HID keyboard driver installed\r\n");
#endif /* _NOT_USED */
if (drv_usb_mouse_init() < 0)
debug_printf("No USB mouse found\r\n");
else
debug_printf("USB HID mouse driver installed\r\n");
#endif /* _NOT_USED */
}
debug_printf("Scan end\r\n");
}

View File

@@ -23,6 +23,7 @@
#include <stdint.h>
#include "bas_printf.h"
#include "usb.h"
#include "exceptions.h"
#undef USB_MOUSE_DEBUG
#ifdef USB_MOUSE_DEBUG
@@ -34,7 +35,6 @@
extern void ltoa(char *buf, long n, unsigned long base);
extern void call_mousevec(unsigned char *data, void (**mousevec)(void *));
//extern void call_ikbdvec(unsigned char code, _IOREC *iorec, void (**ikbdvec)());
extern int asm_set_ipl(int level);
static unsigned char *new;
static unsigned char old[8];