~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/ia64/kernel/machvec.c

Version: ~ [ linux-5.3-rc5 ] ~ [ linux-5.2.9 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.67 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.139 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.189 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.189 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.72 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #include <linux/module.h>
  2 #include <linux/dma-mapping.h>
  3 #include <asm/machvec.h>
  4 
  5 #ifdef CONFIG_IA64_GENERIC
  6 
  7 #include <linux/kernel.h>
  8 #include <linux/string.h>
  9 
 10 #include <asm/page.h>
 11 
 12 struct ia64_machine_vector ia64_mv;
 13 EXPORT_SYMBOL(ia64_mv);
 14 
 15 static struct ia64_machine_vector * __init
 16 lookup_machvec (const char *name)
 17 {
 18         extern struct ia64_machine_vector machvec_start[];
 19         extern struct ia64_machine_vector machvec_end[];
 20         struct ia64_machine_vector *mv;
 21 
 22         for (mv = machvec_start; mv < machvec_end; ++mv)
 23                 if (strcmp (mv->name, name) == 0)
 24                         return mv;
 25 
 26         return 0;
 27 }
 28 
 29 void __init
 30 machvec_init (const char *name)
 31 {
 32         struct ia64_machine_vector *mv;
 33 
 34         if (!name)
 35                 name = acpi_get_sysname();
 36         mv = lookup_machvec(name);
 37         if (!mv)
 38                 panic("generic kernel failed to find machine vector for"
 39                       " platform %s!", name);
 40 
 41         ia64_mv = *mv;
 42         printk(KERN_INFO "booting generic kernel on platform %s\n", name);
 43 }
 44 
 45 void __init
 46 machvec_init_from_cmdline(const char *cmdline)
 47 {
 48         char str[64];
 49         const char *start;
 50         char *end;
 51 
 52         if (! (start = strstr(cmdline, "machvec=")) )
 53                 return machvec_init(NULL);
 54 
 55         strlcpy(str, start + strlen("machvec="), sizeof(str));
 56         if ( (end = strchr(str, ' ')) )
 57                 *end = '\0';
 58 
 59         return machvec_init(str);
 60 }
 61 
 62 #endif /* CONFIG_IA64_GENERIC */
 63 
 64 void
 65 machvec_setup (char **arg)
 66 {
 67 }
 68 EXPORT_SYMBOL(machvec_setup);
 69 
 70 void
 71 machvec_timer_interrupt (int irq, void *dev_id)
 72 {
 73 }
 74 EXPORT_SYMBOL(machvec_timer_interrupt);
 75 
 76 void
 77 machvec_dma_sync_single(struct device *hwdev, dma_addr_t dma_handle, size_t size,
 78                         enum dma_data_direction dir)
 79 {
 80         mb();
 81 }
 82 EXPORT_SYMBOL(machvec_dma_sync_single);
 83 
 84 void
 85 machvec_dma_sync_sg(struct device *hwdev, struct scatterlist *sg, int n,
 86                     enum dma_data_direction dir)
 87 {
 88         mb();
 89 }
 90 EXPORT_SYMBOL(machvec_dma_sync_sg);
 91 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp