event/octeontx: create and free timer adapter
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Mon, 9 Apr 2018 21:00:27 +0000 (02:30 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 16 Apr 2018 09:27:15 +0000 (11:27 +0200)
commitf874c1eb1519185feba05a0542413492e5f56ae9
treedd1f60fd458b4caa62727c25d29864e1eb84b44e
parentfd5baf09cdf9170e0f92a112fd0ef19c29649330
event/octeontx: create and free timer adapter

When the application requests to create a timer device, Octeontx TIM
create does the following:
- Get the requested TIMvf ring based on adapter_id.
- Verify the config parameters supplied.
- Allocate memory required for
  * Buckets based on min and max timeout supplied.
  * Allocate the chunk pool based on the number of timers.
- Clear the interrupts.

On Free:
- Free the allocated bucket and chunk memory.
- Free private data used by TIMvf.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
doc/guides/eventdevs/octeontx.rst
drivers/event/octeontx/Makefile
drivers/event/octeontx/meson.build
drivers/event/octeontx/ssovf_evdev.c
drivers/event/octeontx/timvf_evdev.c [new file with mode: 0644]
drivers/event/octeontx/timvf_evdev.h