beaglelogic.h: add more ioctl calls and create enums for attrs

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: Add version information & load-time alloc unit setting

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: buffer management changes

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: Add loading initial configuration from the device tree

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: Implement remaining IOCTL calls

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: Implement llseek to reset
Kernel Driver: Fix behaviour of sysfs state attribute

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: sysfs attributes code cleanup

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: cleanup core data structures

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: add lasterror field & sysfs attr

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: implement overrun detection

This allows the driver to flag a warning log & lasterror when a new
buffer comes in before the previous one has been copied out completely.

Also modify IRQ to prevent false buffer overrun on the last buffer
readout.

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: add logging & cleanup start & stop

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
Kernel Driver: more cleanups

Change loglevel of select messages to dev_dbg

Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>