Changeset 7bdd725 in mainline


Ignore:
Timestamp:
2009-02-21T20:36:37Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
21df2e5
Parents:
bffa876e
Message:

Add missing PIO functions for mips32.

File:
1 edited

Legend:

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

    rbffa876e r7bdd725  
    7878static inline void pio_write_8(ioport8_t *port, uint8_t v)
    7979{
    80         /* XXX */
     80        *port = v;     
     81}
     82
     83static inline void pio_write_16(ioport16_t *port, uint16_t v)
     84{
     85        *port = v;     
     86}
     87
     88static inline void pio_write_32(ioport32_t *port, uint32_t v)
     89{
     90        *port = v;     
    8191}
    8292
    8393static inline uint8_t pio_read_8(ioport8_t *port)
    8494{
    85         return 0;       /* XXX */
     95        return *port;
     96}
     97
     98static inline uint16_t pio_read_16(ioport16_t *port)
     99{
     100        return *port;
     101}
     102
     103static inline uint32_t pio_read_32(ioport32_t *port)
     104{
     105        return *port;
    86106}
    87107
Note: See TracChangeset for help on using the changeset viewer.