Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181
b: refs/heads/master
c: ef416a3
h: refs/heads/master
i:
  179: 02b01cb
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Linus Torvalds committed Apr 16, 2005
1 parent e2866f9 commit 6457705
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9095e208d84c349193fa19245cd5a8bc1a9774b8
refs/heads/master: ef416a33acbd2d68a58ea1ffdc13c674e53bc78f
11 changes: 11 additions & 0 deletions trunk/drivers/infiniband/hw/mthca/mthca_doorbell.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
#define MTHCA_INIT_DOORBELL_LOCK(ptr) do { } while (0)
#define MTHCA_GET_DOORBELL_LOCK(ptr) (NULL)

static inline void mthca_write64_raw(__be64 val, void __iomem *dest)
{
__raw_writeq((__force u64) val, dest);
}

static inline void mthca_write64(u32 val[2], void __iomem *dest,
spinlock_t *doorbell_lock)
{
Expand All @@ -74,6 +79,12 @@ static inline void mthca_write_db_rec(u32 val[2], u32 *db)
#define MTHCA_INIT_DOORBELL_LOCK(ptr) spin_lock_init(ptr)
#define MTHCA_GET_DOORBELL_LOCK(ptr) (ptr)

static inline void mthca_write64_raw(__be64 val, void __iomem *dest)
{
__raw_writel(((__force u32 *) &val)[0], dest);
__raw_writel(((__force u32 *) &val)[1], dest + 4);
}

static inline void mthca_write64(u32 val[2], void __iomem *dest,
spinlock_t *doorbell_lock)
{
Expand Down

0 comments on commit 6457705

Please sign in to comment.