integrated USB mouse driver
This commit is contained in:
@@ -45,6 +45,7 @@ SECTIONS
|
|||||||
OBJDIR/pci.o(.text)
|
OBJDIR/pci.o(.text)
|
||||||
OBJDIR/usb.o(.text)
|
OBJDIR/usb.o(.text)
|
||||||
OBJDIR/usb_mem.o(.text)
|
OBJDIR/usb_mem.o(.text)
|
||||||
|
OBJDIR/usb_mouse.o(.text)
|
||||||
OBJDIR/ohci-hcd.o(.text)
|
OBJDIR/ohci-hcd.o(.text)
|
||||||
OBJDIR/ehci-hcd.o(.text)
|
OBJDIR/ehci-hcd.o(.text)
|
||||||
OBJDIR/wait.o(.text)
|
OBJDIR/wait.o(.text)
|
||||||
|
|||||||
@@ -1094,11 +1094,11 @@ void usb_scan_devices(void *priv)
|
|||||||
debug_printf("No USB keyboard found\r\n");
|
debug_printf("No USB keyboard found\r\n");
|
||||||
else
|
else
|
||||||
debug_printf("USB HID keyboard driver installed\r\n");
|
debug_printf("USB HID keyboard driver installed\r\n");
|
||||||
|
#endif /* _NOT_USED */
|
||||||
if (drv_usb_mouse_init() < 0)
|
if (drv_usb_mouse_init() < 0)
|
||||||
debug_printf("No USB mouse found\r\n");
|
debug_printf("No USB mouse found\r\n");
|
||||||
else
|
else
|
||||||
debug_printf("USB HID mouse driver installed\r\n");
|
debug_printf("USB HID mouse driver installed\r\n");
|
||||||
#endif /* _NOT_USED */
|
|
||||||
}
|
}
|
||||||
debug_printf("Scan end\r\n");
|
debug_printf("Scan end\r\n");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "bas_printf.h"
|
#include "bas_printf.h"
|
||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
|
#include "exceptions.h"
|
||||||
|
|
||||||
#undef USB_MOUSE_DEBUG
|
#undef USB_MOUSE_DEBUG
|
||||||
#ifdef USB_MOUSE_DEBUG
|
#ifdef USB_MOUSE_DEBUG
|
||||||
@@ -34,7 +35,6 @@
|
|||||||
extern void ltoa(char *buf, long n, unsigned long base);
|
extern void ltoa(char *buf, long n, unsigned long base);
|
||||||
extern void call_mousevec(unsigned char *data, void (**mousevec)(void *));
|
extern void call_mousevec(unsigned char *data, void (**mousevec)(void *));
|
||||||
//extern void call_ikbdvec(unsigned char code, _IOREC *iorec, void (**ikbdvec)());
|
//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 *new;
|
||||||
static unsigned char old[8];
|
static unsigned char old[8];
|
||||||
|
|||||||
Reference in New Issue
Block a user