Changeset 00aece0 in mainline for uspace/drv/char/xtkbd/xtkbd.h


Ignore:
Timestamp:
2012-02-18T16:47:38Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/xtkbd/xtkbd.h

    rbd5f3b7 r00aece0  
    11/*
    2  * Copyright (c) 2006 Josef Cejka
     2 * Copyright (c) 2011 Jan Vesely
    33 * All rights reserved.
    44 *
     
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 
    29 /** @addtogroup kbd_port
    30  * @ingroup  kbd
     28/** @addtogroup drvkbd
    3129 * @{
    3230 */
    33 
    3431/** @file
    35  * @brief i8042 port driver.
     32 * @brief XT keyboard driver
    3633 */
    3734
    38 #ifndef i8042_H_
    39 #define i8042_H_
     35#ifndef _XT_KBD_H_
     36#define _XT_KBD_H_
    4037
    41 #include <libarch/ddi.h>
    42 #include <libarch/types.h>
     38#include <ddf/driver.h>
     39#include <fibril.h>
    4340
    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. */
     42typedef 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;
    5148
    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;
     49int xt_kbd_init(xt_kbd_t *, ddf_dev_t *);
    5750
    5851#endif
    59 
    6052/**
    6153 * @}
    62  */ 
     54 */
Note: See TracChangeset for help on using the changeset viewer.