| /* |
| * Architecture specific OF callbacks. |
| */ |
| #include <linux/bootmem.h> |
| #include <linux/io.h> |
| #include <linux/list.h> |
| #include <linux/of.h> |
| #include <linux/of_fdt.h> |
| #include <linux/of_platform.h> |
| #include <linux/slab.h> |
| |
| char __initdata cmd_line[COMMAND_LINE_SIZE]; |
| |
| unsigned int irq_create_of_mapping(struct device_node *controller, |
| const u32 *intspec, unsigned int intsize) |
| { |
| return intspec[0]; |
| |
| } |
| EXPORT_SYMBOL_GPL(irq_create_of_mapping); |
| |
| unsigned long pci_address_to_pio(phys_addr_t address) |
| { |
| /* |
| * The ioport address can be directly used by inX / outX |
| */ |
| BUG_ON(address >= (1 << 16)); |
| return (unsigned long)address; |
| } |
| EXPORT_SYMBOL_GPL(pci_address_to_pio); |
| |
| void __init early_init_dt_scan_chosen_arch(unsigned long node) |
| { |
| BUG(); |
| } |
| |
| void __init early_init_dt_add_memory_arch(u64 base, u64 size) |
| { |
| BUG(); |
| } |
| |
| void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) |
| { |
| return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)); |
| } |
| |
| void __init add_dtb(u64 data) |
| { |
| initial_boot_params = phys_to_virt((u64) (u32) data + |
| offsetof(struct setup_data, data)); |
| } |