Changeset ce79069b in mainline


Ignore:
Timestamp:
2011-01-09T17:02:19Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36a6e11
Parents:
f724e82
Message:

Remove char.h to char_dev.h (the _dev is part of the interface name in case of char_dev, unlike hw_res).

Location:
uspace
Files:
7 edited
2 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/hw/misc/virtchar1.c

    rf724e82 rce79069b  
    4040#include <sys/types.h>
    4141#include <async.h>
    42 #include <device/char.h>
     42#include <device/char_dev.h>
    4343#include <str.h>
    4444#include <vfs/vfs.h>
    4545#include <sys/stat.h>
    4646#include <fcntl.h>
    47 #include <device/char.h>
    4847#include "../../tester.h"
    4948
  • uspace/app/tester/hw/serial/serial1.c

    rf724e82 rce79069b  
    4545#include <ipc/devman.h>
    4646#include <devman.h>
    47 #include <device/char.h>
     47#include <device/char_dev.h>
    4848#include <str.h>
    4949#include <ipc/serial_ctl.h>
  • uspace/lib/c/Makefile

    rf724e82 rce79069b  
    5959        generic/devman.c \
    6060        generic/device/hw_res.c \
    61         generic/device/char.c \
     61        generic/device/char_dev.c \
    6262        generic/event.c \
    6363        generic/errno.c \
  • uspace/lib/c/generic/device/char_dev.c

    rf724e82 rce79069b  
    3434
    3535#include <ipc/dev_iface.h>
    36 #include <device/char.h>
     36#include <device/char_dev.h>
    3737#include <errno.h>
    3838#include <async.h>
  • uspace/lib/c/include/device/char_dev.h

    rf724e82 rce79069b  
    3333 */
    3434
    35 #ifndef LIBC_DEVICE_HW_RES_H_
    36 #define LIBC_DEVICE_HW_RES_H_
     35#ifndef LIBC_DEVICE_CHAR_DEV_H_
     36#define LIBC_DEVICE_CHAR_DEV_H_
    3737
    3838typedef enum {
    3939        CHAR_DEV_READ = 0,
    4040        CHAR_DEV_WRITE
    41 } hw_res_funcs_t;
     41} char_dev_method_t;
    4242
    4343ssize_t char_dev_read(int dev_phone, void *buf, size_t len);
  • uspace/lib/c/include/device/hw_res.h

    rf724e82 rce79069b  
    4343        HW_RES_GET_RESOURCE_LIST = 0,
    4444        HW_RES_ENABLE_INTERRUPT
    45 } hw_res_funcs_t;
     45} hw_res_method_t;
    4646
    4747/** HW resource types */
  • uspace/lib/drv/generic/remote_char.c

    rf724e82 rce79069b  
    4646
    4747/** Remote character interface operations. */
    48 static remote_iface_func_ptr_t remote_char_iface_ops [] = {
     48static remote_iface_func_ptr_t remote_char_iface_ops[] = {
    4949        &remote_char_read,
    5050        &remote_char_write
     
    7474remote_char_read(device_t *dev, void *iface, ipc_callid_t callid,
    7575    ipc_call_t *call)
    76 {       
     76{
    7777        char_iface_t *char_iface = (char_iface_t *) iface;
    7878        ipc_callid_t cid;
     
    136136                ipc_answer_0(callid, ENOTSUP);
    137137                return;
    138         }       
     138        }
    139139       
    140140        if (len > MAX_CHAR_RW_COUNT)
  • uspace/lib/drv/include/driver.h

    rf724e82 rce79069b  
    4141#include <ipc/devman.h>
    4242#include <ipc/dev_iface.h>
    43 #include <device/hw_res.h>
    44 #include <device/char.h>
    4543#include <assert.h>
    4644#include <ddi.h>
  • uspace/lib/drv/include/resource.h

    rf724e82 rce79069b  
    3636#define LIBDRV_RESOURCE_H_
    3737
    38 #include "driver.h"
     38#include <device/hw_res.h>
     39#include <sys/types.h>
    3940
    4041typedef struct resource_iface {
Note: See TracChangeset for help on using the changeset viewer.