41 #ifndef _PM8001_CHIPS_H_
42 #define _PM8001_CHIPS_H_
44 static inline u32 pm8001_read_32(
void *virt_addr)
46 return *((
u32 *)virt_addr);
51 *((
__le32 *)(addr + offset)) = val;
57 return readl(pm8001_ha->
io_mem[bar].memvirtaddr + offset);
67 return readl(addr + offset);
69 static inline void pm8001_mw32(
void __iomem *addr,
u32 offset,
u32 val)
71 writel(val, addr + offset);
73 static inline u32 get_pci_bar_index(
u32 pcibar)