Changeset 8fb1bf82 in mainline for uspace/lib/c/include/device/char.h
- Timestamp:
- 2010-11-25T13:42:50Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8df8415
- Parents:
- a93d79a (diff), eb667613 (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/device/char.h
ra93d79a r8fb1bf82 1 1 /* 2 * Copyright (c) 20 09 Lukas Mejdrech2 * Copyright (c) 2010 Lenka Trochtova 3 3 * All rights reserved. 4 4 * … … 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /** @addtogroup packet 30 * 28 29 /** @addtogroup libc 30 * @{ 31 31 */ 32 33 32 /** @file 34 33 */ 34 35 #ifndef LIBC_DEVICE_HW_RES_H_ 36 #define LIBC_DEVICE_HW_RES_H_ 35 37 36 #ifndef __NET_PACKET_LOCAL_H__ 37 #define __NET_PACKET_LOCAL_H__ 38 typedef enum { 39 CHAR_READ_DEV = 0, 40 CHAR_WRITE_DEV 41 } hw_res_funcs_t; 38 42 39 #include <net/packet.h> 40 41 /** @name Packet local interface 42 */ 43 /*@{*/ 44 45 extern int packet_translate_local(int, packet_ref, packet_id_t); 46 extern packet_t packet_get_4_local(int, size_t, size_t, size_t, size_t); 47 extern packet_t packet_get_1_local(int, size_t); 48 extern void pq_release_local(int, packet_id_t); 49 50 /*@}*/ 43 int read_dev(int dev_phone, void *buf, size_t len); 44 int write_dev(int dev_phone, void *buf, size_t len); 51 45 52 46 #endif
Note:
See TracChangeset
for help on using the changeset viewer.