Changes in kernel/arch/sparc64/src/drivers/niagara.c [d9ec808b:24abb85d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/niagara.c
rd9ec808b r24abb85d 42 42 #include <arch.h> 43 43 #include <mm/slab.h> 44 #include <arch/drivers/niagara_buf.h>45 44 #include <arch/drivers/kbd.h> 46 45 #include <arch/sun4v/hypercall.h> … … 82 81 * buffer definition follows. 83 82 */ 84 static volatile niagara_output_buffer_t __attribute__ ((aligned(PAGE_SIZE))) 85 output_buffer; 83 #define OUTPUT_BUFFER_SIZE ((PAGE_SIZE) - 2 * 8) 84 85 static volatile struct { 86 uint64_t read_ptr; 87 uint64_t write_ptr; 88 char data[OUTPUT_BUFFER_SIZE]; 89 } __attribute__ ((packed)) __attribute__ ((aligned(PAGE_SIZE))) output_buffer; 86 90 87 91 static parea_t outbuf_parea; … … 90 94 * Analogous to the output_buffer, see the previous definition. 91 95 */ 92 static volatile niagara_input_buffer_t __attribute__ ((aligned(PAGE_SIZE))) 93 input_buffer; 96 #define INPUT_BUFFER_SIZE ((PAGE_SIZE) - 2 * 8) 97 98 static volatile struct { 99 uint64_t write_ptr; 100 uint64_t read_ptr; 101 char data[INPUT_BUFFER_SIZE]; 102 } __attribute__ ((packed)) __attribute__ ((aligned(PAGE_SIZE))) input_buffer; 94 103 95 104 static parea_t inbuf_parea;
Note:
See TracChangeset
for help on using the changeset viewer.