vserver 2.0 rc7
[linux-2.6.git] / include / asm-ppc / machdep.h
index 87a5501..b78d408 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/init.h>
 
 #include <asm/setup.h>
+#include <asm/page.h>
 
 #ifdef CONFIG_APUS
 #include <asm-m68k/machdep.h>
@@ -15,6 +16,7 @@ struct pt_regs;
 struct pci_bus;        
 struct pci_dev;
 struct seq_file;
+struct file;
 
 /* We export this macro for external modules like Alsa to know if
  * ppc_md.feature_call is implemented or not
@@ -93,6 +95,12 @@ struct machdep_calls {
        /* Called at then very end of pcibios_init() */
        void (*pcibios_after_init)(void);
 
+       /* Get access protection for /dev/mem */
+       pgprot_t        (*phys_mem_access_prot)(struct file *file,
+                                               unsigned long offset,
+                                               unsigned long size,
+                                               pgprot_t vma_prot);
+
        /* this is for modules, since _machine can be a define -- Cort */
        int ppc_machine;
 
@@ -121,6 +129,7 @@ typedef enum sys_ctrler_kind {
        SYS_CTRLER_UNKNOWN = 0,
        SYS_CTRLER_CUDA = 1,
        SYS_CTRLER_PMU = 2,
+       SYS_CTRLER_SMU = 3,
 } sys_ctrler_t;
 
 extern sys_ctrler_t sys_ctrler;