#define SKD_WRITEL(DEV, VAL, OFF) skd_reg_write32(DEV, VAL, OFF)
#define SKD_READL(DEV, OFF) skd_reg_read32(DEV, OFF)
#define SKD_WRITEQ(DEV, VAL, OFF) skd_reg_write64(DEV, VAL, OFF)
-#define SKD_READQ(DEV, OFF) skd_reg_read64(DEV, OFF)
static inline u32 skd_reg_read32(struct skd_device *skdev, u32 offset)
{
}
}
-static inline u64 skd_reg_read64(struct skd_device *skdev, u32 offset)
-{
- u64 val;
-
- if (likely(skdev->dbg_level < 2))
- return readq(skdev->mem_map[1] + offset);
- else {
- barrier();
- val = readq(skdev->mem_map[1] + offset);
- barrier();
- VPRINTK(skdev, "offset %x = %016llx\n", offset, val);
- return val;
- }
-}
-
static inline void skd_reg_write64(struct skd_device *skdev, u64 val,
u32 offset)
{
VPRINTK(skdev, "skmsg_table kzalloc, struct %lu, count %u total %lu\n",
sizeof(struct skd_fitmsg_context),
skdev->num_fitmsg_context,
- sizeof(struct skd_fitmsg_context) * skdev->num_fitmsg_context);
+ (unsigned long) sizeof(struct skd_fitmsg_context) *
+ skdev->num_fitmsg_context);
skdev->skmsg_table = kzalloc(sizeof(struct skd_fitmsg_context)
*skdev->num_fitmsg_context, GFP_KERNEL);