X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc64%2Fmachdep.h;h=e3b860769cd8e43f085eb1504106a8dad59d16b1;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=bb961a029fae00154c95d2406614b2a88aad4900;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/asm-ppc64/machdep.h b/include/asm-ppc64/machdep.h index bb961a029..e3b860769 100644 --- a/include/asm-ppc64/machdep.h +++ b/include/asm-ppc64/machdep.h @@ -11,8 +11,11 @@ #include #include +#include #include +#include + struct pt_regs; struct pci_bus; struct device_node; @@ -53,6 +56,9 @@ struct machdep_calls { void (*flush_hash_range)(unsigned long context, unsigned long number, int local); + /* special for kexec, to be called in real mode, linar mapping is + * destroyed as well */ + void (*hpte_clear_all)(void); void (*tce_build)(struct iommu_table * tbl, long index, @@ -64,7 +70,9 @@ struct machdep_calls { long npages); void (*tce_flush)(struct iommu_table *tbl); + int (*probe)(int platform); void (*setup_arch)(void); + void (*init_early)(void); /* Optional, may be NULL. */ void (*get_cpuinfo)(struct seq_file *m); @@ -74,9 +82,6 @@ struct machdep_calls { /* PCI stuff */ void (*pcibios_fixup)(void); - /* Optional, may be NULL. */ - void (*init)(void); - void (*restart)(char *cmd); void (*power_off)(void); void (*halt)(void); @@ -112,9 +117,7 @@ struct machdep_calls { }; extern struct machdep_calls ppc_md; -#define COMMAND_LINE_SIZE 512 extern char cmd_line[COMMAND_LINE_SIZE]; -extern char saved_command_line[COMMAND_LINE_SIZE]; /* Functions to produce codes on the leds. * The SRC code should be unique for the message category and should