29 #include <linux/kernel.h>
35 #include <linux/pci.h>
38 #include <linux/export.h>
40 #include <asm/processor.h>
43 #include <asm/machdep.h>
46 #include <asm/setup.h>
47 #include <asm/unwind.h>
56 #if !defined(CONFIG_PA20) && (defined(CONFIG_IOMMU_CCIO) || defined(CONFIG_IOMMU_SBA))
63 extern unsigned int boot_args[];
68 if (boot_args[0] < 64) {
74 #ifdef CONFIG_BLK_DEV_INITRD
75 if (boot_args[2] != 0)
88 void __init dma_ops_init(
void)
96 panic(
"PA-RISC Linux currently only supports machines that conform to\n"
97 "the PA-RISC 1.1 or 2.0 architecture specification.\n");
120 extern int parisc_narrow_firmware;
135 if(parisc_narrow_firmware) {
146 #ifdef CONFIG_CHASSIS_LCD_LED
155 #if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE)
175 return ((
long)*pos < 1) ? (
void *)1 :
NULL;
179 c_next (
struct seq_file *m,
void *
v, loff_t *pos)
197 static void __init parisc_proc_mkdir(
void)
208 if (
NULL == proc_gsc_root)
219 if (
NULL == proc_runway_root)
226 if (
NULL == proc_mckinley_root)
239 static struct resource central_bus = {
240 .name =
"Central Bus",
246 static struct resource local_broadcast = {
247 .name =
"Local Broadcast",
253 static struct resource global_broadcast = {
254 .name =
"Global Broadcast",
260 static int __init parisc_init_resources(
void)
267 "%s: failed to claim %s address space!\n",
268 __FILE__, central_bus.
name);
275 "%s: failed to claim %saddress space!\n",
276 __FILE__, local_broadcast.
name);
283 "%s: failed to claim %s address space!\n",
284 __FILE__, global_broadcast.
name);
301 static int __init parisc_init(
void)
306 parisc_init_resources();
327 #if defined(CONFIG_IOSAPIC)
330 #if defined(CONFIG_IOMMU_SBA)
333 #if defined(CONFIG_PCI_LBA)
338 #if defined(CONFIG_IOMMU_CCIO)
347 #if defined(CONFIG_GSC_LASI) || defined(CONFIG_GSC_WAX)
354 #if defined(CONFIG_HPPB)
358 #if defined(CONFIG_GSC_DINO)
362 #ifdef CONFIG_CHASSIS_LCD_LED
388 asm volatile (
"fstd %fr0,8(%sp)");
390 panic(
"must have an fpu to boot linux");