Lines Matching refs:BaseAddr
30 #define PchMmioAddress(BaseAddr, Register) ((UINTN) BaseAddr + (UINTN) (Register))
35 #define PchMmio32Ptr(BaseAddr, Register) ((volatile UINT32 *) PchMmioAddress (BaseAddr, Register))
37 #define PchMmio32(BaseAddr, Register) *PchMmio32Ptr (BaseAddr, Register)
39 #define PchMmio32Or(BaseAddr, Register, OrData) \
40 PchMmio32 (BaseAddr, Register) = (UINT32) \
41 (PchMmio32 (BaseAddr, Register) | (UINT32) (OrData))
43 #define PchMmio32And(BaseAddr, Register, AndData) \
44 PchMmio32 (BaseAddr, Register) = (UINT32) \
45 (PchMmio32 (BaseAddr, Register) & (UINT32) (AndData))
47 #define PchMmio32AndThenOr(BaseAddr, Register, AndData, OrData) \
48 PchMmio32 (BaseAddr, Register) = (UINT32) \
49 ((PchMmio32 (BaseAddr, Register) & (UINT32) (AndData)) | (UINT32) (OrData))
54 #define PchMmio16Ptr(BaseAddr, Register) ((volatile UINT16 *) PchMmioAddress (BaseAddr, Register))
56 #define PchMmio16(BaseAddr, Register) *PchMmio16Ptr (BaseAddr, Register)
58 #define PchMmio16Or(BaseAddr, Register, OrData) \
59 PchMmio16 (BaseAddr, Register) = (UINT16) \
60 (PchMmio16 (BaseAddr, Register) | (UINT16) (OrData))
62 #define PchMmio16And(BaseAddr, Register, AndData) \
63 PchMmio16 (BaseAddr, Register) = (UINT16) \
64 (PchMmio16 (BaseAddr, Register) & (UINT16) (AndData))
66 #define PchMmio16AndThenOr(BaseAddr, Register, AndData, OrData) \
67 PchMmio16 (BaseAddr, Register) = (UINT16) \
68 ((PchMmio16 (BaseAddr, Register) & (UINT16) (AndData)) | (UINT16) (OrData))
73 #define PchMmio8Ptr(BaseAddr, Register) ((volatile UINT8 *) PchMmioAddress (BaseAddr, Register))
75 #define PchMmio8(BaseAddr, Register) *PchMmio8Ptr (BaseAddr, Register)
77 #define PchMmio8Or(BaseAddr, Register, OrData) \
78 PchMmio8 (BaseAddr, Register) = (UINT8) \
79 (PchMmio8 (BaseAddr, Register) | (UINT8) (OrData))
81 #define PchMmio8And(BaseAddr, Register, AndData) \
82 PchMmio8 (BaseAddr, Register) = (UINT8) \
83 (PchMmio8 (BaseAddr, Register) & (UINT8) (AndData))
85 #define PchMmio8AndThenOr(BaseAddr, Register, AndData, OrData) \
86 PchMmio8 (BaseAddr, Register) = (UINT8) \
87 ((PchMmio8 (BaseAddr, Register) & (UINT8) (AndData)) | (UINT8) (OrData))