Changeset 0ab362c in mainline for uspace/lib/c/arch/arm32/include/ddi.h
- Timestamp:
- 2012-11-22T14:36:04Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e32720ff
- Parents:
- 1f7753a (diff), 0f2c80a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/arm32/include/ddi.h
r1f7753a r0ab362c 37 37 #include <libarch/types.h> 38 38 39 static inline void pio_write_8(ioport8_t *port, uint8_t v)39 static inline void arch_pio_write_8(ioport8_t *port, uint8_t v) 40 40 { 41 41 *port = v; 42 42 } 43 43 44 static inline void pio_write_16(ioport16_t *port, uint16_t v)44 static inline void arch_pio_write_16(ioport16_t *port, uint16_t v) 45 45 { 46 46 *port = v; 47 47 } 48 48 49 static inline void pio_write_32(ioport32_t *port, uint32_t v)49 static inline void arch_pio_write_32(ioport32_t *port, uint32_t v) 50 50 { 51 51 *port = v; 52 52 } 53 53 54 static inline uint8_t 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 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 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;
Note:
See TracChangeset
for help on using the changeset viewer.