coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
storage.h File Reference
#include <stdint.h>
#include <commonlib/storage.h>
Include dependency graph for storage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DMA_MINALIGN   (64)
 
#define ROUND(a, b)   (((a) + (b) - 1) & ~((b) - 1))
 
#define ALLOC_CACHE_ALIGN_BUFFER(type, name, size)
 
#define dcache_invalidate_by_mva(addr, len)
 
#define dcache_clean_invalidate_by_mva(addr, len)
 

Functions

int storage_startup (struct storage_media *media)
 
int storage_block_setup (struct storage_media *media, uint64_t start, uint64_t count, int is_read)
 

Macro Definition Documentation

◆ ALLOC_CACHE_ALIGN_BUFFER

#define ALLOC_CACHE_ALIGN_BUFFER (   type,
  name,
  size 
)
Value:
char __##name[ROUND(size * sizeof(type), DMA_MINALIGN) + \
DMA_MINALIGN - 1]; \
const char * name
Definition: mmu.c:92
#define ALIGN_UP(x, a)
Definition: helpers.h:17
unsigned int type
Definition: edid.c:57
unsigned long uintptr_t
Definition: stdint.h:21
#define DMA_MINALIGN
Definition: storage.h:9
#define ROUND(a, b)
Definition: storage.h:10

Definition at line 11 of file storage.h.

◆ dcache_clean_invalidate_by_mva

#define dcache_clean_invalidate_by_mva (   addr,
  len 
)

Definition at line 18 of file storage.h.

◆ dcache_invalidate_by_mva

#define dcache_invalidate_by_mva (   addr,
  len 
)

Definition at line 17 of file storage.h.

◆ DMA_MINALIGN

#define DMA_MINALIGN   (64)

Definition at line 9 of file storage.h.

◆ ROUND

#define ROUND (   a,
 
)    (((a) + (b) - 1) & ~((b) - 1))

Definition at line 10 of file storage.h.

Function Documentation

◆ storage_block_setup()

◆ storage_startup()