blob: fb18ab3390a6a0b58e37ed40509454422d1c7c62 [file] [log] [blame]
/* Copyright (C) 2010 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by the GPL v2 license that can
* be found in the LICENSE file.
* Parts of this file are derived from the Linux kernel from the file with
* the same name and path under include/.
#include <linux/types.h>
#define PAGE_SIZE 4096
#define PAGE_SHIFT 12
/* A, uh, simple page dummy. */
struct page {
u8 data[PAGE_SIZE];
#define page_address(p) ((p)->data)
#define virt_to_page(x) ((struct page *)(x))