Changeset 00aece0 in mainline for uspace/drv/char/xtkbd/xtkbd.h
- Timestamp:
- 2012-02-18T16:47:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4449c6c
- Parents:
- bd5f3b7 (diff), f943dd3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/char/xtkbd/xtkbd.h
rbd5f3b7 r00aece0 1 1 /* 2 * Copyright (c) 20 06 Josef Cejka2 * Copyright (c) 2011 Jan Vesely 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /** @addtogroup kbd_port 30 * @ingroup kbd 28 /** @addtogroup drvkbd 31 29 * @{ 32 30 */ 33 34 31 /** @file 35 * @brief i8042 port driver.32 * @brief XT keyboard driver 36 33 */ 37 34 38 #ifndef i8042_H_39 #define i8042_H_35 #ifndef _XT_KBD_H_ 36 #define _XT_KBD_H_ 40 37 41 #include < libarch/ddi.h>42 #include < libarch/types.h>38 #include <ddf/driver.h> 39 #include <fibril.h> 43 40 44 /** i8042 HW I/O interface*/45 struct i8042{46 ioport8_t data;47 uint8_t pad[3];48 ioport8_t status;49 } __attribute__ ((packed)); 50 typedef struct i8042 i8042_t;41 /** PC/XT keyboard driver structure. */ 42 typedef struct { 43 ddf_fun_t *kbd_fun; /**< Keyboard function. */ 44 async_sess_t *parent_sess; /**< Connection to device providing data. */ 45 async_sess_t *client_sess; /**< Callback connection to client. */ 46 fid_t polling_fibril; /**< Fibril retrieving an parsing data. */ 47 } xt_kbd_t; 51 48 52 /** Softstate structure, one for each serial port (primary and aux). */ 53 typedef struct { 54 service_id_t service_id; 55 int client_phone; 56 } i8042_port_t; 49 int xt_kbd_init(xt_kbd_t *, ddf_dev_t *); 57 50 58 51 #endif 59 60 52 /** 61 53 * @} 62 */ 54 */
Note:
See TracChangeset
for help on using the changeset viewer.