Changeset b7068da in mainline for uspace/lib/nic/include/nic_ev.h
- Timestamp:
- 2012-02-09T20:35:12Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 591762c6
- Parents:
- 7cede12c (diff), 3d4750f (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/lib/nic/include/nic_ev.h
r7cede12c rb7068da 1 1 /* 2 * Copyright (c) 20 06 Josef Cejka2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup kbd_port30 * @ ingroup kbd29 /** 30 * @addtogroup libnic 31 31 * @{ 32 32 */ 33 34 /** @file35 * @brief i8042 port driver.33 /** 34 * @file 35 * @brief Prototypes of default DDF NIC interface methods implementations 36 36 */ 37 37 38 #ifndef i8042_H_39 #define i8042_H_38 #ifndef NIC_EV_H__ 39 #define NIC_EV_H__ 40 40 41 #include <async.h> 42 #include <nic/nic.h> 41 43 #include <sys/types.h> 42 #include <libarch/ddi.h>43 #include <async.h>44 44 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; 45 extern int nic_ev_addr_changed(async_sess_t *, const nic_address_t *); 46 extern int nic_ev_device_state(async_sess_t *, sysarg_t); 47 extern int nic_ev_received(async_sess_t *, void *, size_t); 58 48 59 49 #endif 60 50 61 /** 62 * @} 51 /** @} 63 52 */
Note:
See TracChangeset
for help on using the changeset viewer.