Changeset e78136a in mainline


Ignore:
Timestamp:
2009-02-21T21:15:12Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7919cd5
Parents:
0c33687a
Message:

Add missing PIO functions to ppc32.

File:
1 edited

Legend:

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

    r0c33687a re78136a  
    152152static inline void pio_write_8(ioport8_t *port, uint8_t v)
    153153{
    154         /* XXX */
     154        *port = v;     
     155}
     156
     157static inline void pio_write_16(ioport16_t *port, uint16_t v)
     158{
     159        *port = v;     
     160}
     161
     162static inline void pio_write_32(ioport32_t *port, uint32_t v)
     163{
     164        *port = v;     
    155165}
    156166
    157167static inline uint8_t pio_read_8(ioport8_t *port)
    158168{
    159         return 0;       /* XXX */
     169        return *port;
     170}
     171
     172static inline uint16_t pio_read_16(ioport16_t *port)
     173{
     174        return *port;
     175}
     176
     177static inline uint32_t pio_read_32(ioport32_t *port)
     178{
     179        return *port;
    160180}
    161181
Note: See TracChangeset for help on using the changeset viewer.