Changeset 8fb1bf82 in mainline for uspace/lib/c/include/device/char.h


Ignore:
Timestamp:
2010-11-25T13:42:50Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/device/char.h

    ra93d79a r8fb1bf82  
    11/*
    2  * Copyright (c) 2009 Lukas Mejdrech
     2 * Copyright (c) 2010 Lenka Trochtova
    33 * All rights reserved.
    44 *
     
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
    28 
    29 /** @addtogroup packet
    30  *  @{
     28 
     29 /** @addtogroup libc
     30 * @{
    3131 */
    32 
    3332/** @file
    3433 */
     34 
     35#ifndef LIBC_DEVICE_HW_RES_H_
     36#define LIBC_DEVICE_HW_RES_H_
    3537
    36 #ifndef __NET_PACKET_LOCAL_H__
    37 #define __NET_PACKET_LOCAL_H__
     38typedef enum {
     39        CHAR_READ_DEV = 0,
     40        CHAR_WRITE_DEV 
     41} hw_res_funcs_t;
    3842
    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 /*@}*/
     43int read_dev(int dev_phone, void *buf, size_t len);
     44int write_dev(int dev_phone, void *buf, size_t len);
    5145
    5246#endif
Note: See TracChangeset for help on using the changeset viewer.