Changes in uspace/drv/test1/char.c [424558a:83a2f43] in mainline
- File:
-
- 1 edited
-
uspace/drv/test1/char.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test1/char.c
r424558a r83a2f43 33 33 #include <errno.h> 34 34 #include <mem.h> 35 #include < char.h>35 #include <ops/char_dev.h> 36 36 37 37 #include "test1.h" 38 38 39 static int impl_char_read(d evice_t *dev, char *buf, size_t count) {39 static int impl_char_read(ddf_fun_t *fun, char *buf, size_t count) { 40 40 memset(buf, 0, count); 41 41 return count; 42 42 } 43 43 44 static int imp_char_write(d evice_t *dev, char *buf, size_t count) {44 static int imp_char_write(ddf_fun_t *fun, char *buf, size_t count) { 45 45 return count; 46 46 } 47 47 48 static char_ iface_t char_interface= {48 static char_dev_ops_t char_dev_ops = { 49 49 .read = &impl_char_read, 50 50 .write = &imp_char_write 51 51 }; 52 52 53 d evice_ops_t char_device_ops = {54 .interfaces[CHAR_DEV_IFACE] = &char_ interface53 ddf_dev_ops_t char_device_ops = { 54 .interfaces[CHAR_DEV_IFACE] = &char_dev_ops 55 55 }; 56 56
Note:
See TracChangeset
for help on using the changeset viewer.
