Changeset 6843a9c in mainline for uspace/lib/c/include/inet/inetping.h
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (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/c/include/inet/inetping.h
rba72f2b r6843a9c 1 1 /* 2 * Copyright (c) 20 06 Josef Cejka2 * Copyright (c) 2012 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup kbd_port 30 * @ingroup kbd 29 /** @addtogroup libc 31 30 * @{ 32 31 */ 33 34 32 /** @file 35 * @brief i8042 port driver.36 33 */ 37 34 38 #ifndef i8042_H_39 #define i8042_H_35 #ifndef LIBC_INET_INETPING_H_ 36 #define LIBC_INET_INETPING_H_ 40 37 38 #include <inet/inet.h> 41 39 #include <sys/types.h> 42 #include <libarch/ddi.h>43 #include <async.h>44 40 45 /** i8042 HW I/O interface */ 46 struct i8042 { 47 i oport8_t data;48 uint 8_t pad[3];49 ioport8_t status;50 } __attribute__ ((packed));51 typedef struct i8042 i8042_t;41 typedef struct { 42 inet_addr_t src; 43 inet_addr_t dest; 44 uint16_t seq_no; 45 void *data; 46 size_t size; 47 } inetping_sdu_t; 52 48 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; 49 typedef struct inetping_ev_ops { 50 int (*recv)(inetping_sdu_t *); 51 } inetping_ev_ops_t; 52 53 extern int inetping_init(inetping_ev_ops_t *); 54 extern int inetping_send(inetping_sdu_t *); 55 extern int inetping_get_srcaddr(inet_addr_t *, inet_addr_t *); 56 58 57 59 58 #endif 60 59 61 /** 62 * @} 60 /** @} 63 61 */
Note:
See TracChangeset
for help on using the changeset viewer.