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

Changeset db8568a in mainline


Ignore:
Timestamp:
2019-05-04T12:24:02Z (11 months ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
5773e82
Parents:
7aebcda
Message:

Use ioport8_t for CUDA registers

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/genarch/drivers/via-cuda/cuda.h

    r7aebcda rdb8568a  
    4242
    4343typedef struct {
    44         uint8_t b;
     44        ioport8_t b;
    4545        uint8_t pad0[0x1ff];
    4646
    47         uint8_t a;
     47        ioport8_t a;
    4848        uint8_t pad1[0x1ff];
    4949
    50         uint8_t dirb;
     50        ioport8_t dirb;
    5151        uint8_t pad2[0x1ff];
    5252
    53         uint8_t dira;
     53        ioport8_t dira;
    5454        uint8_t pad3[0x1ff];
    5555
    56         uint8_t t1cl;
     56        ioport8_t t1cl;
    5757        uint8_t pad4[0x1ff];
    5858
    59         uint8_t t1ch;
     59        ioport8_t t1ch;
    6060        uint8_t pad5[0x1ff];
    6161
    62         uint8_t t1ll;
     62        ioport8_t t1ll;
    6363        uint8_t pad6[0x1ff];
    6464
    65         uint8_t t1lh;
     65        ioport8_t t1lh;
    6666        uint8_t pad7[0x1ff];
    6767
    68         uint8_t t2cl;
     68        ioport8_t t2cl;
    6969        uint8_t pad8[0x1ff];
    7070
    71         uint8_t t2ch;
     71        ioport8_t t2ch;
    7272        uint8_t pad9[0x1ff];
    7373
    74         uint8_t sr;
     74        ioport8_t sr;
    7575        uint8_t pad10[0x1ff];
    7676
    77         uint8_t acr;
     77        ioport8_t acr;
    7878        uint8_t pad11[0x1ff];
    7979
    80         uint8_t pcr;
     80        ioport8_t pcr;
    8181        uint8_t pad12[0x1ff];
    8282
    83         uint8_t ifr;
     83        ioport8_t ifr;
    8484        uint8_t pad13[0x1ff];
    8585
    86         uint8_t ier;
     86        ioport8_t ier;
    8787        uint8_t pad14[0x1ff];
    8888
    89         uint8_t anh;
     89        ioport8_t anh;
    9090        uint8_t pad15[0x1ff];
    9191} cuda_t;
  • uspace/drv/bus/adb/cuda_adb/cuda_hw.h

    r7aebcda rdb8568a  
    3737#define CUDA_HW_H_
    3838
     39#include <ddi.h>
     40
    3941#include <stdint.h>
    4042
    4143typedef struct cuda_regs {
    42         uint8_t b;
     44        ioport8_t b;
    4345        uint8_t pad0[0x1ff];
    4446
    45         uint8_t a;
     47        ioport8_t a;
    4648        uint8_t pad1[0x1ff];
    4749
    48         uint8_t dirb;
     50        ioport8_t dirb;
    4951        uint8_t pad2[0x1ff];
    5052
    51         uint8_t dira;
     53        ioport8_t dira;
    5254        uint8_t pad3[0x1ff];
    5355
    54         uint8_t t1cl;
     56        ioport8_t t1cl;
    5557        uint8_t pad4[0x1ff];
    5658
    57         uint8_t t1ch;
     59        ioport8_t t1ch;
    5860        uint8_t pad5[0x1ff];
    5961
    60         uint8_t t1ll;
     62        ioport8_t t1ll;
    6163        uint8_t pad6[0x1ff];
    6264
    63         uint8_t t1lh;
     65        ioport8_t t1lh;
    6466        uint8_t pad7[0x1ff];
    6567
    66         uint8_t t2cl;
     68        ioport8_t t2cl;
    6769        uint8_t pad8[0x1ff];
    6870
    69         uint8_t t2ch;
     71        ioport8_t t2ch;
    7072        uint8_t pad9[0x1ff];
    7173
    72         uint8_t sr;
     74        ioport8_t sr;
    7375        uint8_t pad10[0x1ff];
    7476
    75         uint8_t acr;
     77        ioport8_t acr;
    7678        uint8_t pad11[0x1ff];
    7779
    78         uint8_t pcr;
     80        ioport8_t pcr;
    7981        uint8_t pad12[0x1ff];
    8082
    81         uint8_t ifr;
     83        ioport8_t ifr;
    8284        uint8_t pad13[0x1ff];
    8385
    84         uint8_t ier;
     86        ioport8_t ier;
    8587        uint8_t pad14[0x1ff];
    8688
    87         uint8_t anh;
     89        ioport8_t anh;
    8890        uint8_t pad15[0x1ff];
    8991} cuda_regs_t;
Note: See TracChangeset for help on using the changeset viewer.