coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rcba.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_RCBA   ((u8 *)CONFIG_FIXED_RCBA_MMIO_BASE)
 
#define RCBA   0xf0
 
#define RCBA_ENABLE   0x01
 
#define RCBA8(x)   (*((volatile u8 *)(DEFAULT_RCBA + (x))))
 
#define RCBA16(x)   (*((volatile u16 *)(DEFAULT_RCBA + (x))))
 
#define RCBA32(x)   (*((volatile u32 *)(DEFAULT_RCBA + (x))))
 
#define RCBA64(x)   (*((volatile u64 *)(DEFAULT_RCBA + (x))))
 
#define RCBA_AND_OR(bits, x, and, or)    (RCBA##bits(x) = ((RCBA##bits(x) & (and)) | (or)))
 
#define RCBA8_AND_OR(x, and, or)   RCBA_AND_OR(8, x, and, or)
 
#define RCBA16_AND_OR(x, and, or)   RCBA_AND_OR(16, x, and, or)
 
#define RCBA32_AND_OR(x, and, or)   RCBA_AND_OR(32, x, and, or)
 
#define RCBA32_OR(x, or)   RCBA_AND_OR(32, x, ~0UL, or)
 

Macro Definition Documentation

◆ DEFAULT_RCBA

#define DEFAULT_RCBA   ((u8 *)CONFIG_FIXED_RCBA_MMIO_BASE)

Definition at line 6 of file rcba.h.

◆ RCBA

#define RCBA   0xf0

Definition at line 9 of file rcba.h.

◆ RCBA16

#define RCBA16 (   x)    (*((volatile u16 *)(DEFAULT_RCBA + (x))))

Definition at line 13 of file rcba.h.

◆ RCBA16_AND_OR

#define RCBA16_AND_OR (   x,
  and,
  or 
)    RCBA_AND_OR(16, x, and, or)

Definition at line 20 of file rcba.h.

◆ RCBA32

#define RCBA32 (   x)    (*((volatile u32 *)(DEFAULT_RCBA + (x))))

Definition at line 14 of file rcba.h.

◆ RCBA32_AND_OR

#define RCBA32_AND_OR (   x,
  and,
  or 
)    RCBA_AND_OR(32, x, and, or)

Definition at line 21 of file rcba.h.

◆ RCBA32_OR

#define RCBA32_OR (   x,
  or 
)    RCBA_AND_OR(32, x, ~0UL, or)

Definition at line 22 of file rcba.h.

◆ RCBA64

#define RCBA64 (   x)    (*((volatile u64 *)(DEFAULT_RCBA + (x))))

Definition at line 15 of file rcba.h.

◆ RCBA8

#define RCBA8 (   x)    (*((volatile u8 *)(DEFAULT_RCBA + (x))))

Definition at line 12 of file rcba.h.

◆ RCBA8_AND_OR

#define RCBA8_AND_OR (   x,
  and,
  or 
)    RCBA_AND_OR(8, x, and, or)

Definition at line 19 of file rcba.h.

◆ RCBA_AND_OR

#define RCBA_AND_OR (   bits,
  x,
  and,
  or 
)     (RCBA##bits(x) = ((RCBA##bits(x) & (and)) | (or)))

Definition at line 17 of file rcba.h.

◆ RCBA_ENABLE

#define RCBA_ENABLE   0x01

Definition at line 10 of file rcba.h.