Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ddi.h

    raad43a8 r7ee7e6a  
    5252typedef volatile uint16_t ioport16_t;
    5353typedef volatile uint32_t ioport32_t;
    54 typedef volatile uint64_t ioport64_t;
     54
     55extern int device_assign_devno(void);
    5556
    5657extern int physmem_map(uintptr_t, size_t, unsigned int, void **);
     
    6869extern int pio_disable(void *, size_t);
    6970
    70 typedef void (*trace_fnc)(const volatile void *place, uint64_t val,
     71typedef void (*trace_fnc)(const volatile void *place, uint32_t val,
    7172    volatile void* base, size_t size, void *data, bool write);
    7273
    7374extern int pio_trace_enable(void *, size_t, trace_fnc, void *);
    74 extern void pio_trace_log(const volatile void *, uint64_t val, bool write);
     75extern void pio_trace_log(const volatile void *, uint32_t val, bool write);
    7576extern void pio_trace_disable(void *);
    7677
     
    7879extern void pio_write_16(ioport16_t *, uint16_t);
    7980extern void pio_write_32(ioport32_t *, uint32_t);
    80 extern void pio_write_64(ioport64_t *, uint64_t);
    8181
    8282extern uint8_t pio_read_8(const ioport8_t *);
    8383extern uint16_t pio_read_16(const ioport16_t *);
    8484extern uint32_t pio_read_32(const ioport32_t *);
    85 extern uint64_t pio_read_64(const ioport64_t *);
    8685
    8786static inline uint8_t pio_change_8(ioport8_t *reg, uint8_t val, uint8_t mask,
     
    112111}
    113112
    114 static inline uint64_t pio_change_64(ioport64_t *reg, uint64_t val,
    115     uint64_t mask, useconds_t delay)
    116 {
    117         uint64_t v = pio_read_64(reg);
    118         udelay(delay);
    119         pio_write_64(reg, (v & ~mask) | val);
    120         return v;
    121 }
    122 
    123113static inline uint8_t pio_set_8(ioport8_t *r, uint8_t v, useconds_t d)
    124114{
     
    132122{
    133123        return pio_change_32(r, v, 0, d);
    134 }
    135 static inline uint64_t pio_set_64(ioport64_t *r, uint64_t v, useconds_t d)
    136 {
    137         return pio_change_64(r, v, 0, d);
    138124}
    139125
     
    150136        return pio_change_32(r, 0, v, d);
    151137}
    152 static inline uint64_t pio_clear_64(ioport64_t *r, uint64_t v, useconds_t d)
    153 {
    154         return pio_change_64(r, 0, v, d);
    155 }
    156138
    157139#endif
Note: See TracChangeset for help on using the changeset viewer.