Changeset 948911d in mainline for uspace/lib/nic/include/nic_ev.h


Ignore:
Timestamp:
2012-01-24T02:27:43Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
230385c
Parents:
8afeb04 (diff), 2df6f6fe (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:

Mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/include/nic_ev.h

    r8afeb04 r948911d  
    11/*
    2  * Copyright (c) 2006 Josef Cejka
     2 * Copyright (c) 2011 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup kbd_port
    30  * @ingroup  kbd
     29/**
     30 * @addtogroup libnic
    3131 * @{
    3232 */
    33 
    34 /** @file
    35  * @brief i8042 port driver.
     33/**
     34 * @file
     35 * @brief Prototypes of default DDF NIC interface methods implementations
    3636 */
    3737
    38 #ifndef i8042_H_
    39 #define i8042_H_
     38#ifndef NIC_EV_H__
     39#define NIC_EV_H__
    4040
     41#include <async.h>
     42#include <nic/nic.h>
    4143#include <sys/types.h>
    42 #include <libarch/ddi.h>
    43 #include <async.h>
    4444
    45 /** i8042 HW I/O interface */
    46 struct i8042 {
    47         ioport8_t data;
    48         uint8_t pad[3];
    49         ioport8_t status;
    50 } __attribute__ ((packed));
    51 typedef struct i8042 i8042_t;
    52 
    53 /** Softstate structure, one for each serial port (primary and aux). */
    54 typedef struct {
    55         service_id_t service_id;
    56         async_sess_t *client_sess;
    57 } i8042_port_t;
     45extern int nic_ev_addr_changed(async_sess_t *, nic_device_id_t,
     46    const nic_address_t *);
     47extern int nic_ev_device_state(async_sess_t *, nic_device_id_t, sysarg_t);
     48extern int nic_ev_received(async_sess_t *, nic_device_id_t, void *, size_t);
    5849
    5950#endif
    6051
    61 /**
    62  * @}
     52/** @}
    6353 */
Note: See TracChangeset for help on using the changeset viewer.