Annotation of nono/vm/bus.h, revision 1.1.1.2

1.1       root        1: //
                      2: // nono
                      3: // Copyright (C) 2017 [email protected]
                      4: //
                      5: 
                      6: #pragma once
                      7: 
                      8: #include "device.h"
                      9: 
1.1.1.2 ! root       10: extern uint64 vm_phys_read_8(uint32 addr);
        !            11: extern uint64 vm_phys_read_16(uint32 addr);
        !            12: extern uint64 vm_phys_read_32(uint32 addr);
        !            13: extern uint64 vm_phys_write_8(uint32 addr, uint32 data);
        !            14: extern uint64 vm_phys_write_16(uint32 addr, uint32 data);
        !            15: extern uint64 vm_phys_write_32(uint32 addr, uint32 data);
        !            16: extern uint64 vm_phys_peek_8(uint32 addr);
        !            17: 
        !            18: static inline uint64 m88200_phys_peek_32(uint32 addr)
        !            19: {
        !            20:        uint32 data;
        !            21: 
        !            22:        data  = vm_phys_peek_8(addr + 0) << 24;
        !            23:        data |= vm_phys_peek_8(addr + 1) << 16;
        !            24:        data |= vm_phys_peek_8(addr + 2) <<  8;
        !            25:        data |= vm_phys_peek_8(addr + 3);
        !            26:        return data;
        !            27: }
1.1       root       28: 
                     29: extern IODevice *devtable[256];

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.