summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:53:52 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 06:18:40 +0900
commitcd76b756ea59e4f2e367c6d943932fa7d18b4681 (patch)
treea47a7ac3df69c933f9198d40e7f99062ba567a2c /i386
parent835ca96b6e9fa43f3f655f676777670085814537 (diff)
i386/i386at/kd_mouse.c: remove forward declarations
* i386/i386at/kd_mouse.c (mouseintr, mouse_enqueue, mouse_read_done): Remove forward declarations. (mouseintr): Define argument type. * i386/i386at/kd_mouse.h (mouseintr, mouse_enqueue, mouse_read_done): Add prototypes.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/kd_mouse.c6
-rw-r--r--i386/i386at/kd_mouse.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c
index 99fc266..5a80474 100644
--- a/i386/i386at/kd_mouse.c
+++ b/i386/i386at/kd_mouse.c
@@ -101,8 +101,6 @@ u_char lastbuttons; /* previous state of mouse buttons */
#define MOUSE_DOWN 0
#define MOUSE_ALL_UP 0x7
-void mouseintr();
-void mouse_enqueue();
int mouse_baud = BCNT1200;
boolean_t mouse_char_cmd = FALSE; /* mouse response is to cmd */
@@ -319,8 +317,6 @@ io_return_t mousegetstat(dev, flavor, data, count)
/*
* mouseread - dequeue and return any queued events.
*/
-boolean_t mouse_read_done(); /* forward */
-
int
mouseread(dev, ior)
dev_t dev;
@@ -397,7 +393,7 @@ boolean_t mouse_read_done(ior)
* mouseintr - Get a byte and pass it up for handling. Called at SPLKD.
*/
void
-mouseintr(unit)
+mouseintr(int unit)
{
unsigned short base_addr = cominfo[unit]->address;
unsigned char id, ls;
diff --git a/i386/i386at/kd_mouse.h b/i386/i386at/kd_mouse.h
index 0f09418..ad07c6c 100644
--- a/i386/i386at/kd_mouse.h
+++ b/i386/i386at/kd_mouse.h
@@ -64,4 +64,7 @@ extern io_return_t mousegetstat(
int *data,
unsigned int *count);
+void mouseintr(int unit);
+boolean_t mouse_read_done(io_req_t ior);
+
#endif /* _KD_MOUSE_H_ */