lkml.org 
[lkml]   [2004]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] HPET driver
    Robert Picco <Robert.Picco@hp.com> wrote:
    >
    > O.K. Did this but had to add a writeq and readq for i386.

    You implementation of these is private to hpet.c. From what Jeff is
    saying, it looks like it should be in include/asm-i386/io.h?

    #ifndef readq
    static unsigned long long __inline readq(void *addr)
    {
    return readl(addr) | (((unsigned long long)readl(addr + 4)) << 32LL);
    }
    #endif

    #ifndef writeq
    static void __inline writeq(unsigned long long v, void *addr)
    {
    writel(v & 0xffffffff, addr);
    writel(v >> 32, addr + 4);
    }
    #endif

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:03    [W:0.035 / U:59.264 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site