Changeset b5c2f56 in mainline
- Timestamp:
- 2012-11-04T12:41:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d27a9c8f
- Parents:
- ef93167
- Location:
- uspace
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootamdm37x/rootamdm37x.c
ref93167 rb5c2f56 64 64 } amdm37x_t; 65 65 66 static void log( volatile void *place, uint32_t val, volatile void* base, size_t size, void *data, bool write)66 static void log(const volatile void *place, uint32_t val, volatile void* base, size_t size, void *data, bool write) 67 67 { 68 68 printf("PIO %s: %p(%p) %#"PRIx32"\n", write ? "WRITE" : "READ", -
uspace/lib/c/arch/abs32le/include/ddi.h
ref93167 rb5c2f56 51 51 } 52 52 53 static inline uint8_t arch_pio_read_8( ioport8_t *port)53 static inline uint8_t arch_pio_read_8(const ioport8_t *port) 54 54 { 55 55 return *port; 56 56 } 57 57 58 static inline uint16_t arch_pio_read_16( ioport16_t *port)58 static inline uint16_t arch_pio_read_16(const ioport16_t *port) 59 59 { 60 60 return *port; 61 61 } 62 62 63 static inline uint32_t arch_pio_read_32( ioport32_t *port)63 static inline uint32_t arch_pio_read_32(const ioport32_t *port) 64 64 { 65 65 return *port; -
uspace/lib/c/arch/arm32/include/ddi.h
ref93167 rb5c2f56 52 52 } 53 53 54 static inline uint8_t arch_pio_read_8( ioport8_t *port)54 static inline uint8_t arch_pio_read_8(const ioport8_t *port) 55 55 { 56 56 return *port; 57 57 } 58 58 59 static inline uint16_t arch_pio_read_16( ioport16_t *port)59 static inline uint16_t arch_pio_read_16(const ioport16_t *port) 60 60 { 61 61 return *port; 62 62 } 63 63 64 static inline uint32_t arch_pio_read_32( ioport32_t *port)64 static inline uint32_t arch_pio_read_32(const ioport32_t *port) 65 65 { 66 66 return *port; -
uspace/lib/c/arch/ia32/include/ddi.h
ref93167 rb5c2f56 39 39 #define IO_SPACE_BOUNDARY ((void *) (64 * 1024)) 40 40 41 static inline uint8_t arch_pio_read_8( ioport8_t *port)41 static inline uint8_t arch_pio_read_8(const ioport8_t *port) 42 42 { 43 43 if (port < (ioport8_t *) IO_SPACE_BOUNDARY) { … … 55 55 } 56 56 57 static inline uint16_t arch_pio_read_16( ioport16_t *port)57 static inline uint16_t arch_pio_read_16(const ioport16_t *port) 58 58 { 59 59 if (port < (ioport16_t *) IO_SPACE_BOUNDARY) { … … 71 71 } 72 72 73 static inline uint32_t arch_pio_read_32( ioport32_t *port)73 static inline uint32_t arch_pio_read_32(const ioport32_t *port) 74 74 { 75 75 if (port < (ioport32_t *) IO_SPACE_BOUNDARY) { -
uspace/lib/c/arch/ia64/include/ddi.h
ref93167 rb5c2f56 95 95 } 96 96 97 static inline uint8_t arch_pio_read_8( ioport8_t *port)97 static inline uint8_t arch_pio_read_8(const ioport8_t *port) 98 98 { 99 99 uint8_t v; … … 115 115 } 116 116 117 static inline uint16_t arch_pio_read_16( ioport16_t *port)117 static inline uint16_t arch_pio_read_16(const ioport16_t *port) 118 118 { 119 119 uint16_t v; … … 135 135 } 136 136 137 static inline uint32_t arch_pio_read_32( ioport32_t *port)137 static inline uint32_t arch_pio_read_32(const ioport32_t *port) 138 138 { 139 139 uint32_t v; -
uspace/lib/c/arch/mips32/include/ddi.h
ref93167 rb5c2f56 52 52 } 53 53 54 static inline uint8_t arch_pio_read_8( ioport8_t *port)54 static inline uint8_t arch_pio_read_8(const ioport8_t *port) 55 55 { 56 56 return *port; 57 57 } 58 58 59 static inline uint16_t arch_pio_read_16( ioport16_t *port)59 static inline uint16_t arch_pio_read_16(const ioport16_t *port) 60 60 { 61 61 return *port; 62 62 } 63 63 64 static inline uint32_t arch_pio_read_32( ioport32_t *port)64 static inline uint32_t arch_pio_read_32(const ioport32_t *port) 65 65 { 66 66 return *port; -
uspace/lib/c/arch/mips64/include/ddi.h
ref93167 rb5c2f56 52 52 } 53 53 54 static inline uint8_t arch_pio_read_8( ioport8_t *port)54 static inline uint8_t arch_pio_read_8(const ioport8_t *port) 55 55 { 56 56 return *port; 57 57 } 58 58 59 static inline uint16_t arch_pio_read_16( ioport16_t *port)59 static inline uint16_t arch_pio_read_16(const ioport16_t *port) 60 60 { 61 61 return *port; 62 62 } 63 63 64 static inline uint32_t arch_pio_read_32( ioport32_t *port)64 static inline uint32_t arch_pio_read_32(const ioport32_t *port) 65 65 { 66 66 return *port; -
uspace/lib/c/arch/ppc32/include/ddi.h
ref93167 rb5c2f56 52 52 } 53 53 54 static inline uint8_t arch_pio_read_8( ioport8_t *port)54 static inline uint8_t arch_pio_read_8(const ioport8_t *port) 55 55 { 56 56 return *port; 57 57 } 58 58 59 static inline uint16_t arch_pio_read_16( ioport16_t *port)59 static inline uint16_t arch_pio_read_16(const ioport16_t *port) 60 60 { 61 61 return *port; 62 62 } 63 63 64 static inline uint32_t arch_pio_read_32( ioport32_t *port)64 static inline uint32_t arch_pio_read_32(const ioport32_t *port) 65 65 { 66 66 return *port; -
uspace/lib/c/generic/ddi.c
ref93167 rb5c2f56 192 192 } 193 193 194 uint8_t pio_read_8( ioport8_t *reg)194 uint8_t pio_read_8(const ioport8_t *reg) 195 195 { 196 196 const uint8_t val = arch_pio_read_8(reg); … … 199 199 } 200 200 201 uint16_t pio_read_16( ioport16_t *reg)201 uint16_t pio_read_16(const ioport16_t *reg) 202 202 { 203 203 const uint16_t val = arch_pio_read_16(reg); … … 206 206 } 207 207 208 uint32_t pio_read_32( ioport32_t *reg)208 uint32_t pio_read_32(const ioport32_t *reg) 209 209 { 210 210 const uint32_t val = arch_pio_read_32(reg); -
uspace/lib/c/generic/pio_trace.c
ref93167 rb5c2f56 91 91 92 92 93 void pio_trace_log( volatile void *r, uint32_t val, bool write)93 void pio_trace_log(const volatile void *r, uint32_t val, bool write) 94 94 { 95 95 pio_regions_t *regions = get_regions(); -
uspace/lib/c/include/ddi.h
ref93167 rb5c2f56 54 54 extern int pio_enable(void *, size_t, void **); 55 55 56 typedef void (*trace_fnc)( volatile void *place, uint32_t val,56 typedef void (*trace_fnc)(const volatile void *place, uint32_t val, 57 57 volatile void* base, size_t size, void *data, bool write); 58 58 59 59 extern int pio_trace_enable(void *, size_t, trace_fnc, void *); 60 extern void pio_trace_log( volatile void *, uint32_t val, bool write);60 extern void pio_trace_log(const volatile void *, uint32_t val, bool write); 61 61 extern void pio_trace_disable(void *); 62 62 … … 65 65 extern void pio_write_32(ioport32_t *, uint32_t); 66 66 67 extern uint8_t pio_read_8( ioport8_t *);68 extern uint16_t pio_read_16( ioport16_t *);69 extern uint32_t pio_read_32( ioport32_t *);67 extern uint8_t pio_read_8(const ioport8_t *); 68 extern uint16_t pio_read_16(const ioport16_t *); 69 extern uint32_t pio_read_32(const ioport32_t *); 70 70 71 71 static inline uint8_t pio_change_8(
Note:
See TracChangeset
for help on using the changeset viewer.