aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rdc/Makefile
blob: c4bfd66c04165d92a66b47807a102c8d36aedaae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk

ARCH:=i386
BOARD:=rdc
BOARDNAME:=RDC 321x
FEATURES:=squashfs jffs2 pci usb pcmcia
CFLAGS:=-Os -pipe -march=i486 -funit-at-a-time
SUBTARGETS:=amit ar525w r8610 dir-450

LINUX_VERSION:=2.6.30.9

include $(INCLUDE_DIR)/target.mk

DEFAULT_PACKAGES += hostapd-mini kmod-rdc321x-wdt kmod-r6040

define Target/Description
        Build firmware images for RDC321x based routers
        (e.g. Airlink101 AR525W, Linksys WRT54GR, Sitecom WL-153)
endef

$(eval $(call BuildTarget))

$(eval $(call RequireCommand,lzma, \
        Please install lzma-4.4x. \
))
g with * this program; if not, write to the Free Software Foundation, Inc., 59 Temple * Place - Suite 330, Boston, MA 02111-1307 USA. * */ #ifndef __HAP_PRIVATE_H__ #define __HAP_PRIVATE_H__ #include <asm/flushtlb.h> #include <asm/hvm/support.h> /********************************************/ /* GUEST TRANSLATION FUNCS */ /********************************************/ unsigned long hap_gva_to_gfn_2level(struct vcpu *v, unsigned long gva, uint32_t *pfec); unsigned long hap_gva_to_gfn_3level(struct vcpu *v, unsigned long gva, uint32_t *pfec); unsigned long hap_gva_to_gfn_4level(struct vcpu *v, unsigned long gva, uint32_t *pfec); /********************************************/ /* MISC DEFINITIONS */ /********************************************/ /* PT_SHIFT describes the amount by which a virtual address is shifted right * to right justify the portion to be used for indexing into a page * table, given the guest memory model (i.e. number of levels) and the level * of the page table being accessed. The idea is from Virtual Iron's code. */ static const int PT_SHIFT[][5] = { /* ------ level ------ nr_levels */ /* 1 2 3 4 */ { 0, 0, 0, 0, 0}, /* 0 not used */ { 0, 0, 0, 0, 0}, /* 1 not used */ { 0, 12, 22, 0, 0}, /* 2 */ { 0, 12, 21, 30, 0}, /* 3 */ { 0, 12, 21, 30, 39} /* 4 */ }; /* PT_ENTRIES describes the number of entries in a page table, given the * memory model (i.e. number of levels) and the level of the page table * being considered. This idea from Virtual Iron's shadow code*/ static const int PT_ENTRIES[][5] = { /* ------ level ------ nr_levels */ /* 1 2 3 4 */ { 0, 0, 0, 0, 0}, /* 0 not used */ { 0, 0, 0, 0, 0}, /* 1 not used */ { 0, 1024, 1024, 0, 0}, /* 2 */ { 0, 512, 512, 4, 0}, /* 3 */ { 0, 512, 512, 512, 512} /* 4 */ }; #endif /* __SVM_NPT_H__ */