ratp: implement generic command support
The RATP implementation now allows executing generic commands with a
binary interface: binary requests are received and binary responses
are returned.

Each command can define its own RATP request contents (e.g. to specify
command-specific options) as well as its own RATP response contents
(if any data is to be returned).

Each command is associated with a pair of numeric unique request and
response IDs, and for easy reference these IDs are maintained in the
common ratp_bb header. Modules may override generic implemented
commands or include their own new ones (as long as the numeric IDs
introduced are unique).

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1eddb0d commit ff612b866f301686fc490d076a138eaa65d79d4e
@Aleksander Morgado Aleksander Morgado authored on 24 Feb 2018
Sascha Hauer committed on 1 Mar 2018
Showing 16 changed files
View
arch/arm/lib32/barebox.lds.S
View
arch/arm/lib64/barebox.lds.S
View
arch/blackfin/boards/ipe337/barebox.lds.S
View
arch/mips/lib/barebox.lds.S
View
arch/nios2/cpu/barebox.lds.S
View
arch/openrisc/cpu/barebox.lds.S
View
arch/ppc/boards/pcm030/barebox.lds.S
View
arch/ppc/mach-mpc85xx/barebox.lds.S
View
arch/sandbox/board/barebox.lds.S
View
arch/x86/lib/barebox.lds.S
View
arch/x86/mach-efi/elf_ia32_efi.lds.S
View
arch/x86/mach-efi/elf_x86_64_efi.lds.S
View
common/module.lds.S
View
common/ratp.c
View
include/asm-generic/barebox.lds.h
View
include/ratp_bb.h