]> Zhao Yanbai Git Server - minix.git/commit
libchardriver: full API rewrite 67/967/2
authorDavid van Moolenbroek <david@minix3.org>
Mon, 2 Sep 2013 23:49:38 +0000 (01:49 +0200)
committerLionel Sambuc <lionel@minix3.org>
Sat, 1 Mar 2014 08:04:50 +0000 (09:04 +0100)
commit597151d9634e6bd7808674489a8ed96176b4e9b9
tree971d2592715cedc02a4b201bafc6ac3fa0d02769
parentb0ea2920e66a05437fb557977b48033a0977a982
libchardriver: full API rewrite

The new API now covers the entire character driver protocol, while
hiding all the message details. It should therefore be used by all
new character drivers. All existing drivers that already made use of
libchardriver have been changed to use the new API.

As one of the most important API changes, support for scatter and
gather transfers has been removed, as several key drivers already
did not support this, and it could be supported at the safecopy
level instead (for a future readv/writev).

Additional changes include:

- respond to block device open requests to avoid hanging VFS threads;
- add support for sef_cancel.

Change-Id: I1bab6c1cb66916c71b87aeb1db54a9bdf171fe6b
14 files changed:
drivers/bmp085/bmp085.c
drivers/fb/arch/earm/fb_arch.c
drivers/fb/fb.c
drivers/fb/fb.h
drivers/hello/hello.c
drivers/i2c/i2c.c
drivers/log/log.c
drivers/log/log.h
drivers/memory/memory.c
drivers/random/main.c
drivers/sht21/sht21.c
drivers/tsl2550/tsl2550.c
include/minix/chardriver.h
lib/libchardriver/chardriver.c