Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2017-11-27T08:25:37Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
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)
Message:

Niagara console driver buddies should share buffer definition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/niagara.c

    r7b8f933 rd9ec808b  
    4242#include <arch.h>
    4343#include <mm/slab.h>
     44#include <arch/drivers/niagara_buf.h>
    4445#include <arch/drivers/kbd.h>
    4546#include <arch/sun4v/hypercall.h>
     
    8182 * buffer definition follows.
    8283 */
    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;
     84static volatile niagara_output_buffer_t __attribute__ ((aligned(PAGE_SIZE)))
     85    output_buffer;
    9086
    9187static parea_t outbuf_parea;
     
    9490 * Analogous to the output_buffer, see the previous definition.
    9591 */
    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;
     92static volatile niagara_input_buffer_t __attribute__ ((aligned(PAGE_SIZE)))
     93    input_buffer;
    10394
    10495static parea_t inbuf_parea;
Note: See TracChangeset for help on using the changeset viewer.