Changeset 7d60cf5 in mainline for kernel/arch/amd64
- Timestamp:
- 2009-02-19T21:58:37Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5cb223f
- Parents:
- 4b44099d
- Location:
- kernel/arch/amd64/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/asm.h
r4b44099d r7d60cf5 74 74 * @return Value read 75 75 */ 76 static inline uint8_t pio_read_8( uint16_tport)76 static inline uint8_t pio_read_8(ioport8_t *port) 77 77 { 78 78 uint8_t val; … … 89 89 * @param val Value to write 90 90 */ 91 static inline void pio_write_8( uint16_tport, uint8_t val)91 static inline void pio_write_8(ioport8_t *port, uint8_t val) 92 92 { 93 93 asm volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port)); -
kernel/arch/amd64/include/types.h
r4b44099d r7d60cf5 58 58 typedef int64_t native_t; 59 59 60 typedef uintptr_t ioport_t; 60 typedef volatile uint8_t ioport8_t; 61 typedef volatile uint16_t ioport16_t; 62 typedef volatile uint32_t ioport32_t; 61 63 62 64 typedef struct {
Note:
See TracChangeset
for help on using the changeset viewer.