On 4 Mar 2016, at 07:28, Jesus Sanchez-Palencia <jesus.sanchez-palencia(a)intel.com> wrote:Hi again,On Thu, 3 Mar 2016 16:17:45 -0300Jesus Sanchez-Palencia <jesus.sanchez-palencia(a)intel.com> wrote:Hi everyone,On Thu, 3 Mar 2016 13:33:16 -0500Benjamin Walsh <benjamin.walsh(a)windriver.com> wrote:What we have on device.h currently is:/* Common Error Codes devices can provide */#define DEV_OK 0 /* No error */#define DEV_FAIL 1 /* General operation failure */#define DEV_INVALID_OP 2 /* Invalid operation */#define DEV_INVALID_CONF 3 /* Invalid configuration */#define DEV_USED 4 /* Device controller in use */#define DEV_NO_ACCESS 5 /* Controller not accessible */#define DEV_NO_SUPPORT 6 /* Device type not supported */#define DEV_NOT_CONFIG 7 /* Device not configured */ After some more f2f feedback, André's reply (thanks!), and merging with previousstate/feedback we now have:DEV_OK = 0 DEV_FAIL = -EIO DEV_INVALID_OP = -ENOTSUPDEV_INVALID_CONF = -EINVALDEV_USED = -EBUSYDEV_NO_ACCESS = -EACCESDEV_NO_SUPPORT = -ENODEVDEV_NOT_CONFIG = -EPERMDEV_NOT_IMPLEMENTED = -ENOSYSTime to move this to gerrit for proper reviews, right?!
Hi everyone,On Thu, 3 Mar 2016 13:33:16 -0500Benjamin Walsh <benjamin.walsh(a)windriver.com> wrote:What we have on device.h currently is:/* Common Error Codes devices can provide */#define DEV_OK 0 /* No error */#define DEV_FAIL 1 /* General operation failure */#define DEV_INVALID_OP 2 /* Invalid operation */#define DEV_INVALID_CONF 3 /* Invalid configuration */#define DEV_USED 4 /* Device controller in use */#define DEV_NO_ACCESS 5 /* Controller not accessible */#define DEV_NO_SUPPORT 6 /* Device type not supported */#define DEV_NOT_CONFIG 7 /* Device not configured */
What we have on device.h currently is:/* Common Error Codes devices can provide */#define DEV_OK 0 /* No error */#define DEV_FAIL 1 /* General operation failure */#define DEV_INVALID_OP 2 /* Invalid operation */#define DEV_INVALID_CONF 3 /* Invalid configuration */#define DEV_USED 4 /* Device controller in use */#define DEV_NO_ACCESS 5 /* Controller not accessible */#define DEV_NO_SUPPORT 6 /* Device type not supported */#define DEV_NOT_CONFIG 7 /* Device not configured */
thanks,jesus
© 2023 Groups.io