Changeset d9ec808b in mainline for kernel/arch/sparc64/src/drivers/niagara.c
- Timestamp:
- 2017-11-27T08:25:37Z (5 years ago)
- Branches:
- lfn, master, serial
- Children:
- 59953b57
- Parents:
- 7b8f933
- git-author:
- Jiri Svoboda <jiri@…> (2017-11-26 21:24:27)
- git-committer:
- Jiri Svoboda <jiri@…> (2017-11-27 08:25:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/niagara.c
r7b8f933 rd9ec808b 42 42 #include <arch.h> 43 43 #include <mm/slab.h> 44 #include <arch/drivers/niagara_buf.h> 44 45 #include <arch/drivers/kbd.h> 45 46 #include <arch/sun4v/hypercall.h> … … 81 82 * buffer definition follows. 82 83 */ 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; 84 static volatile niagara_output_buffer_t __attribute__ ((aligned(PAGE_SIZE))) 85 output_buffer; 90 86 91 87 static parea_t outbuf_parea; … … 94 90 * Analogous to the output_buffer, see the previous definition. 95 91 */ 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; 92 static volatile niagara_input_buffer_t __attribute__ ((aligned(PAGE_SIZE))) 93 input_buffer; 103 94 104 95 static parea_t inbuf_parea;
Note: See TracChangeset
for help on using the changeset viewer.