Changeset 7d60cf5 in mainline for kernel/arch/amd64


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.

Location:
kernel/arch/amd64/include
Files:
2 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));
  • kernel/arch/amd64/include/types.h

    r4b44099d r7d60cf5  
    5858typedef int64_t native_t;
    5959
    60 typedef uintptr_t ioport_t;
     60typedef volatile uint8_t ioport8_t;
     61typedef volatile uint16_t ioport16_t;
     62typedef volatile uint32_t ioport32_t;
    6163
    6264typedef struct {
Note: See TracChangeset for help on using the changeset viewer.