Changeset acc0efb in mainline for uspace/lib/c/generic/ddi.c
- Timestamp:
- 2012-10-15T13:33:45Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9727b92
- Parents:
- 5b082ba9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ddi.c
r5b082ba9 racc0efb 34 34 35 35 #include <assert.h> 36 #include <atomic.h> 36 37 #include <unistd.h> 38 #include <stdio.h> 37 39 #include <errno.h> 38 40 #include <sys/types.h> … … 46 48 #include <libarch/config.h> 47 49 #include "private/libc.h" 50 48 51 49 52 /** Return unique device number. … … 171 174 void pio_write_8(ioport8_t *reg, uint8_t val) 172 175 { 176 pio_trace_log(reg, val, true); 173 177 arch_pio_write_8(reg, val); 174 178 } … … 176 180 void pio_write_16(ioport16_t *reg, uint16_t val) 177 181 { 182 pio_trace_log(reg, val, true); 178 183 arch_pio_write_16(reg, val); 179 184 } … … 181 186 void pio_write_32(ioport32_t *reg, uint32_t val) 182 187 { 188 pio_trace_log(reg, val, true); 183 189 arch_pio_write_32(reg, val); 184 190 } … … 186 192 uint8_t pio_read_8(ioport8_t *reg) 187 193 { 188 return arch_pio_read_8(reg); 194 const uint8_t val = arch_pio_read_8(reg); 195 pio_trace_log(reg, val, false); 196 return val; 189 197 } 190 198 191 199 uint16_t pio_read_16(ioport16_t *reg) 192 200 { 193 return arch_pio_read_16(reg); 201 const uint16_t val = arch_pio_read_16(reg); 202 pio_trace_log(reg, val, false); 203 return val; 194 204 } 195 205 196 206 uint32_t pio_read_32(ioport32_t *reg) 197 207 { 198 return arch_pio_read_32(reg); 208 const uint32_t val = arch_pio_read_32(reg); 209 pio_trace_log(reg, val, false); 210 return val; 199 211 } 200 212
Note:
See TracChangeset
for help on using the changeset viewer.