summaryrefslogtreecommitdiffstats
path: root/common/module.lds.S
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-02-24 16:01:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-01 09:30:57 +0100
commitff612b866f301686fc490d076a138eaa65d79d4e (patch)
tree691f2fcbfabec8f9c11e66ec8f38bad0832fc333 /common/module.lds.S
parent1eddb0d3821d7bb368fa6b092b980b89fc47db28 (diff)
downloadbarebox-ff612b866f301686fc490d076a138eaa65d79d4e.tar.gz
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>
Diffstat (limited to 'common/module.lds.S')
-rw-r--r--common/module.lds.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/module.lds.S b/common/module.lds.S
index a03d04f..f3dbb12 100644
--- a/common/module.lds.S
+++ b/common/module.lds.S
@@ -35,6 +35,8 @@ SECTIONS
.got : { *(.got) }
.barebox_cmd : { BAREBOX_CMDS }
+ .barebox_ratp_cmd : { BAREBOX_RATP_CMDS }
+
. = ALIGN(4);
.bss : { *(.bss) }
}