Changeset 8bb9540 in mainline for uspace/drv/char/i8042


Ignore:
Timestamp:
2012-01-01T22:01:47Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1ff1ee1
Parents:
1dea6d7
Message:

i8042, ps2mouse, xtkbd: Drop optical separators.

Requested on ML.

Location:
uspace/drv/char/i8042
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/i8042/i8042.c

    r1dea6d7 r8bb9540  
    5757static int i8042_write_aux(ddf_fun_t *, char *, size_t);
    5858static int i8042_read_aux(ddf_fun_t *, char *, size_t);
    59 /*----------------------------------------------------------------------------*/
     59
    6060/** Primary port interface structure. */
    6161static char_dev_ops_t kbd_iface = {
     
    6363    .write = i8042_write_kbd,
    6464};
    65 /*----------------------------------------------------------------------------*/
     65
    6666/** Auxiliary port interface structure. */
    6767static char_dev_ops_t aux_iface = {
     
    6969    .write = i8042_write_aux,
    7070};
    71 /*----------------------------------------------------------------------------*/
     71
    7272/** Primary port function operations. */
    7373static ddf_dev_ops_t kbd_ops = {
    7474        .interfaces[CHAR_DEV_IFACE] = &kbd_iface
    7575};
    76 /*----------------------------------------------------------------------------*/
     76
    7777/** Auxiliary port function operations. */
    7878static ddf_dev_ops_t aux_ops = {
     
    123123        }
    124124};
    125 /*----------------------------------------------------------------------------*/
     125
    126126/** Wait until it is safe to write to the device. */
    127127static void wait_ready(i8042_t *dev)
     
    130130        while (pio_read_8(&dev->regs->status) & i8042_INPUT_FULL);
    131131}
    132 /*----------------------------------------------------------------------------*/
     132
    133133/** Interrupt handler routine.
    134134 * Writes new data to the corresponding buffer.
     
    150150        buffer_write(buffer, data);
    151151}
    152 /*----------------------------------------------------------------------------*/
     152
    153153/** Initialize i8042 driver structure.
    154154 * @param dev Driver structure to initialize.
     
    287287        return EOK;
    288288}
    289 /*----------------------------------------------------------------------------*/
     289
    290290/** Write data to i8042 primary port.
    291291 * @param fun DDF function.
     
    307307        return size;
    308308}
    309 /*----------------------------------------------------------------------------*/
     309
    310310/** Read data from i8042 primary port.
    311311 * @param fun DDF function.
     
    327327        return size;
    328328}
    329 /*----------------------------------------------------------------------------*/
     329
    330330/** Write data to i8042 auxiliary port.
    331331 * @param fun DDF function.
     
    348348        return size;
    349349}
    350 /*----------------------------------------------------------------------------*/
     350
    351351/** Read data from i8042 auxiliary port.
    352352 * @param fun DDF function.
  • uspace/drv/char/i8042/main.c

    r1dea6d7 r8bb9540  
    4949    uintptr_t *io_reg_address, size_t *io_reg_size, int *kbd, int *mouse);
    5050static int i8042_dev_add(ddf_dev_t *device);
    51 /*----------------------------------------------------------------------------*/
     51
    5252/** DDF driver operations. */
    5353static driver_ops_t i8042_driver_ops = {
    5454        .dev_add = i8042_dev_add,
    5555};
    56 /*----------------------------------------------------------------------------*/
     56
    5757/** DDF driver. */
    5858static driver_t i8042_driver = {
     
    6060        .driver_ops = &i8042_driver_ops
    6161};
    62 /*----------------------------------------------------------------------------*/
     62
    6363/** Initialize global driver structures (NONE).
    6464 *
     
    7575        return ddf_driver_main(&i8042_driver);
    7676}
    77 /*----------------------------------------------------------------------------*/
     77
    7878/** Initialize a new ddf driver instance of i8042 driver
    7979 *
     
    115115        return EOK;
    116116}
    117 /*----------------------------------------------------------------------------*/
     117
    118118/** Get address of I/O registers.
    119119 *
Note: See TracChangeset for help on using the changeset viewer.