Changeset ce79069b in mainline
- Timestamp:
- 2011-01-09T17:02:19Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36a6e11
- Parents:
- f724e82
- Location:
- uspace
- Files:
-
- 7 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/hw/misc/virtchar1.c
rf724e82 rce79069b 40 40 #include <sys/types.h> 41 41 #include <async.h> 42 #include <device/char .h>42 #include <device/char_dev.h> 43 43 #include <str.h> 44 44 #include <vfs/vfs.h> 45 45 #include <sys/stat.h> 46 46 #include <fcntl.h> 47 #include <device/char.h>48 47 #include "../../tester.h" 49 48 -
uspace/app/tester/hw/serial/serial1.c
rf724e82 rce79069b 45 45 #include <ipc/devman.h> 46 46 #include <devman.h> 47 #include <device/char .h>47 #include <device/char_dev.h> 48 48 #include <str.h> 49 49 #include <ipc/serial_ctl.h> -
uspace/lib/c/Makefile
rf724e82 rce79069b 59 59 generic/devman.c \ 60 60 generic/device/hw_res.c \ 61 generic/device/char .c \61 generic/device/char_dev.c \ 62 62 generic/event.c \ 63 63 generic/errno.c \ -
uspace/lib/c/generic/device/char_dev.c
rf724e82 rce79069b 34 34 35 35 #include <ipc/dev_iface.h> 36 #include <device/char .h>36 #include <device/char_dev.h> 37 37 #include <errno.h> 38 38 #include <async.h> -
uspace/lib/c/include/device/char_dev.h
rf724e82 rce79069b 33 33 */ 34 34 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_ 37 37 38 38 typedef enum { 39 39 CHAR_DEV_READ = 0, 40 40 CHAR_DEV_WRITE 41 } hw_res_funcs_t;41 } char_dev_method_t; 42 42 43 43 ssize_t char_dev_read(int dev_phone, void *buf, size_t len); -
uspace/lib/c/include/device/hw_res.h
rf724e82 rce79069b 43 43 HW_RES_GET_RESOURCE_LIST = 0, 44 44 HW_RES_ENABLE_INTERRUPT 45 } hw_res_ funcs_t;45 } hw_res_method_t; 46 46 47 47 /** HW resource types */ -
uspace/lib/drv/generic/remote_char.c
rf724e82 rce79069b 46 46 47 47 /** Remote character interface operations. */ 48 static remote_iface_func_ptr_t remote_char_iface_ops 48 static remote_iface_func_ptr_t remote_char_iface_ops[] = { 49 49 &remote_char_read, 50 50 &remote_char_write … … 74 74 remote_char_read(device_t *dev, void *iface, ipc_callid_t callid, 75 75 ipc_call_t *call) 76 { 76 { 77 77 char_iface_t *char_iface = (char_iface_t *) iface; 78 78 ipc_callid_t cid; … … 136 136 ipc_answer_0(callid, ENOTSUP); 137 137 return; 138 } 138 } 139 139 140 140 if (len > MAX_CHAR_RW_COUNT) -
uspace/lib/drv/include/driver.h
rf724e82 rce79069b 41 41 #include <ipc/devman.h> 42 42 #include <ipc/dev_iface.h> 43 #include <device/hw_res.h>44 #include <device/char.h>45 43 #include <assert.h> 46 44 #include <ddi.h> -
uspace/lib/drv/include/resource.h
rf724e82 rce79069b 36 36 #define LIBDRV_RESOURCE_H_ 37 37 38 #include "driver.h" 38 #include <device/hw_res.h> 39 #include <sys/types.h> 39 40 40 41 typedef struct resource_iface {
Note:
See TracChangeset
for help on using the changeset viewer.