require '_h2ph_pre.ph'; no warnings 'redefine'; unless(defined(&__ASM_ARCH_MEMORY_H)) { eval 'sub __ASM_ARCH_MEMORY_H () {1;}' unless defined(&__ASM_ARCH_MEMORY_H); if(defined( &CONFIG_FOOTBRIDGE_ADDIN)) { unless(defined(&__ASSEMBLY__)) { } } elsif(defined( &CONFIG_FOOTBRIDGE_HOST)) { eval 'sub __virt_to_bus { my($x) = @_; eval q((($x) - 0xe0000000)); }' unless defined(&__virt_to_bus); eval 'sub __bus_to_virt { my($x) = @_; eval q((($x) + 0xe0000000)); }' unless defined(&__bus_to_virt); } else { die("Undefined footbridge mode"); } if(defined( &CONFIG_ARCH_FOOTBRIDGE)) { eval 'sub TASK_SIZE () { &UL(0xbf000000);}' unless defined(&TASK_SIZE); eval 'sub PAGE_OFFSET () { &UL(0xc0000000);}' unless defined(&PAGE_OFFSET); eval 'sub FLUSH_BASE () {0xf9000000;}' unless defined(&FLUSH_BASE); } elsif(defined( &CONFIG_ARCH_CO285)) { eval 'sub TASK_SIZE () { &UL(0x5f000000);}' unless defined(&TASK_SIZE); eval 'sub PAGE_OFFSET () { &UL(0x60000000);}' unless defined(&PAGE_OFFSET); eval 'sub FLUSH_BASE () {0x7e000000;}' unless defined(&FLUSH_BASE); } else { die("Undefined footbridge architecture"); } eval 'sub PHYS_OFFSET () { &UL(0x);}' unless defined(&PHYS_OFFSET); eval 'sub TASK_UNMAPPED_BASE () {(( &TASK_SIZE + 0x1000000) / 3);}' unless defined(&TASK_UNMAPPED_BASE); eval 'sub FLUSH_BASE_PHYS () {0x50000000;}' unless defined(&FLUSH_BASE_PHYS); } 1;