Ignore:
File:
1 edited

Legend:

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

    r8049b79 r3e6a98c5  
    4040#include <sys/time.h>
    4141#include <abi/ddi/irq.h>
    42 #include <device/hw_res.h>
    43 #include <device/hw_res_parsed.h>
    44 #include <device/pio_window.h>
    4542#include <task.h>
    46 
    47 #define DMAMEM_16MiB  ((uintptr_t) UINT64_C(0xffffffffff000000))
    48 #define DMAMEM_4GiB   ((uintptr_t) UINT64_C(0xffffffff00000000))
    4943
    5044extern int device_assign_devno(void);
    5145
    52 extern int physmem_map(uintptr_t, size_t, unsigned int, void **);
     46extern int physmem_map(void *, size_t, unsigned int, void **);
    5347
    54 extern int dmamem_map(void *, size_t, unsigned int, unsigned int, uintptr_t *);
    55 extern int dmamem_map_anonymous(size_t, uintptr_t, unsigned int, unsigned int,
    56     uintptr_t *, void **);
     48extern int dmamem_map(void *, size_t, unsigned int, unsigned int, void **);
     49extern int dmamem_map_anonymous(size_t, unsigned int, unsigned int, void **,
     50    void **);
    5751extern int dmamem_unmap(void *, size_t);
    5852extern int dmamem_unmap_anonymous(void *);
    5953
    60 extern int pio_enable_range(addr_range_t *, void **);
    61 extern int pio_enable_resource(pio_window_t *, hw_resource_t *, void **);
    6254extern int pio_enable(void *, size_t, void **);
    6355
     
    7769extern uint32_t pio_read_32(const ioport32_t *);
    7870
    79 static inline uint8_t pio_change_8(ioport8_t *reg, uint8_t val, uint8_t mask,
    80     useconds_t delay)
     71static inline uint8_t pio_change_8(
     72    ioport8_t *reg, uint8_t val, uint8_t mask, useconds_t delay)
    8173{
    8274        uint8_t v = pio_read_8(reg);
     
    8678}
    8779
    88 static inline uint16_t pio_change_16(ioport16_t *reg, uint16_t val,
    89     uint16_t mask, useconds_t delay)
     80static inline uint16_t pio_change_16(
     81    ioport16_t *reg, uint16_t val, uint16_t mask, useconds_t delay)
    9082{
    9183        uint16_t v = pio_read_16(reg);
     
    9587}
    9688
    97 static inline uint32_t pio_change_32(ioport32_t *reg, uint32_t val,
    98     uint32_t mask, useconds_t delay)
     89static inline uint32_t pio_change_32(
     90    ioport32_t *reg, uint32_t val, uint32_t mask, useconds_t delay)
    9991{
    10092        uint32_t v = pio_read_32(reg);
Note: See TracChangeset for help on using the changeset viewer.