aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-11-30 17:33:29 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-30 17:33:29 -0500
commite62cac1fd035b4cde707285008499dbe71955a86 (patch)
tree214447e9efd4dc49f5bb707c7c1c0073a3df9803 /arch/sparc/include
parent91921fef7c658b12de53376b312d071d757f7770 (diff)
sparc: Pass buffer pointer all the way down to prom_{get,put}char().
This gets us closer to being able to eliminate the use of dynamic and stack based buffers, so that we can adhere to the "no buffer addresses above 4GB" rule for PROM calls. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r--arch/sparc/include/asm/openprom.h2
-rw-r--r--arch/sparc/include/asm/oplib_32.h4
-rw-r--r--arch/sparc/include/asm/oplib_64.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/sparc/include/asm/openprom.h b/arch/sparc/include/asm/openprom.h
index 81cd43432dc0..47eaafad15ce 100644
--- a/arch/sparc/include/asm/openprom.h
+++ b/arch/sparc/include/asm/openprom.h
@@ -39,7 +39,7 @@ struct linux_dev_v2_funcs {
39 int (*v2_dev_open)(char *devpath); 39 int (*v2_dev_open)(char *devpath);
40 void (*v2_dev_close)(int d); 40 void (*v2_dev_close)(int d);
41 int (*v2_dev_read)(int d, char *buf, int nbytes); 41 int (*v2_dev_read)(int d, char *buf, int nbytes);
42 int (*v2_dev_write)(int d, char *buf, int nbytes); 42 int (*v2_dev_write)(int d, const char *buf, int nbytes);
43 int (*v2_dev_seek)(int d, int hi, int lo); 43 int (*v2_dev_seek)(int d, int hi, int lo);
44 44
45 /* Never issued (multistage load support) */ 45 /* Never issued (multistage load support) */
diff --git a/arch/sparc/include/asm/oplib_32.h b/arch/sparc/include/asm/oplib_32.h
index 49fe4266f86a..4c2539243e46 100644
--- a/arch/sparc/include/asm/oplib_32.h
+++ b/arch/sparc/include/asm/oplib_32.h
@@ -105,10 +105,10 @@ extern int prom_getprev(void);
105/* Character operations to/from the console.... */ 105/* Character operations to/from the console.... */
106 106
107/* Blocking get character from console. */ 107/* Blocking get character from console. */
108extern char prom_getchar(void); 108extern void prom_getchar(char *buf);
109 109
110/* Blocking put character to console. */ 110/* Blocking put character to console. */
111extern void prom_putchar(char character); 111extern void prom_putchar(const char *buf);
112 112
113/* Prom's internal routines, don't use in kernel/boot code. */ 113/* Prom's internal routines, don't use in kernel/boot code. */
114extern void prom_printf(const char *fmt, ...); 114extern void prom_printf(const char *fmt, ...);
diff --git a/arch/sparc/include/asm/oplib_64.h b/arch/sparc/include/asm/oplib_64.h
index d541de4b6844..384e558a6a3c 100644
--- a/arch/sparc/include/asm/oplib_64.h
+++ b/arch/sparc/include/asm/oplib_64.h
@@ -97,10 +97,10 @@ extern unsigned char prom_get_idprom(char *idp_buffer, int idpbuf_size);
97/* Character operations to/from the console.... */ 97/* Character operations to/from the console.... */
98 98
99/* Blocking get character from console. */ 99/* Blocking get character from console. */
100extern char prom_getchar(void); 100extern void prom_getchar(char *buf);
101 101
102/* Blocking put character to console. */ 102/* Blocking put character to console. */
103extern void prom_putchar(char character); 103extern void prom_putchar(const char *buf);
104 104
105/* Prom's internal routines, don't use in kernel/boot code. */ 105/* Prom's internal routines, don't use in kernel/boot code. */
106extern void prom_printf(const char *fmt, ...); 106extern void prom_printf(const char *fmt, ...);