Ignore:
Timestamp:
2013-10-15T17:15:51Z (11 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e76fed9
Parents:
4d2dba7
Message:

Implement I/O operations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/include/arch/asm.h

    r4d2dba7 rf988a13  
    6565NO_TRACE static inline void pio_write_8(ioport8_t *port, uint8_t val)
    6666{
     67        *port = val;
    6768}
    6869
     
    7778NO_TRACE static inline void pio_write_16(ioport16_t *port, uint16_t val)
    7879{
     80        *port = val;
    7981}
    8082
     
    8991NO_TRACE static inline void pio_write_32(ioport32_t *port, uint32_t val)
    9092{
     93        *port = val;
    9194}
    9295
     
    101104NO_TRACE static inline uint8_t pio_read_8(ioport8_t *port)
    102105{
    103         return 0;
     106        return *port;
    104107}
    105108
     
    114117NO_TRACE static inline uint16_t pio_read_16(ioport16_t *port)
    115118{
    116         return 0;
     119        return *port;
    117120}
    118121
     
    127130NO_TRACE static inline uint32_t pio_read_32(ioport32_t *port)
    128131{
    129         return 0;
     132        return *port;
    130133}
    131134
Note: See TracChangeset for help on using the changeset viewer.