| 1 |
/* |
| 2 |
* Keyboard event handlers |
| 3 |
* Copyright (C) 2006 Free Software Foundation, Inc. |
| 4 |
* |
| 5 |
* This program is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 2, or (at your option) |
| 8 |
* any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program; if not, write to the Free Software |
| 17 |
* Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
* |
| 19 |
* Author: Barry deFreese. |
| 20 |
*/ |
| 21 |
/* |
| 22 |
* Keyboard event handling functions. |
| 23 |
* |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef _KD_EVENT_H_ |
| 27 |
#define _KD_EVENT_H_ |
| 28 |
|
| 29 |
#include <sys/types.h> |
| 30 |
#include <device/io_req.h> |
| 31 |
#include <i386at/kd.h> |
| 32 |
|
| 33 |
extern void X_kdb_enter (void); |
| 34 |
|
| 35 |
extern void X_kdb_exit (void); |
| 36 |
|
| 37 |
extern int kbdopen(dev_t dev, int flags, io_req_t ior); |
| 38 |
extern void kbdclose(dev_t dev, int flags); |
| 39 |
extern int kbdread(dev_t dev, io_req_t ior); |
| 40 |
|
| 41 |
extern io_return_t kbdgetstat( |
| 42 |
dev_t dev, |
| 43 |
dev_flavor_t flavor, |
| 44 |
dev_status_t data, |
| 45 |
mach_msg_type_number_t *count); |
| 46 |
|
| 47 |
extern io_return_t kbdsetstat( |
| 48 |
dev_t dev, |
| 49 |
dev_flavor_t flavor, |
| 50 |
dev_status_t data, |
| 51 |
mach_msg_type_number_t count); |
| 52 |
|
| 53 |
extern void kd_enqsc(Scancode sc); |
| 54 |
|
| 55 |
void kbd_enqueue(kd_event *ev); |
| 56 |
|
| 57 |
io_return_t X_kdb_enter_init(u_int *data, u_int count); |
| 58 |
io_return_t X_kdb_exit_init(u_int *data, u_int count); |
| 59 |
|
| 60 |
boolean_t kbd_read_done(io_req_t ior); |
| 61 |
|
| 62 |
#endif /* _KD_EVENT_H_ */ |