Re: [PATCH v6, 4/4] drivers: misc: new driver sram_uapi for user level SRAM access

2020-04-18 Thread Arnd Bergmann
On Sat, Apr 18, 2020 at 6:22 PM Wang Wenhu wrote: > +#define DRIVER_NAME"sram_uapi" > + > +#define SRAM_UAPI_IOCTL_SET_SRAM_TYPE 0 > +#define SRAM_UAPI_IOCTL_ALLOC 1 > +#define SRAM_UAPI_IOCTL_FREE 2 > + > +struct res_info { > + u32 offset; > + u32 size; > +};

Re: [PATCH v6, 4/4] drivers: misc: new driver sram_uapi for user level SRAM access

2020-04-18 Thread Arnd Bergmann
On Sat, Apr 18, 2020 at 6:22 PM Wang Wenhu wrote: > > A generic User-Kernel interface that allows a misc device created > by it to support file-operations of ioctl and mmap to access SRAM > memory from user level. Different kinds of SRAM alloction and free > APIs could be added to the available

[PATCH v6, 4/4] drivers: misc: new driver sram_uapi for user level SRAM access

2020-04-18 Thread Wang Wenhu
A generic User-Kernel interface that allows a misc device created by it to support file-operations of ioctl and mmap to access SRAM memory from user level. Different kinds of SRAM alloction and free APIs could be added to the available array and could be configured from user level. Signed-off-by: