Commit 9427a9c0 authored by Josh Kunz's avatar Josh Kunz

Removes unneeded kernel-specific stuff types.h

parent d5b4ff70
......@@ -8,7 +8,7 @@
#ifndef LCD_DOMAINS_TYPES_H
#define LCD_DOMAINS_TYPES_H
#include <linux/kernel.h>
//#include <linux/kernel.h>
/* CPTRs -------------------------------------------------- */
......@@ -180,18 +180,22 @@ static inline hpa_t pa2hpa(unsigned long pa)
{
return (hpa_t){ pa };
}
/*
static inline hpa_t va2hpa(void *va)
{
return (hpa_t){ __pa(va) };
}
*/
/*static inline void * hpa2va(hpa_t hpa)
{
return __va(hpa_val(hpa));
}*/
/*
static inline hva_t hpa2hva(hpa_t hpa)
{
return (hva_t){ (unsigned long)__va(hpa.hpa) };
}
*/
static inline void * hva2va(hva_t hva)
{
return (void *)hva_val(hva);
......@@ -200,10 +204,12 @@ static inline hva_t va2hva(void *va)
{
return __hva((unsigned long)va);
}
/*
static inline hpa_t hva2hpa(hva_t hva)
{
return (hpa_t){ (unsigned long)__pa(hva2va(hva)) };
}
*/
/* BOOT ADDRESS SPACE & INFO ------------------------------------------- */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment