Changes in uspace/lib/c/include/ddi.h [8049b79:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ddi.h
r8049b79 r3e6a98c5 40 40 #include <sys/time.h> 41 41 #include <abi/ddi/irq.h> 42 #include <device/hw_res.h>43 #include <device/hw_res_parsed.h>44 #include <device/pio_window.h>45 42 #include <task.h> 46 47 #define DMAMEM_16MiB ((uintptr_t) UINT64_C(0xffffffffff000000))48 #define DMAMEM_4GiB ((uintptr_t) UINT64_C(0xffffffff00000000))49 43 50 44 extern int device_assign_devno(void); 51 45 52 extern int physmem_map( uintptr_t, size_t, unsigned int, void **);46 extern int physmem_map(void *, size_t, unsigned int, void **); 53 47 54 extern int dmamem_map(void *, size_t, unsigned int, unsigned int, uintptr_t*);55 extern int dmamem_map_anonymous(size_t, u intptr_t, unsigned int, unsigned int,56 uintptr_t *,void **);48 extern int dmamem_map(void *, size_t, unsigned int, unsigned int, void **); 49 extern int dmamem_map_anonymous(size_t, unsigned int, unsigned int, void **, 50 void **); 57 51 extern int dmamem_unmap(void *, size_t); 58 52 extern int dmamem_unmap_anonymous(void *); 59 53 60 extern int pio_enable_range(addr_range_t *, void **);61 extern int pio_enable_resource(pio_window_t *, hw_resource_t *, void **);62 54 extern int pio_enable(void *, size_t, void **); 63 55 … … 77 69 extern uint32_t pio_read_32(const ioport32_t *); 78 70 79 static inline uint8_t pio_change_8( ioport8_t *reg, uint8_t val, uint8_t mask,80 useconds_t delay)71 static inline uint8_t pio_change_8( 72 ioport8_t *reg, uint8_t val, uint8_t mask, useconds_t delay) 81 73 { 82 74 uint8_t v = pio_read_8(reg); … … 86 78 } 87 79 88 static inline uint16_t pio_change_16( ioport16_t *reg, uint16_t val,89 uint16_t mask, useconds_t delay)80 static inline uint16_t pio_change_16( 81 ioport16_t *reg, uint16_t val, uint16_t mask, useconds_t delay) 90 82 { 91 83 uint16_t v = pio_read_16(reg); … … 95 87 } 96 88 97 static inline uint32_t pio_change_32( ioport32_t *reg, uint32_t val,98 uint32_t mask, useconds_t delay)89 static inline uint32_t pio_change_32( 90 ioport32_t *reg, uint32_t val, uint32_t mask, useconds_t delay) 99 91 { 100 92 uint32_t v = pio_read_32(reg);
Note:
See TracChangeset
for help on using the changeset viewer.