diff options
author | Michael Neuling <mikey@neuling.org> | 2016-11-02 18:07:39 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-11-02 18:24:09 +1100 |
commit | 30f86e5b6ad45fffdd83dc0322d0128fe0db64c3 (patch) | |
tree | f6f18c3717e0255e05bfe317df756519046584a1 /platforms/mambo/mambo.c | |
parent | e62137c4a117e98c359da5d99d7394d3718a9acf (diff) | |
download | skiboot-30f86e5b6ad45fffdd83dc0322d0128fe0db64c3.zip skiboot-30f86e5b6ad45fffdd83dc0322d0128fe0db64c3.tar.gz skiboot-30f86e5b6ad45fffdd83dc0322d0128fe0db64c3.tar.bz2 |
mambo: Make call thru command defines consistent
No functional change
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/mambo/mambo.c')
-rw-r--r-- | platforms/mambo/mambo.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/platforms/mambo/mambo.c b/platforms/mambo/mambo.c index 28e67c0..8d4820f 100644 --- a/platforms/mambo/mambo.c +++ b/platforms/mambo/mambo.c @@ -69,33 +69,33 @@ static inline unsigned long callthru3(int command, unsigned long arg1, #define BD_SECT_SZ 512 +/* Mambo callthru commands */ #define SIM_WRITE_CONSOLE_CODE 0 #define SIM_EXIT_CODE 31 #define SIM_READ_CONSOLE_CODE 60 #define SIM_GET_TIME_CODE 70 -#define BOGUS_DISK_READ 116 -#define BOGUS_DISK_WRITE 117 -#define BOGUS_DISK_INFO 118 - -#define CALL_TCL 86 +#define SIM_CALL_TCL 86 +#define SIM_BOGUS_DISK_READ 116 +#define SIM_BOGUS_DISK_WRITE 117 +#define SIM_BOGUS_DISK_INFO 118 static inline int callthru_disk_read(int id, void *buf, unsigned long sect, unsigned long nrsect) { - return callthru3(BOGUS_DISK_READ, (unsigned long)buf, sect, + return callthru3(SIM_BOGUS_DISK_READ, (unsigned long)buf, sect, (nrsect << 16) | id); } static inline int callthru_disk_write(int id, void *buf, unsigned long sect, unsigned long nrsect) { - return callthru3(BOGUS_DISK_WRITE, (unsigned long)buf, sect, + return callthru3(SIM_BOGUS_DISK_WRITE, (unsigned long)buf, sect, (nrsect << 16) | id); } static inline unsigned long callthru_disk_info(int op, int id) { - return callthru2(BOGUS_DISK_INFO, (unsigned long)op, + return callthru2(SIM_BOGUS_DISK_INFO, (unsigned long)op, (unsigned long)id); } @@ -104,7 +104,7 @@ extern unsigned long callthru_tcl(const char *str, int len); unsigned long callthru_tcl(const char *str, int len) { prlog(PR_DEBUG, "Sending TCL to Mambo, cmd: %s\n", str); - return callthru2(CALL_TCL, (unsigned long)str, (unsigned long)len); + return callthru2(SIM_CALL_TCL, (unsigned long)str, (unsigned long)len); } struct bogus_disk_info { |