Changeset 7d60cf5 in mainline for kernel/arch/amd64/include/asm.h


Ignore:
Timestamp:
2009-02-19T21:58:37Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5cb223f
Parents:
4b44099d
Message:

Introduce ioport8_t, ioport16_t and ioport32_t. These types are to be used with
pio_read_n() and pio_write_n() functions. This breaks everything.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/asm.h

    r4b44099d r7d60cf5  
    7474 * @return Value read
    7575 */
    76 static inline uint8_t pio_read_8(uint16_t port)
     76static inline uint8_t pio_read_8(ioport8_t *port)
    7777{
    7878        uint8_t val;
     
    8989 * @param val Value to write
    9090 */
    91 static inline void pio_write_8(uint16_t port, uint8_t val)
     91static inline void pio_write_8(ioport8_t *port, uint8_t val)
    9292{
    9393        asm volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port));
Note: See TracChangeset for help on using the changeset viewer.