Changeset ee06f2a in mainline for kernel/arch/ia32/include/asm.h
- Timestamp:
- 2009-02-15T15:28:00Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2d96f4d
- Parents:
- e7f2ad68
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/asm.h
re7f2ad68 ree06f2a 106 106 * @param val Value to write 107 107 */ 108 static inline void outb(uint16_t port, uint8_t val)108 static inline void pio_write_8(uint16_t port, uint8_t val) 109 109 { 110 110 asm volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port) ); … … 118 118 * @param val Value to write 119 119 */ 120 static inline void outw(uint16_t port, uint16_t val)120 static inline void pio_write_16(uint16_t port, uint16_t val) 121 121 { 122 122 asm volatile ("outw %w0, %w1\n" : : "a" (val), "d" (port) ); … … 130 130 * @param val Value to write 131 131 */ 132 static inline void outl(uint16_t port, uint32_t val)132 static inline void pio_write_32(uint16_t port, uint32_t val) 133 133 { 134 134 asm volatile ("outl %l0, %w1\n" : : "a" (val), "d" (port) ); … … 142 142 * @return Value read 143 143 */ 144 static inline uint8_t inb(uint16_t port)144 static inline uint8_t pio_read_8(uint16_t port) 145 145 { 146 146 uint8_t val; … … 157 157 * @return Value read 158 158 */ 159 static inline uint16_t inw(uint16_t port)159 static inline uint16_t pio_read_16(uint16_t port) 160 160 { 161 161 uint16_t val; … … 172 172 * @return Value read 173 173 */ 174 static inline uint32_t inl(uint16_t port)174 static inline uint32_t pio_read_32(uint16_t port) 175 175 { 176 176 uint32_t val;
Note:
See TracChangeset
for help on using the changeset viewer.