diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 11:18:34 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-04 11:18:34 -0400 |
| commit | 5a96c5d0c58ead9a0ece03ffe1c116dea6dafe9c (patch) | |
| tree | 17199c2c536f25a2b34e37045e9f7619a2dcbb3d /drivers | |
| parent | 13bbd8d90647132fc295d73b122567eb8987d298 (diff) | |
| parent | 5f024a251f0b3b179bbc8fc62f3a650e49359db5 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/willy/parisc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/willy/parisc-2.6: (41 commits)
[PARISC] Kill wall_jiffies use
[PARISC] Honour "panic_on_oops" sysctl
[PARISC] Fix fs/binfmt_som.c
[PARISC] Export clear_user_page to modules
[PARISC] Make DMA routines more stubby
[PARISC] Define pci_get_legacy_ide_irq
[PARISC] Fix CONFIG_DEBUG_SPINLOCK
[PARISC] Fix HPUX compat compile with current GCC
[PARISC] Fix iounmap compile warning
[PARISC] Add support for Quicksilver AGPGART
[PARISC] Move LBA and SBA register defines to the common ropes.h
[PARISC] Create shared <asm/ropes.h> header
[PARISC] Stash the lba_device in its struct device drvdata
[PARISC] Generalize IS_ASTRO et al to take a parisc_device like
[PARISC] Pretty print the name of the lba type on kernel boot
[PARISC] Remove some obsolete comments and I checked that Reo is similar to Ike
[PARISC] Add hardware found in the rp8400
[PARISC] Allow nested interrupts
[PARISC] Further updates to timer_interrupt()
[PARISC] remove halftick and copy clocktick to local var (gcc can optimize usage)
...
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/char/agp/Kconfig | 10 | ||||
| -rw-r--r-- | drivers/char/agp/Makefile | 1 | ||||
| -rw-r--r-- | drivers/char/agp/parisc-agp.c | 416 | ||||
| -rw-r--r-- | drivers/parisc/iosapic.c | 5 | ||||
| -rw-r--r-- | drivers/parisc/lba_pci.c | 122 | ||||
| -rw-r--r-- | drivers/parisc/sba_iommu.c | 267 | ||||
| -rw-r--r-- | drivers/serial/8250_gsc.c | 4 | ||||
| -rw-r--r-- | drivers/serial/Kconfig | 9 |
8 files changed, 486 insertions, 348 deletions
diff --git a/drivers/char/agp/Kconfig b/drivers/char/agp/Kconfig index 22f8cf218cc6..c603bf291580 100644 --- a/drivers/char/agp/Kconfig +++ b/drivers/char/agp/Kconfig | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | config AGP | 1 | config AGP |
| 2 | tristate "/dev/agpgart (AGP Support)" | 2 | tristate "/dev/agpgart (AGP Support)" |
| 3 | depends on ALPHA || IA64 || PPC || X86 | 3 | depends on ALPHA || IA64 || PARISC || PPC || X86 |
| 4 | depends on PCI | 4 | depends on PCI |
| 5 | ---help--- | 5 | ---help--- |
| 6 | AGP (Accelerated Graphics Port) is a bus system mainly used to | 6 | AGP (Accelerated Graphics Port) is a bus system mainly used to |
| @@ -122,6 +122,14 @@ config AGP_HP_ZX1 | |||
| 122 | This option gives you AGP GART support for the HP ZX1 chipset | 122 | This option gives you AGP GART support for the HP ZX1 chipset |
| 123 | for IA64 processors. | 123 | for IA64 processors. |
| 124 | 124 | ||
| 125 | config AGP_PARISC | ||
| 126 | tristate "HP Quicksilver AGP support" | ||
| 127 | depends on AGP && PARISC && 64BIT | ||
| 128 | help | ||
| 129 | This option gives you AGP GART support for the HP Quicksilver | ||
| 130 | AGP bus adapter on HP PA-RISC machines (Ok, just on the C8000 | ||
| 131 | workstation...) | ||
| 132 | |||
| 125 | config AGP_ALPHA_CORE | 133 | config AGP_ALPHA_CORE |
| 126 | tristate "Alpha AGP support" | 134 | tristate "Alpha AGP support" |
| 127 | depends on AGP && (ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL) | 135 | depends on AGP && (ALPHA_GENERIC || ALPHA_TITAN || ALPHA_MARVEL) |
diff --git a/drivers/char/agp/Makefile b/drivers/char/agp/Makefile index d33a22f2fa0b..3e581603d0a8 100644 --- a/drivers/char/agp/Makefile +++ b/drivers/char/agp/Makefile | |||
| @@ -8,6 +8,7 @@ obj-$(CONFIG_AGP_AMD64) += amd64-agp.o | |||
| 8 | obj-$(CONFIG_AGP_ALPHA_CORE) += alpha-agp.o | 8 | obj-$(CONFIG_AGP_ALPHA_CORE) += alpha-agp.o |
| 9 | obj-$(CONFIG_AGP_EFFICEON) += efficeon-agp.o | 9 | obj-$(CONFIG_AGP_EFFICEON) += efficeon-agp.o |
| 10 | obj-$(CONFIG_AGP_HP_ZX1) += hp-agp.o | 10 | obj-$(CONFIG_AGP_HP_ZX1) += hp-agp.o |
| 11 | obj-$(CONFIG_AGP_PARISC) += parisc-agp.o | ||
| 11 | obj-$(CONFIG_AGP_I460) += i460-agp.o | 12 | obj-$(CONFIG_AGP_I460) += i460-agp.o |
| 12 | obj-$(CONFIG_AGP_INTEL) += intel-agp.o | 13 | obj-$(CONFIG_AGP_INTEL) += intel-agp.o |
| 13 | obj-$(CONFIG_AGP_NVIDIA) += nvidia-agp.o | 14 | obj-$(CONFIG_AGP_NVIDIA) += nvidia-agp.o |
diff --git a/drivers/char/agp/parisc-agp.c b/drivers/char/agp/parisc-agp.c new file mode 100644 index 000000000000..17c50b0f83f0 --- /dev/null +++ b/drivers/char/agp/parisc-agp.c | |||
| @@ -0,0 +1,416 @@ | |||
| 1 | /* | ||
| 2 | * HP Quicksilver AGP GART routines | ||
| 3 | * | ||
| 4 | * Copyright (c) 2006, Kyle McMartin <kyle@parisc-linux.org> | ||
| 5 | * | ||
| 6 | * Based on drivers/char/agpgart/hp-agp.c which is | ||
| 7 | * (c) Copyright 2002, 2003 Hewlett-Packard Development Company, L.P. | ||
| 8 | * Bjorn Helgaas <bjorn.helgaas@hp.com> | ||
| 9 | * | ||
| 10 | * This program is free software; you can redistribute it and/or modify | ||
| 11 | * it under the terms of the GNU General Public License version 2 as | ||
| 12 | * published by the Free Software Foundation. | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | |||
| 16 | #include <linux/module.h> | ||
| 17 | #include <linux/pci.h> | ||
| 18 | #include <linux/init.h> | ||
| 19 | #include <linux/klist.h> | ||
| 20 | #include <linux/agp_backend.h> | ||
| 21 | |||
| 22 | #include <asm-parisc/parisc-device.h> | ||
| 23 | #include <asm-parisc/ropes.h> | ||
| 24 | |||
| 25 | #include "agp.h" | ||
| 26 | |||
| 27 | #define DRVNAME "quicksilver" | ||
| 28 | #define DRVPFX DRVNAME ": " | ||
| 29 | |||
| 30 | #ifndef log2 | ||
| 31 | #define log2(x) ffz(~(x)) | ||
| 32 | #endif | ||
| 33 | |||
| 34 | #define AGP8X_MODE_BIT 3 | ||
| 35 | #define AGP8X_MODE (1 << AGP8X_MODE_BIT) | ||
| 36 | |||
| 37 | static struct _parisc_agp_info { | ||
| 38 | void __iomem *ioc_regs; | ||
| 39 | void __iomem *lba_regs; | ||
| 40 | |||
| 41 | int lba_cap_offset; | ||
| 42 | |||
| 43 | u64 *gatt; | ||
| 44 | u64 gatt_entries; | ||
| 45 | |||
| 46 | u64 gart_base; | ||
| 47 | u64 gart_size; | ||
| 48 | |||
| 49 | int io_page_size; | ||
| 50 | int io_pages_per_kpage; | ||
| 51 | } parisc_agp_info; | ||
| 52 | |||
| 53 | static struct gatt_mask parisc_agp_masks[] = | ||
| 54 | { | ||
| 55 | { | ||
| 56 | .mask = SBA_PDIR_VALID_BIT, | ||
| 57 | .type = 0 | ||
| 58 | } | ||
| 59 | }; | ||
| 60 | |||
| 61 | static struct aper_size_info_fixed parisc_agp_sizes[] = | ||
| 62 | { | ||
| 63 | {0, 0, 0}, /* filled in by parisc_agp_fetch_size() */ | ||
| 64 | }; | ||
| 65 | |||
| 66 | static int | ||
| 67 | parisc_agp_fetch_size(void) | ||
| 68 | { | ||
| 69 | int size; | ||
| 70 | |||
| 71 | size = parisc_agp_info.gart_size / MB(1); | ||
| 72 | parisc_agp_sizes[0].size = size; | ||
| 73 | agp_bridge->current_size = (void *) &parisc_agp_sizes[0]; | ||
| 74 | |||
| 75 | return size; | ||
| 76 | } | ||
| 77 | |||
| 78 | static int | ||
| 79 | parisc_agp_configure(void) | ||
| 80 | { | ||
| 81 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 82 | |||
| 83 | agp_bridge->gart_bus_addr = info->gart_base; | ||
| 84 | agp_bridge->capndx = info->lba_cap_offset; | ||
| 85 | agp_bridge->mode = readl(info->lba_regs+info->lba_cap_offset+PCI_AGP_STATUS); | ||
| 86 | |||
| 87 | return 0; | ||
| 88 | } | ||
| 89 | |||
| 90 | static void | ||
| 91 | parisc_agp_tlbflush(struct agp_memory *mem) | ||
| 92 | { | ||
| 93 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 94 | |||
| 95 | writeq(info->gart_base | log2(info->gart_size), info->ioc_regs+IOC_PCOM); | ||
| 96 | readq(info->ioc_regs+IOC_PCOM); /* flush */ | ||
| 97 | } | ||
| 98 | |||
| 99 | static int | ||
| 100 | parisc_agp_create_gatt_table(struct agp_bridge_data *bridge) | ||
| 101 | { | ||
| 102 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 103 | int i; | ||
| 104 | |||
| 105 | for (i = 0; i < info->gatt_entries; i++) { | ||
| 106 | info->gatt[i] = (unsigned long)agp_bridge->scratch_page; | ||
| 107 | } | ||
| 108 | |||
| 109 | return 0; | ||
| 110 | } | ||
| 111 | |||
| 112 | static int | ||
| 113 | parisc_agp_free_gatt_table(struct agp_bridge_data *bridge) | ||
| 114 | { | ||
| 115 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 116 | |||
| 117 | info->gatt[0] = SBA_AGPGART_COOKIE; | ||
| 118 | |||
| 119 | return 0; | ||
| 120 | } | ||
| 121 | |||
| 122 | static int | ||
| 123 | parisc_agp_insert_memory(struct agp_memory *mem, off_t pg_start, int type) | ||
| 124 | { | ||
| 125 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 126 | int i, k; | ||
| 127 | off_t j, io_pg_start; | ||
| 128 | int io_pg_count; | ||
| 129 | |||
| 130 | if (type != 0 || mem->type != 0) { | ||
| 131 | return -EINVAL; | ||
| 132 | } | ||
| 133 | |||
| 134 | io_pg_start = info->io_pages_per_kpage * pg_start; | ||
| 135 | io_pg_count = info->io_pages_per_kpage * mem->page_count; | ||
| 136 | if ((io_pg_start + io_pg_count) > info->gatt_entries) { | ||
| 137 | return -EINVAL; | ||
| 138 | } | ||
| 139 | |||
| 140 | j = io_pg_start; | ||
| 141 | while (j < (io_pg_start + io_pg_count)) { | ||
| 142 | if (info->gatt[j]) | ||
| 143 | return -EBUSY; | ||
| 144 | j++; | ||
| 145 | } | ||
| 146 | |||
| 147 | if (mem->is_flushed == FALSE) { | ||
| 148 | global_cache_flush(); | ||
| 149 | mem->is_flushed = TRUE; | ||
| 150 | } | ||
| 151 | |||
| 152 | for (i = 0, j = io_pg_start; i < mem->page_count; i++) { | ||
| 153 | unsigned long paddr; | ||
| 154 | |||
| 155 | paddr = mem->memory[i]; | ||
| 156 | for (k = 0; | ||
| 157 | k < info->io_pages_per_kpage; | ||
| 158 | k++, j++, paddr += info->io_page_size) { | ||
| 159 | info->gatt[j] = | ||
| 160 | agp_bridge->driver->mask_memory(agp_bridge, | ||
| 161 | paddr, type); | ||
| 162 | } | ||
| 163 | } | ||
| 164 | |||
| 165 | agp_bridge->driver->tlb_flush(mem); | ||
| 166 | |||
| 167 | return 0; | ||
| 168 | } | ||
| 169 | |||
| 170 | static int | ||
| 171 | parisc_agp_remove_memory(struct agp_memory *mem, off_t pg_start, int type) | ||
| 172 | { | ||
| 173 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 174 | int i, io_pg_start, io_pg_count; | ||
| 175 | |||
| 176 | if (type != 0 || mem->type != 0) { | ||
| 177 | return -EINVAL; | ||
| 178 | } | ||
| 179 | |||
| 180 | io_pg_start = info->io_pages_per_kpage * pg_start; | ||
| 181 | io_pg_count = info->io_pages_per_kpage * mem->page_count; | ||
| 182 | for (i = io_pg_start; i < io_pg_count + io_pg_start; i++) { | ||
| 183 | info->gatt[i] = agp_bridge->scratch_page; | ||
| 184 | } | ||
| 185 | |||
| 186 | agp_bridge->driver->tlb_flush(mem); | ||
| 187 | return 0; | ||
| 188 | } | ||
| 189 | |||
| 190 | static unsigned long | ||
| 191 | parisc_agp_mask_memory(struct agp_bridge_data *bridge, | ||
| 192 | unsigned long addr, int type) | ||
| 193 | { | ||
| 194 | return SBA_PDIR_VALID_BIT | addr; | ||
| 195 | } | ||
| 196 | |||
| 197 | static void | ||
| 198 | parisc_agp_enable(struct agp_bridge_data *bridge, u32 mode) | ||
| 199 | { | ||
| 200 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 201 | u32 command; | ||
| 202 | |||
| 203 | command = readl(info->lba_regs + info->lba_cap_offset + PCI_AGP_STATUS); | ||
| 204 | |||
| 205 | command = agp_collect_device_status(bridge, mode, command); | ||
| 206 | command |= 0x00000100; | ||
| 207 | |||
| 208 | writel(command, info->lba_regs + info->lba_cap_offset + PCI_AGP_COMMAND); | ||
| 209 | |||
| 210 | agp_device_command(command, (mode & AGP8X_MODE) != 0); | ||
| 211 | } | ||
| 212 | |||
| 213 | struct agp_bridge_driver parisc_agp_driver = { | ||
| 214 | .owner = THIS_MODULE, | ||
| 215 | .size_type = FIXED_APER_SIZE, | ||
| 216 | .configure = parisc_agp_configure, | ||
| 217 | .fetch_size = parisc_agp_fetch_size, | ||
| 218 | .tlb_flush = parisc_agp_tlbflush, | ||
| 219 | .mask_memory = parisc_agp_mask_memory, | ||
| 220 | .masks = parisc_agp_masks, | ||
| 221 | .agp_enable = parisc_agp_enable, | ||
| 222 | .cache_flush = global_cache_flush, | ||
| 223 | .create_gatt_table = parisc_agp_create_gatt_table, | ||
| 224 | .free_gatt_table = parisc_agp_free_gatt_table, | ||
| 225 | .insert_memory = parisc_agp_insert_memory, | ||
| 226 | .remove_memory = parisc_agp_remove_memory, | ||
| 227 | .alloc_by_type = agp_generic_alloc_by_type, | ||
| 228 | .free_by_type = agp_generic_free_by_type, | ||
| 229 | .agp_alloc_page = agp_generic_alloc_page, | ||
| 230 | .agp_destroy_page = agp_generic_destroy_page, | ||
| 231 | .cant_use_aperture = 1, | ||
| 232 | }; | ||
| 233 | |||
| 234 | static int __init | ||
| 235 | agp_ioc_init(void __iomem *ioc_regs) | ||
| 236 | { | ||
| 237 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 238 | u64 *iova_base, *io_pdir, io_tlb_ps; | ||
| 239 | int io_tlb_shift; | ||
| 240 | |||
| 241 | printk(KERN_INFO DRVPFX "IO PDIR shared with sba_iommu\n"); | ||
| 242 | |||
| 243 | info->ioc_regs = ioc_regs; | ||
| 244 | |||
| 245 | io_tlb_ps = readq(info->ioc_regs+IOC_TCNFG); | ||
| 246 | switch (io_tlb_ps) { | ||
| 247 | case 0: io_tlb_shift = 12; break; | ||
| 248 | case 1: io_tlb_shift = 13; break; | ||
| 249 | case 2: io_tlb_shift = 14; break; | ||
| 250 | case 3: io_tlb_shift = 16; break; | ||
| 251 | default: | ||
| 252 | printk(KERN_ERR DRVPFX "Invalid IOTLB page size " | ||
| 253 | "configuration 0x%llx\n", io_tlb_ps); | ||
| 254 | info->gatt = NULL; | ||
| 255 | info->gatt_entries = 0; | ||
| 256 | return -ENODEV; | ||
| 257 | } | ||
| 258 | info->io_page_size = 1 << io_tlb_shift; | ||
| 259 | info->io_pages_per_kpage = PAGE_SIZE / info->io_page_size; | ||
| 260 | |||
| 261 | iova_base = readq(info->ioc_regs+IOC_IBASE) & ~0x1; | ||
| 262 | info->gart_base = iova_base + PLUTO_IOVA_SIZE - PLUTO_GART_SIZE; | ||
| 263 | |||
| 264 | info->gart_size = PLUTO_GART_SIZE; | ||
| 265 | info->gatt_entries = info->gart_size / info->io_page_size; | ||
| 266 | |||
| 267 | io_pdir = phys_to_virt(readq(info->ioc_regs+IOC_PDIR_BASE)); | ||
| 268 | info->gatt = &io_pdir[(PLUTO_IOVA_SIZE/2) >> PAGE_SHIFT]; | ||
| 269 | |||
| 270 | if (info->gatt[0] != SBA_AGPGART_COOKIE) { | ||
| 271 | info->gatt = NULL; | ||
| 272 | info->gatt_entries = 0; | ||
| 273 | printk(KERN_ERR DRVPFX "No reserved IO PDIR entry found; " | ||
| 274 | "GART disabled\n"); | ||
| 275 | return -ENODEV; | ||
| 276 | } | ||
| 277 | |||
| 278 | return 0; | ||
| 279 | } | ||
| 280 | |||
| 281 | static int | ||
| 282 | lba_find_capability(int cap) | ||
| 283 | { | ||
| 284 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 285 | u16 status; | ||
| 286 | u8 pos, id; | ||
| 287 | int ttl = 48; | ||
| 288 | |||
| 289 | status = readw(info->lba_regs + PCI_STATUS); | ||
| 290 | if (!(status & PCI_STATUS_CAP_LIST)) | ||
| 291 | return 0; | ||
| 292 | pos = readb(info->lba_regs + PCI_CAPABILITY_LIST); | ||
| 293 | while (ttl-- && pos >= 0x40) { | ||
| 294 | pos &= ~3; | ||
| 295 | id = readb(info->lba_regs + pos + PCI_CAP_LIST_ID); | ||
| 296 | if (id == 0xff) | ||
| 297 | break; | ||
| 298 | if (id == cap) | ||
| 299 | return pos; | ||
| 300 | pos = readb(info->lba_regs + pos + PCI_CAP_LIST_NEXT); | ||
| 301 | } | ||
| 302 | return 0; | ||
| 303 | } | ||
| 304 | |||
| 305 | static int __init | ||
| 306 | agp_lba_init(void __iomem *lba_hpa) | ||
| 307 | { | ||
| 308 | struct _parisc_agp_info *info = &parisc_agp_info; | ||
| 309 | int cap; | ||
| 310 | |||
| 311 | info->lba_regs = lba_hpa; | ||
| 312 | info->lba_cap_offset = lba_find_capability(PCI_CAP_ID_AGP); | ||
| 313 | |||
| 314 | cap = readl(lba_hpa + info->lba_cap_offset) & 0xff; | ||
| 315 | if (cap != PCI_CAP_ID_AGP) { | ||
| 316 | printk(KERN_ERR DRVPFX "Invalid capability ID 0x%02x at 0x%x\n", | ||
| 317 | cap, info->lba_cap_offset); | ||
| 318 | return -ENODEV; | ||
| 319 | } | ||
| 320 | |||
| 321 | return 0; | ||
| 322 | } | ||
| 323 | |||
| 324 | static int __init | ||
| 325 | parisc_agp_setup(void __iomem *ioc_hpa, void __iomem *lba_hpa) | ||
| 326 | { | ||
| 327 | struct pci_dev *fake_bridge_dev = NULL; | ||
| 328 | struct agp_bridge_data *bridge; | ||
| 329 | int error = 0; | ||
| 330 | |||
| 331 | fake_bridge_dev = kmalloc(sizeof (struct pci_dev), GFP_KERNEL); | ||
| 332 | if (!fake_bridge_dev) { | ||
| 333 | error = -ENOMEM; | ||
| 334 | goto fail; | ||
| 335 | } | ||
| 336 | |||
| 337 | error = agp_ioc_init(ioc_hpa); | ||
| 338 | if (error) | ||
| 339 | goto fail; | ||
| 340 | |||
| 341 | error = agp_lba_init(lba_hpa); | ||
| 342 | if (error) | ||
| 343 | goto fail; | ||
| 344 | |||
| 345 | bridge = agp_alloc_bridge(); | ||
| 346 | if (!bridge) { | ||
| 347 | error = -ENOMEM; | ||
| 348 | goto fail; | ||
| 349 | } | ||
| 350 | bridge->driver = &parisc_agp_driver; | ||
| 351 | |||
| 352 | fake_bridge_dev->vendor = PCI_VENDOR_ID_HP; | ||
| 353 | fake_bridge_dev->device = PCI_DEVICE_ID_HP_PCIX_LBA; | ||
| 354 | bridge->dev = fake_bridge_dev; | ||
| 355 | |||
| 356 | error = agp_add_bridge(bridge); | ||
| 357 | |||
| 358 | fail: | ||
| 359 | return error; | ||
| 360 | } | ||
| 361 | |||
| 362 | static struct device *next_device(struct klist_iter *i) { | ||
| 363 | struct klist_node * n = klist_next(i); | ||
| 364 | return n ? container_of(n, struct device, knode_parent) : NULL; | ||
| 365 | } | ||
| 366 | |||
| 367 | static int | ||
| 368 | parisc_agp_init(void) | ||
| 369 | { | ||
| 370 | extern struct sba_device *sba_list; | ||
| 371 | |||
| 372 | int err = -1; | ||
| 373 | struct parisc_device *sba = NULL, *lba = NULL; | ||
| 374 | struct lba_device *lbadev = NULL; | ||
| 375 | struct device *dev = NULL; | ||
| 376 | struct klist_iter i; | ||
| 377 | |||
| 378 | if (!sba_list) | ||
| 379 | goto out; | ||
| 380 | |||
| 381 | /* Find our parent Pluto */ | ||
| 382 | sba = sba_list->dev; | ||
| 383 | if (!IS_PLUTO(sba)) { | ||
| 384 | printk(KERN_INFO DRVPFX "No Pluto found, so no AGPGART for you.\n"); | ||
| 385 | goto out; | ||
| 386 | } | ||
| 387 | |||
| 388 | /* Now search our Pluto for our precious AGP device... */ | ||
| 389 | klist_iter_init(&sba->dev.klist_children, &i); | ||
| 390 | while ((dev = next_device(&i))) { | ||
| 391 | struct parisc_device *padev = to_parisc_device(dev); | ||
| 392 | if (IS_QUICKSILVER(padev)) | ||
| 393 | lba = padev; | ||
| 394 | } | ||
| 395 | klist_iter_exit(&i); | ||
| 396 | |||
| 397 | if (!lba) { | ||
| 398 | printk(KERN_INFO DRVPFX "No AGP devices found.\n"); | ||
| 399 | goto out; | ||
| 400 | } | ||
| 401 | |||
| 402 | lbadev = parisc_get_drvdata(lba); | ||
| 403 | |||
| 404 | /* w00t, let's go find our cookies... */ | ||
| 405 | parisc_agp_setup(sba_list->ioc[0].ioc_hpa, lbadev->hba.base_addr); | ||
| 406 | |||
| 407 | return 0; | ||
| 408 | |||
| 409 | out: | ||
| 410 | return err; | ||
| 411 | } | ||
| 412 | |||
| 413 | module_init(parisc_agp_init); | ||
| 414 | |||
| 415 | MODULE_AUTHOR("Kyle McMartin <kyle@parisc-linux.org>"); | ||
| 416 | MODULE_LICENSE("GPL"); | ||
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c index 1fbda77cefc2..c2949b4367e5 100644 --- a/drivers/parisc/iosapic.c +++ b/drivers/parisc/iosapic.c | |||
| @@ -146,7 +146,7 @@ | |||
| 146 | #include <asm/superio.h> | 146 | #include <asm/superio.h> |
| 147 | #endif | 147 | #endif |
| 148 | 148 | ||
| 149 | #include <asm/iosapic.h> | 149 | #include <asm/ropes.h> |
| 150 | #include "./iosapic_private.h" | 150 | #include "./iosapic_private.h" |
| 151 | 151 | ||
| 152 | #define MODULE_NAME "iosapic" | 152 | #define MODULE_NAME "iosapic" |
| @@ -692,6 +692,7 @@ static void iosapic_end_irq(unsigned int irq) | |||
| 692 | DBG(KERN_DEBUG "end_irq(%d): eoi(%p, 0x%x)\n", irq, | 692 | DBG(KERN_DEBUG "end_irq(%d): eoi(%p, 0x%x)\n", irq, |
| 693 | vi->eoi_addr, vi->eoi_data); | 693 | vi->eoi_addr, vi->eoi_data); |
| 694 | iosapic_eoi(vi->eoi_addr, vi->eoi_data); | 694 | iosapic_eoi(vi->eoi_addr, vi->eoi_data); |
| 695 | cpu_end_irq(irq); | ||
| 695 | } | 696 | } |
| 696 | 697 | ||
| 697 | static unsigned int iosapic_startup_irq(unsigned int irq) | 698 | static unsigned int iosapic_startup_irq(unsigned int irq) |
| @@ -728,7 +729,7 @@ static struct hw_interrupt_type iosapic_interrupt_type = { | |||
| 728 | .shutdown = iosapic_disable_irq, | 729 | .shutdown = iosapic_disable_irq, |
| 729 | .enable = iosapic_enable_irq, | 730 | .enable = iosapic_enable_irq, |
| 730 | .disable = iosapic_disable_irq, | 731 | .disable = iosapic_disable_irq, |
| 731 | .ack = no_ack_irq, | 732 | .ack = cpu_ack_irq, |
| 732 | .end = iosapic_end_irq, | 733 | .end = iosapic_end_irq, |
| 733 | #ifdef CONFIG_SMP | 734 | #ifdef CONFIG_SMP |
| 734 | .set_affinity = iosapic_set_affinity_irq, | 735 | .set_affinity = iosapic_set_affinity_irq, |
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c index 3fe4a77fa16a..ba6769934c77 100644 --- a/drivers/parisc/lba_pci.c +++ b/drivers/parisc/lba_pci.c | |||
| @@ -46,9 +46,9 @@ | |||
| 46 | #include <asm/page.h> | 46 | #include <asm/page.h> |
| 47 | #include <asm/system.h> | 47 | #include <asm/system.h> |
| 48 | 48 | ||
| 49 | #include <asm/ropes.h> | ||
| 49 | #include <asm/hardware.h> /* for register_parisc_driver() stuff */ | 50 | #include <asm/hardware.h> /* for register_parisc_driver() stuff */ |
| 50 | #include <asm/parisc-device.h> | 51 | #include <asm/parisc-device.h> |
| 51 | #include <asm/iosapic.h> /* for iosapic_register() */ | ||
| 52 | #include <asm/io.h> /* read/write stuff */ | 52 | #include <asm/io.h> /* read/write stuff */ |
| 53 | 53 | ||
| 54 | #undef DEBUG_LBA /* general stuff */ | 54 | #undef DEBUG_LBA /* general stuff */ |
| @@ -100,113 +100,10 @@ | |||
| 100 | 100 | ||
| 101 | #define MODULE_NAME "LBA" | 101 | #define MODULE_NAME "LBA" |
| 102 | 102 | ||
| 103 | #define LBA_FUNC_ID 0x0000 /* function id */ | ||
| 104 | #define LBA_FCLASS 0x0008 /* function class, bist, header, rev... */ | ||
| 105 | #define LBA_CAPABLE 0x0030 /* capabilities register */ | ||
| 106 | |||
| 107 | #define LBA_PCI_CFG_ADDR 0x0040 /* poke CFG address here */ | ||
| 108 | #define LBA_PCI_CFG_DATA 0x0048 /* read or write data here */ | ||
| 109 | |||
| 110 | #define LBA_PMC_MTLT 0x0050 /* Firmware sets this - read only. */ | ||
| 111 | #define LBA_FW_SCRATCH 0x0058 /* Firmware writes the PCI bus number here. */ | ||
| 112 | #define LBA_ERROR_ADDR 0x0070 /* On error, address gets logged here */ | ||
| 113 | |||
| 114 | #define LBA_ARB_MASK 0x0080 /* bit 0 enable arbitration. PAT/PDC enables */ | ||
| 115 | #define LBA_ARB_PRI 0x0088 /* firmware sets this. */ | ||
| 116 | #define LBA_ARB_MODE 0x0090 /* firmware sets this. */ | ||
| 117 | #define LBA_ARB_MTLT 0x0098 /* firmware sets this. */ | ||
| 118 | |||
| 119 | #define LBA_MOD_ID 0x0100 /* Module ID. PDC_PAT_CELL reports 4 */ | ||
| 120 | |||
| 121 | #define LBA_STAT_CTL 0x0108 /* Status & Control */ | ||
| 122 | #define LBA_BUS_RESET 0x01 /* Deassert PCI Bus Reset Signal */ | ||
| 123 | #define CLEAR_ERRLOG 0x10 /* "Clear Error Log" cmd */ | ||
| 124 | #define CLEAR_ERRLOG_ENABLE 0x20 /* "Clear Error Log" Enable */ | ||
| 125 | #define HF_ENABLE 0x40 /* enable HF mode (default is -1 mode) */ | ||
| 126 | |||
| 127 | #define LBA_LMMIO_BASE 0x0200 /* < 4GB I/O address range */ | ||
| 128 | #define LBA_LMMIO_MASK 0x0208 | ||
| 129 | |||
| 130 | #define LBA_GMMIO_BASE 0x0210 /* > 4GB I/O address range */ | ||
| 131 | #define LBA_GMMIO_MASK 0x0218 | ||
| 132 | |||
| 133 | #define LBA_WLMMIO_BASE 0x0220 /* All < 4GB ranges under the same *SBA* */ | ||
| 134 | #define LBA_WLMMIO_MASK 0x0228 | ||
| 135 | |||
| 136 | #define LBA_WGMMIO_BASE 0x0230 /* All > 4GB ranges under the same *SBA* */ | ||
| 137 | #define LBA_WGMMIO_MASK 0x0238 | ||
| 138 | |||
| 139 | #define LBA_IOS_BASE 0x0240 /* I/O port space for this LBA */ | ||
| 140 | #define LBA_IOS_MASK 0x0248 | ||
| 141 | |||
| 142 | #define LBA_ELMMIO_BASE 0x0250 /* Extra LMMIO range */ | ||
| 143 | #define LBA_ELMMIO_MASK 0x0258 | ||
| 144 | |||
| 145 | #define LBA_EIOS_BASE 0x0260 /* Extra I/O port space */ | ||
| 146 | #define LBA_EIOS_MASK 0x0268 | ||
| 147 | |||
| 148 | #define LBA_GLOBAL_MASK 0x0270 /* Mercury only: Global Address Mask */ | ||
| 149 | #define LBA_DMA_CTL 0x0278 /* firmware sets this */ | ||
| 150 | |||
| 151 | #define LBA_IBASE 0x0300 /* SBA DMA support */ | ||
| 152 | #define LBA_IMASK 0x0308 | ||
| 153 | |||
| 154 | /* FIXME: ignore DMA Hint stuff until we can measure performance */ | ||
| 155 | #define LBA_HINT_CFG 0x0310 | ||
| 156 | #define LBA_HINT_BASE 0x0380 /* 14 registers at every 8 bytes. */ | ||
| 157 | |||
| 158 | #define LBA_BUS_MODE 0x0620 | ||
| 159 | |||
| 160 | /* ERROR regs are needed for config cycle kluges */ | ||
| 161 | #define LBA_ERROR_CONFIG 0x0680 | ||
| 162 | #define LBA_SMART_MODE 0x20 | ||
| 163 | #define LBA_ERROR_STATUS 0x0688 | ||
| 164 | #define LBA_ROPE_CTL 0x06A0 | ||
| 165 | |||
| 166 | #define LBA_IOSAPIC_BASE 0x800 /* Offset of IRQ logic */ | ||
| 167 | |||
| 168 | /* non-postable I/O port space, densely packed */ | 103 | /* non-postable I/O port space, densely packed */ |
| 169 | #define LBA_PORT_BASE (PCI_F_EXTEND | 0xfee00000UL) | 104 | #define LBA_PORT_BASE (PCI_F_EXTEND | 0xfee00000UL) |
| 170 | static void __iomem *astro_iop_base __read_mostly; | 105 | static void __iomem *astro_iop_base __read_mostly; |
| 171 | 106 | ||
| 172 | #define ELROY_HVERS 0x782 | ||
| 173 | #define MERCURY_HVERS 0x783 | ||
| 174 | #define QUICKSILVER_HVERS 0x784 | ||
| 175 | |||
| 176 | static inline int IS_ELROY(struct parisc_device *d) | ||
| 177 | { | ||
| 178 | return (d->id.hversion == ELROY_HVERS); | ||
| 179 | } | ||
| 180 | |||
| 181 | static inline int IS_MERCURY(struct parisc_device *d) | ||
| 182 | { | ||
| 183 | return (d->id.hversion == MERCURY_HVERS); | ||
| 184 | } | ||
| 185 | |||
| 186 | static inline int IS_QUICKSILVER(struct parisc_device *d) | ||
| 187 | { | ||
| 188 | return (d->id.hversion == QUICKSILVER_HVERS); | ||
| 189 | } | ||
| 190 | |||
| 191 | |||
| 192 | /* | ||
| 193 | ** lba_device: Per instance Elroy data structure | ||
| 194 | */ | ||
| 195 | struct lba_device { | ||
| 196 | struct pci_hba_data hba; | ||
| 197 | |||
| 198 | spinlock_t lba_lock; | ||
| 199 | void *iosapic_obj; | ||
| 200 | |||
| 201 | #ifdef CONFIG_64BIT | ||
| 202 | void __iomem * iop_base; /* PA_VIEW - for IO port accessor funcs */ | ||
| 203 | #endif | ||
| 204 | |||
| 205 | int flags; /* state/functionality enabled */ | ||
| 206 | int hw_rev; /* HW revision of chip */ | ||
| 207 | }; | ||
| 208 | |||
| 209 | |||
| 210 | static u32 lba_t32; | 107 | static u32 lba_t32; |
| 211 | 108 | ||
| 212 | /* lba flags */ | 109 | /* lba flags */ |
| @@ -1542,8 +1439,8 @@ lba_driver_probe(struct parisc_device *dev) | |||
| 1542 | default: version = "TR4+"; | 1439 | default: version = "TR4+"; |
| 1543 | } | 1440 | } |
| 1544 | 1441 | ||
| 1545 | printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", | 1442 | printk(KERN_INFO "Elroy version %s (0x%x) found at 0x%lx\n", |
| 1546 | MODULE_NAME, version, func_class & 0xf, dev->hpa.start); | 1443 | version, func_class & 0xf, dev->hpa.start); |
| 1547 | 1444 | ||
| 1548 | if (func_class < 2) { | 1445 | if (func_class < 2) { |
| 1549 | printk(KERN_WARNING "Can't support LBA older than " | 1446 | printk(KERN_WARNING "Can't support LBA older than " |
| @@ -1563,14 +1460,18 @@ lba_driver_probe(struct parisc_device *dev) | |||
| 1563 | } | 1460 | } |
| 1564 | 1461 | ||
| 1565 | } else if (IS_MERCURY(dev) || IS_QUICKSILVER(dev)) { | 1462 | } else if (IS_MERCURY(dev) || IS_QUICKSILVER(dev)) { |
| 1463 | int major, minor; | ||
| 1464 | |||
| 1566 | func_class &= 0xff; | 1465 | func_class &= 0xff; |
| 1567 | version = kmalloc(6, GFP_KERNEL); | 1466 | major = func_class >> 4, minor = func_class & 0xf; |
| 1568 | snprintf(version, 6, "TR%d.%d",(func_class >> 4),(func_class & 0xf)); | 1467 | |
| 1569 | /* We could use one printk for both Elroy and Mercury, | 1468 | /* We could use one printk for both Elroy and Mercury, |
| 1570 | * but for the mask for func_class. | 1469 | * but for the mask for func_class. |
| 1571 | */ | 1470 | */ |
| 1572 | printk(KERN_INFO "%s version %s (0x%x) found at 0x%lx\n", | 1471 | printk(KERN_INFO "%s version TR%d.%d (0x%x) found at 0x%lx\n", |
| 1573 | MODULE_NAME, version, func_class & 0xff, dev->hpa.start); | 1472 | IS_MERCURY(dev) ? "Mercury" : "Quicksilver", major, |
| 1473 | minor, func_class, dev->hpa.start); | ||
| 1474 | |||
| 1574 | cfg_ops = &mercury_cfg_ops; | 1475 | cfg_ops = &mercury_cfg_ops; |
| 1575 | } else { | 1476 | } else { |
| 1576 | printk(KERN_ERR "Unknown LBA found at 0x%lx\n", dev->hpa.start); | 1477 | printk(KERN_ERR "Unknown LBA found at 0x%lx\n", dev->hpa.start); |
| @@ -1600,6 +1501,7 @@ lba_driver_probe(struct parisc_device *dev) | |||
| 1600 | lba_dev->hba.dev = dev; | 1501 | lba_dev->hba.dev = dev; |
| 1601 | lba_dev->iosapic_obj = tmp_obj; /* save interrupt handle */ | 1502 | lba_dev->iosapic_obj = tmp_obj; /* save interrupt handle */ |
| 1602 | lba_dev->hba.iommu = sba_get_iommu(dev); /* get iommu data */ | 1503 | lba_dev->hba.iommu = sba_get_iommu(dev); /* get iommu data */ |
| 1504 | parisc_set_drvdata(dev, lba_dev); | ||
| 1603 | 1505 | ||
| 1604 | /* ------------ Second : initialize common stuff ---------- */ | 1506 | /* ------------ Second : initialize common stuff ---------- */ |
| 1605 | pci_bios = &lba_bios_ops; | 1507 | pci_bios = &lba_bios_ops; |
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c index 8b4732815511..294c1117098d 100644 --- a/drivers/parisc/sba_iommu.c +++ b/drivers/parisc/sba_iommu.c | |||
| @@ -38,22 +38,15 @@ | |||
| 38 | #include <linux/proc_fs.h> | 38 | #include <linux/proc_fs.h> |
| 39 | #include <linux/seq_file.h> | 39 | #include <linux/seq_file.h> |
| 40 | 40 | ||
| 41 | #include <asm/ropes.h> | ||
| 42 | #include <asm/mckinley.h> /* for proc_mckinley_root */ | ||
| 41 | #include <asm/runway.h> /* for proc_runway_root */ | 43 | #include <asm/runway.h> /* for proc_runway_root */ |
| 42 | #include <asm/pdc.h> /* for PDC_MODEL_* */ | 44 | #include <asm/pdc.h> /* for PDC_MODEL_* */ |
| 43 | #include <asm/pdcpat.h> /* for is_pdc_pat() */ | 45 | #include <asm/pdcpat.h> /* for is_pdc_pat() */ |
| 44 | #include <asm/parisc-device.h> | 46 | #include <asm/parisc-device.h> |
| 45 | 47 | ||
| 46 | |||
| 47 | /* declared in arch/parisc/kernel/setup.c */ | ||
| 48 | extern struct proc_dir_entry * proc_mckinley_root; | ||
| 49 | |||
| 50 | #define MODULE_NAME "SBA" | 48 | #define MODULE_NAME "SBA" |
| 51 | 49 | ||
| 52 | #ifdef CONFIG_PROC_FS | ||
| 53 | /* depends on proc fs support. But costs CPU performance */ | ||
| 54 | #undef SBA_COLLECT_STATS | ||
| 55 | #endif | ||
| 56 | |||
| 57 | /* | 50 | /* |
| 58 | ** The number of debug flags is a clue - this code is fragile. | 51 | ** The number of debug flags is a clue - this code is fragile. |
| 59 | ** Don't even think about messing with it unless you have | 52 | ** Don't even think about messing with it unless you have |
| @@ -92,202 +85,12 @@ extern struct proc_dir_entry * proc_mckinley_root; | |||
| 92 | #define DBG_RES(x...) | 85 | #define DBG_RES(x...) |
| 93 | #endif | 86 | #endif |
| 94 | 87 | ||
| 95 | #if defined(CONFIG_64BIT) | ||
| 96 | /* "low end" PA8800 machines use ZX1 chipset: PAT PDC and only run 64-bit */ | ||
| 97 | #define ZX1_SUPPORT | ||
| 98 | #endif | ||
| 99 | |||
| 100 | #define SBA_INLINE __inline__ | 88 | #define SBA_INLINE __inline__ |
| 101 | 89 | ||
| 102 | |||
| 103 | /* | ||
| 104 | ** The number of pdir entries to "free" before issueing | ||
| 105 | ** a read to PCOM register to flush out PCOM writes. | ||
| 106 | ** Interacts with allocation granularity (ie 4 or 8 entries | ||
| 107 | ** allocated and free'd/purged at a time might make this | ||
| 108 | ** less interesting). | ||
| 109 | */ | ||
| 110 | #define DELAYED_RESOURCE_CNT 16 | ||
| 111 | |||
| 112 | #define DEFAULT_DMA_HINT_REG 0 | 90 | #define DEFAULT_DMA_HINT_REG 0 |
| 113 | 91 | ||
| 114 | #define ASTRO_RUNWAY_PORT 0x582 | 92 | struct sba_device *sba_list; |
| 115 | #define IKE_MERCED_PORT 0x803 | 93 | EXPORT_SYMBOL_GPL(sba_list); |
| 116 | #define REO_MERCED_PORT 0x804 | ||
| 117 | #define REOG_MERCED_PORT 0x805 | ||
| 118 | #define PLUTO_MCKINLEY_PORT 0x880 | ||
| 119 | |||
| 120 | #define SBA_FUNC_ID 0x0000 /* function id */ | ||
| 121 | #define SBA_FCLASS 0x0008 /* function class, bist, header, rev... */ | ||
| 122 | |||
| 123 | #define IS_ASTRO(id) ((id)->hversion == ASTRO_RUNWAY_PORT) | ||
| 124 | #define IS_IKE(id) ((id)->hversion == IKE_MERCED_PORT) | ||
| 125 | #define IS_PLUTO(id) ((id)->hversion == PLUTO_MCKINLEY_PORT) | ||
| 126 | |||
| 127 | #define SBA_FUNC_SIZE 4096 /* SBA configuration function reg set */ | ||
| 128 | |||
| 129 | #define ASTRO_IOC_OFFSET (32 * SBA_FUNC_SIZE) | ||
| 130 | #define PLUTO_IOC_OFFSET (1 * SBA_FUNC_SIZE) | ||
| 131 | /* Ike's IOC's occupy functions 2 and 3 */ | ||
| 132 | #define IKE_IOC_OFFSET(p) ((p+2) * SBA_FUNC_SIZE) | ||
| 133 | |||
| 134 | #define IOC_CTRL 0x8 /* IOC_CTRL offset */ | ||
| 135 | #define IOC_CTRL_TC (1 << 0) /* TOC Enable */ | ||
| 136 | #define IOC_CTRL_CE (1 << 1) /* Coalesce Enable */ | ||
| 137 | #define IOC_CTRL_DE (1 << 2) /* Dillon Enable */ | ||
| 138 | #define IOC_CTRL_RM (1 << 8) /* Real Mode */ | ||
| 139 | #define IOC_CTRL_NC (1 << 9) /* Non Coherent Mode */ | ||
| 140 | #define IOC_CTRL_D4 (1 << 11) /* Disable 4-byte coalescing */ | ||
| 141 | #define IOC_CTRL_DD (1 << 13) /* Disable distr. LMMIO range coalescing */ | ||
| 142 | |||
| 143 | #define MAX_IOC 2 /* per Ike. Pluto/Astro only have 1. */ | ||
| 144 | |||
| 145 | #define ROPES_PER_IOC 8 /* per Ike half or Pluto/Astro */ | ||
| 146 | |||
| 147 | |||
| 148 | /* | ||
| 149 | ** Offsets into MBIB (Function 0 on Ike and hopefully Astro) | ||
| 150 | ** Firmware programs this stuff. Don't touch it. | ||
| 151 | */ | ||
| 152 | #define LMMIO_DIRECT0_BASE 0x300 | ||
| 153 | #define LMMIO_DIRECT0_MASK 0x308 | ||
| 154 | #define LMMIO_DIRECT0_ROUTE 0x310 | ||
| 155 | |||
| 156 | #define LMMIO_DIST_BASE 0x360 | ||
| 157 | #define LMMIO_DIST_MASK 0x368 | ||
| 158 | #define LMMIO_DIST_ROUTE 0x370 | ||
| 159 | |||
| 160 | #define IOS_DIST_BASE 0x390 | ||
| 161 | #define IOS_DIST_MASK 0x398 | ||
| 162 | #define IOS_DIST_ROUTE 0x3A0 | ||
| 163 | |||
| 164 | #define IOS_DIRECT_BASE 0x3C0 | ||
| 165 | #define IOS_DIRECT_MASK 0x3C8 | ||
| 166 | #define IOS_DIRECT_ROUTE 0x3D0 | ||
| 167 | |||
| 168 | /* | ||
| 169 | ** Offsets into I/O TLB (Function 2 and 3 on Ike) | ||
| 170 | */ | ||
| 171 | #define ROPE0_CTL 0x200 /* "regbus pci0" */ | ||
| 172 | #define ROPE1_CTL 0x208 | ||
| 173 | #define ROPE2_CTL 0x210 | ||
| 174 | #define ROPE3_CTL 0x218 | ||
| 175 | #define ROPE4_CTL 0x220 | ||
| 176 | #define ROPE5_CTL 0x228 | ||
| 177 | #define ROPE6_CTL 0x230 | ||
| 178 | #define ROPE7_CTL 0x238 | ||
| 179 | |||
| 180 | #define IOC_ROPE0_CFG 0x500 /* pluto only */ | ||
| 181 | #define IOC_ROPE_AO 0x10 /* Allow "Relaxed Ordering" */ | ||
| 182 | |||
| 183 | |||
| 184 | |||
| 185 | #define HF_ENABLE 0x40 | ||
| 186 | |||
| 187 | |||
| 188 | #define IOC_IBASE 0x300 /* IO TLB */ | ||
| 189 | #define IOC_IMASK 0x308 | ||
| 190 | #define IOC_PCOM 0x310 | ||
| 191 | #define IOC_TCNFG 0x318 | ||
| 192 | #define IOC_PDIR_BASE 0x320 | ||
| 193 | |||
| 194 | /* AGP GART driver looks for this */ | ||
| 195 | #define SBA_IOMMU_COOKIE 0x0000badbadc0ffeeUL | ||
| 196 | |||
| 197 | |||
| 198 | /* | ||
| 199 | ** IOC supports 4/8/16/64KB page sizes (see TCNFG register) | ||
| 200 | ** It's safer (avoid memory corruption) to keep DMA page mappings | ||
| 201 | ** equivalently sized to VM PAGE_SIZE. | ||
| 202 | ** | ||
| 203 | ** We really can't avoid generating a new mapping for each | ||
| 204 | ** page since the Virtual Coherence Index has to be generated | ||
| 205 | ** and updated for each page. | ||
| 206 | ** | ||
| 207 | ** PAGE_SIZE could be greater than IOVP_SIZE. But not the inverse. | ||
| 208 | */ | ||
| 209 | #define IOVP_SIZE PAGE_SIZE | ||
| 210 | #define IOVP_SHIFT PAGE_SHIFT | ||
| 211 | #define IOVP_MASK PAGE_MASK | ||
| 212 | |||
| 213 | #define SBA_PERF_CFG 0x708 /* Performance Counter stuff */ | ||
| 214 | #define SBA_PERF_MASK1 0x718 | ||
| 215 | #define SBA_PERF_MASK2 0x730 | ||
| 216 | |||
| 217 | |||
| 218 | /* | ||
| 219 | ** Offsets into PCI Performance Counters (functions 12 and 13) | ||
| 220 | ** Controlled by PERF registers in function 2 & 3 respectively. | ||
| 221 | */ | ||
| 222 | #define SBA_PERF_CNT1 0x200 | ||
| 223 | #define SBA_PERF_CNT2 0x208 | ||
| 224 | #define SBA_PERF_CNT3 0x210 | ||
| 225 | |||
| 226 | |||
| 227 | struct ioc { | ||
| 228 | void __iomem *ioc_hpa; /* I/O MMU base address */ | ||
| 229 | char *res_map; /* resource map, bit == pdir entry */ | ||
| 230 | u64 *pdir_base; /* physical base address */ | ||
| 231 | unsigned long ibase; /* pdir IOV Space base - shared w/lba_pci */ | ||
| 232 | unsigned long imask; /* pdir IOV Space mask - shared w/lba_pci */ | ||
| 233 | #ifdef ZX1_SUPPORT | ||
| 234 | unsigned long iovp_mask; /* help convert IOVA to IOVP */ | ||
| 235 | #endif | ||
| 236 | unsigned long *res_hint; /* next avail IOVP - circular search */ | ||
| 237 | spinlock_t res_lock; | ||
| 238 | unsigned int res_bitshift; /* from the LEFT! */ | ||
| 239 | unsigned int res_size; /* size of resource map in bytes */ | ||
| 240 | #ifdef SBA_HINT_SUPPORT | ||
| 241 | /* FIXME : DMA HINTs not used */ | ||
| 242 | unsigned long hint_mask_pdir; /* bits used for DMA hints */ | ||
| 243 | unsigned int hint_shift_pdir; | ||
| 244 | #endif | ||
| 245 | #if DELAYED_RESOURCE_CNT > 0 | ||
| 246 | int saved_cnt; | ||
| 247 | struct sba_dma_pair { | ||
| 248 | dma_addr_t iova; | ||
| 249 | size_t size; | ||
| 250 | } saved[DELAYED_RESOURCE_CNT]; | ||
| 251 | #endif | ||
| 252 | |||
| 253 | #ifdef SBA_COLLECT_STATS | ||
| 254 | #define SBA_SEARCH_SAMPLE 0x100 | ||
| 255 | unsigned long avg_search[SBA_SEARCH_SAMPLE]; | ||
| 256 | unsigned long avg_idx; /* current index into avg_search */ | ||
| 257 | unsigned long used_pages; | ||
| 258 | unsigned long msingle_calls; | ||
| 259 | unsigned long msingle_pages; | ||
| 260 | unsigned long msg_calls; | ||
| 261 | unsigned long msg_pages; | ||
| 262 | unsigned long usingle_calls; | ||
| 263 | unsigned long usingle_pages; | ||
| 264 | unsigned long usg_calls; | ||
| 265 | unsigned long usg_pages; | ||
| 266 | #endif | ||
| 267 | |||
| 268 | /* STUFF We don't need in performance path */ | ||
| 269 | unsigned int pdir_size; /* in bytes, determined by IOV Space size */ | ||
| 270 | }; | ||
| 271 | |||
| 272 | struct sba_device { | ||
| 273 | struct sba_device *next; /* list of SBA's in system */ | ||
| 274 | struct parisc_device *dev; /* dev found in bus walk */ | ||
| 275 | struct parisc_device_id *iodc; /* data about dev from firmware */ | ||
| 276 | const char *name; | ||
| 277 | void __iomem *sba_hpa; /* base address */ | ||
| 278 | spinlock_t sba_lock; | ||
| 279 | unsigned int flags; /* state/functionality enabled */ | ||
| 280 | unsigned int hw_rev; /* HW revision of chip */ | ||
| 281 | |||
| 282 | struct resource chip_resv; /* MMIO reserved for chip */ | ||
| 283 | struct resource iommu_resv; /* MMIO reserved for iommu */ | ||
| 284 | |||
| 285 | unsigned int num_ioc; /* number of on-board IOC's */ | ||
| 286 | struct ioc ioc[MAX_IOC]; | ||
| 287 | }; | ||
| 288 | |||
| 289 | |||
| 290 | static struct sba_device *sba_list; | ||
| 291 | 94 | ||
| 292 | static unsigned long ioc_needs_fdc = 0; | 95 | static unsigned long ioc_needs_fdc = 0; |
| 293 | 96 | ||
| @@ -300,8 +103,14 @@ static unsigned long piranha_bad_128k = 0; | |||
| 300 | /* Looks nice and keeps the compiler happy */ | 103 | /* Looks nice and keeps the compiler happy */ |
| 301 | #define SBA_DEV(d) ((struct sba_device *) (d)) | 104 | #define SBA_DEV(d) ((struct sba_device *) (d)) |
| 302 | 105 | ||
| 106 | #ifdef CONFIG_AGP_PARISC | ||
| 107 | #define SBA_AGP_SUPPORT | ||
| 108 | #endif /*CONFIG_AGP_PARISC*/ | ||
| 109 | |||
| 303 | #ifdef SBA_AGP_SUPPORT | 110 | #ifdef SBA_AGP_SUPPORT |
| 304 | static int reserve_sba_gart = 1; | 111 | static int sba_reserve_agpgart = 1; |
| 112 | module_param(sba_reserve_agpgart, int, 1); | ||
| 113 | MODULE_PARM_DESC(sba_reserve_agpgart, "Reserve half of IO pdir as AGPGART"); | ||
| 305 | #endif | 114 | #endif |
| 306 | 115 | ||
| 307 | #define ROUNDUP(x,y) ((x + ((y)-1)) & ~((y)-1)) | 116 | #define ROUNDUP(x,y) ((x + ((y)-1)) & ~((y)-1)) |
| @@ -741,7 +550,7 @@ sba_io_pdir_entry(u64 *pdir_ptr, space_t sid, unsigned long vba, | |||
| 741 | asm("lci 0(%%sr1, %1), %0" : "=r" (ci) : "r" (vba)); | 550 | asm("lci 0(%%sr1, %1), %0" : "=r" (ci) : "r" (vba)); |
| 742 | pa |= (ci >> 12) & 0xff; /* move CI (8 bits) into lowest byte */ | 551 | pa |= (ci >> 12) & 0xff; /* move CI (8 bits) into lowest byte */ |
| 743 | 552 | ||
| 744 | pa |= 0x8000000000000000ULL; /* set "valid" bit */ | 553 | pa |= SBA_PDIR_VALID_BIT; /* set "valid" bit */ |
| 745 | *pdir_ptr = cpu_to_le64(pa); /* swap and store into I/O Pdir */ | 554 | *pdir_ptr = cpu_to_le64(pa); /* swap and store into I/O Pdir */ |
| 746 | 555 | ||
| 747 | /* | 556 | /* |
| @@ -1498,6 +1307,10 @@ sba_ioc_init_pluto(struct parisc_device *sba, struct ioc *ioc, int ioc_num) | |||
| 1498 | WRITE_REG(ioc->ibase | 31, ioc->ioc_hpa + IOC_PCOM); | 1307 | WRITE_REG(ioc->ibase | 31, ioc->ioc_hpa + IOC_PCOM); |
| 1499 | 1308 | ||
| 1500 | #ifdef SBA_AGP_SUPPORT | 1309 | #ifdef SBA_AGP_SUPPORT |
| 1310 | { | ||
| 1311 | struct klist_iter i; | ||
| 1312 | struct device *dev = NULL; | ||
| 1313 | |||
| 1501 | /* | 1314 | /* |
| 1502 | ** If an AGP device is present, only use half of the IOV space | 1315 | ** If an AGP device is present, only use half of the IOV space |
| 1503 | ** for PCI DMA. Unfortunately we can't know ahead of time | 1316 | ** for PCI DMA. Unfortunately we can't know ahead of time |
| @@ -1506,20 +1319,22 @@ sba_ioc_init_pluto(struct parisc_device *sba, struct ioc *ioc, int ioc_num) | |||
| 1506 | ** We program the next pdir index after we stop w/ a key for | 1319 | ** We program the next pdir index after we stop w/ a key for |
| 1507 | ** the GART code to handshake on. | 1320 | ** the GART code to handshake on. |
| 1508 | */ | 1321 | */ |
| 1509 | device=NULL; | 1322 | klist_iter_init(&sba->dev.klist_children, &i); |
| 1510 | for (lba = sba->child; lba; lba = lba->sibling) { | 1323 | while (dev = next_device(&i)) { |
| 1324 | struct parisc_device *lba = to_parisc_device(dev); | ||
| 1511 | if (IS_QUICKSILVER(lba)) | 1325 | if (IS_QUICKSILVER(lba)) |
| 1512 | break; | 1326 | agp_found = 1; |
| 1513 | } | 1327 | } |
| 1328 | klist_iter_exit(&sba->dev.klist_children, &i); | ||
| 1514 | 1329 | ||
| 1515 | if (lba) { | 1330 | if (agp_found && sba_reserve_agpgart) { |
| 1516 | DBG_INIT("%s: Reserving half of IOVA space for AGP GART support\n", __FUNCTION__); | 1331 | printk(KERN_INFO "%s: reserving %dMb of IOVA space for agpgart\n", |
| 1332 | __FUNCTION__, (iova_space_size/2) >> 20); | ||
| 1517 | ioc->pdir_size /= 2; | 1333 | ioc->pdir_size /= 2; |
| 1518 | ((u64 *)ioc->pdir_base)[PDIR_INDEX(iova_space_size/2)] = SBA_IOMMU_COOKIE; | 1334 | ioc->pdir_base[PDIR_INDEX(iova_space_size/2)] = SBA_AGPGART_COOKIE; |
| 1519 | } else { | ||
| 1520 | DBG_INIT("%s: No GART needed - no AGP controller found\n", __FUNCTION__); | ||
| 1521 | } | 1335 | } |
| 1522 | #endif /* 0 */ | 1336 | } |
| 1337 | #endif /*SBA_AGP_SUPPORT*/ | ||
| 1523 | 1338 | ||
| 1524 | } | 1339 | } |
| 1525 | 1340 | ||
| @@ -1701,7 +1516,7 @@ printk("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, | |||
| 1701 | } | 1516 | } |
| 1702 | #endif | 1517 | #endif |
| 1703 | 1518 | ||
| 1704 | if (!IS_PLUTO(sba_dev->iodc)) { | 1519 | if (!IS_PLUTO(sba_dev->dev)) { |
| 1705 | ioc_ctl = READ_REG(sba_dev->sba_hpa+IOC_CTRL); | 1520 | ioc_ctl = READ_REG(sba_dev->sba_hpa+IOC_CTRL); |
| 1706 | DBG_INIT("%s() hpa 0x%lx ioc_ctl 0x%Lx ->", | 1521 | DBG_INIT("%s() hpa 0x%lx ioc_ctl 0x%Lx ->", |
| 1707 | __FUNCTION__, sba_dev->sba_hpa, ioc_ctl); | 1522 | __FUNCTION__, sba_dev->sba_hpa, ioc_ctl); |
| @@ -1718,9 +1533,8 @@ printk("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, | |||
| 1718 | #endif | 1533 | #endif |
| 1719 | } /* if !PLUTO */ | 1534 | } /* if !PLUTO */ |
| 1720 | 1535 | ||
| 1721 | if (IS_ASTRO(sba_dev->iodc)) { | 1536 | if (IS_ASTRO(sba_dev->dev)) { |
| 1722 | int err; | 1537 | int err; |
| 1723 | /* PAT_PDC (L-class) also reports the same goofy base */ | ||
| 1724 | sba_dev->ioc[0].ioc_hpa = ioc_remap(sba_dev, ASTRO_IOC_OFFSET); | 1538 | sba_dev->ioc[0].ioc_hpa = ioc_remap(sba_dev, ASTRO_IOC_OFFSET); |
| 1725 | num_ioc = 1; | 1539 | num_ioc = 1; |
| 1726 | 1540 | ||
| @@ -1730,13 +1544,9 @@ printk("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, | |||
| 1730 | err = request_resource(&iomem_resource, &(sba_dev->chip_resv)); | 1544 | err = request_resource(&iomem_resource, &(sba_dev->chip_resv)); |
| 1731 | BUG_ON(err < 0); | 1545 | BUG_ON(err < 0); |
| 1732 | 1546 | ||
| 1733 | } else if (IS_PLUTO(sba_dev->iodc)) { | 1547 | } else if (IS_PLUTO(sba_dev->dev)) { |
| 1734 | int err; | 1548 | int err; |
| 1735 | 1549 | ||
| 1736 | /* We use a negative value for IOC HPA so it gets | ||
| 1737 | * corrected when we add it with IKE's IOC offset. | ||
| 1738 | * Doesnt look clean, but fewer code. | ||
| 1739 | */ | ||
| 1740 | sba_dev->ioc[0].ioc_hpa = ioc_remap(sba_dev, PLUTO_IOC_OFFSET); | 1550 | sba_dev->ioc[0].ioc_hpa = ioc_remap(sba_dev, PLUTO_IOC_OFFSET); |
| 1741 | num_ioc = 1; | 1551 | num_ioc = 1; |
| 1742 | 1552 | ||
| @@ -1752,14 +1562,14 @@ printk("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, | |||
| 1752 | err = request_resource(&iomem_resource, &(sba_dev->iommu_resv)); | 1562 | err = request_resource(&iomem_resource, &(sba_dev->iommu_resv)); |
| 1753 | WARN_ON(err < 0); | 1563 | WARN_ON(err < 0); |
| 1754 | } else { | 1564 | } else { |
| 1755 | /* IS_IKE (ie N-class, L3000, L1500) */ | 1565 | /* IKE, REO */ |
| 1756 | sba_dev->ioc[0].ioc_hpa = ioc_remap(sba_dev, IKE_IOC_OFFSET(0)); | 1566 | sba_dev->ioc[0].ioc_hpa = ioc_remap(sba_dev, IKE_IOC_OFFSET(0)); |
| 1757 | sba_dev->ioc[1].ioc_hpa = ioc_remap(sba_dev, IKE_IOC_OFFSET(1)); | 1567 | sba_dev->ioc[1].ioc_hpa = ioc_remap(sba_dev, IKE_IOC_OFFSET(1)); |
| 1758 | num_ioc = 2; | 1568 | num_ioc = 2; |
| 1759 | 1569 | ||
| 1760 | /* TODO - LOOKUP Ike/Stretch chipset mem map */ | 1570 | /* TODO - LOOKUP Ike/Stretch chipset mem map */ |
| 1761 | } | 1571 | } |
| 1762 | /* XXX: What about Reo? */ | 1572 | /* XXX: What about Reo Grande? */ |
| 1763 | 1573 | ||
| 1764 | sba_dev->num_ioc = num_ioc; | 1574 | sba_dev->num_ioc = num_ioc; |
| 1765 | for (i = 0; i < num_ioc; i++) { | 1575 | for (i = 0; i < num_ioc; i++) { |
| @@ -1774,7 +1584,7 @@ printk("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, | |||
| 1774 | * Overrides bit 1 in DMA Hint Sets. | 1584 | * Overrides bit 1 in DMA Hint Sets. |
| 1775 | * Improves netperf UDP_STREAM by ~10% for bcm5701. | 1585 | * Improves netperf UDP_STREAM by ~10% for bcm5701. |
| 1776 | */ | 1586 | */ |
| 1777 | if (IS_PLUTO(sba_dev->iodc)) { | 1587 | if (IS_PLUTO(sba_dev->dev)) { |
| 1778 | void __iomem *rope_cfg; | 1588 | void __iomem *rope_cfg; |
| 1779 | unsigned long cfg_val; | 1589 | unsigned long cfg_val; |
| 1780 | 1590 | ||
| @@ -1803,7 +1613,7 @@ printk("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, | |||
| 1803 | READ_REG(sba_dev->ioc[i].ioc_hpa + 0x400) | 1613 | READ_REG(sba_dev->ioc[i].ioc_hpa + 0x400) |
| 1804 | ); | 1614 | ); |
| 1805 | 1615 | ||
| 1806 | if (IS_PLUTO(sba_dev->iodc)) { | 1616 | if (IS_PLUTO(sba_dev->dev)) { |
| 1807 | sba_ioc_init_pluto(sba_dev->dev, &(sba_dev->ioc[i]), i); | 1617 | sba_ioc_init_pluto(sba_dev->dev, &(sba_dev->ioc[i]), i); |
| 1808 | } else { | 1618 | } else { |
| 1809 | sba_ioc_init(sba_dev->dev, &(sba_dev->ioc[i]), i); | 1619 | sba_ioc_init(sba_dev->dev, &(sba_dev->ioc[i]), i); |
| @@ -2067,7 +1877,7 @@ sba_driver_callback(struct parisc_device *dev) | |||
| 2067 | /* Read HW Rev First */ | 1877 | /* Read HW Rev First */ |
| 2068 | func_class = READ_REG(sba_addr + SBA_FCLASS); | 1878 | func_class = READ_REG(sba_addr + SBA_FCLASS); |
| 2069 | 1879 | ||
| 2070 | if (IS_ASTRO(&dev->id)) { | 1880 | if (IS_ASTRO(dev)) { |
| 2071 | unsigned long fclass; | 1881 | unsigned long fclass; |
| 2072 | static char astro_rev[]="Astro ?.?"; | 1882 | static char astro_rev[]="Astro ?.?"; |
| 2073 | 1883 | ||
| @@ -2078,11 +1888,11 @@ sba_driver_callback(struct parisc_device *dev) | |||
| 2078 | astro_rev[8] = '0' + (char) ((fclass & 0x18) >> 3); | 1888 | astro_rev[8] = '0' + (char) ((fclass & 0x18) >> 3); |
| 2079 | version = astro_rev; | 1889 | version = astro_rev; |
| 2080 | 1890 | ||
| 2081 | } else if (IS_IKE(&dev->id)) { | 1891 | } else if (IS_IKE(dev)) { |
| 2082 | static char ike_rev[] = "Ike rev ?"; | 1892 | static char ike_rev[] = "Ike rev ?"; |
| 2083 | ike_rev[8] = '0' + (char) (func_class & 0xff); | 1893 | ike_rev[8] = '0' + (char) (func_class & 0xff); |
| 2084 | version = ike_rev; | 1894 | version = ike_rev; |
| 2085 | } else if (IS_PLUTO(&dev->id)) { | 1895 | } else if (IS_PLUTO(dev)) { |
| 2086 | static char pluto_rev[]="Pluto ?.?"; | 1896 | static char pluto_rev[]="Pluto ?.?"; |
| 2087 | pluto_rev[6] = '0' + (char) ((func_class & 0xf0) >> 4); | 1897 | pluto_rev[6] = '0' + (char) ((func_class & 0xf0) >> 4); |
| 2088 | pluto_rev[8] = '0' + (char) (func_class & 0x0f); | 1898 | pluto_rev[8] = '0' + (char) (func_class & 0x0f); |
| @@ -2097,7 +1907,7 @@ sba_driver_callback(struct parisc_device *dev) | |||
| 2097 | global_ioc_cnt = count_parisc_driver(&sba_driver); | 1907 | global_ioc_cnt = count_parisc_driver(&sba_driver); |
| 2098 | 1908 | ||
| 2099 | /* Astro and Pluto have one IOC per SBA */ | 1909 | /* Astro and Pluto have one IOC per SBA */ |
| 2100 | if ((!IS_ASTRO(&dev->id)) || (!IS_PLUTO(&dev->id))) | 1910 | if ((!IS_ASTRO(dev)) || (!IS_PLUTO(dev))) |
| 2101 | global_ioc_cnt *= 2; | 1911 | global_ioc_cnt *= 2; |
| 2102 | } | 1912 | } |
| 2103 | 1913 | ||
| @@ -2117,7 +1927,6 @@ sba_driver_callback(struct parisc_device *dev) | |||
| 2117 | 1927 | ||
| 2118 | sba_dev->dev = dev; | 1928 | sba_dev->dev = dev; |
| 2119 | sba_dev->hw_rev = func_class; | 1929 | sba_dev->hw_rev = func_class; |
| 2120 | sba_dev->iodc = &dev->id; | ||
| 2121 | sba_dev->name = dev->name; | 1930 | sba_dev->name = dev->name; |
| 2122 | sba_dev->sba_hpa = sba_addr; | 1931 | sba_dev->sba_hpa = sba_addr; |
| 2123 | 1932 | ||
diff --git a/drivers/serial/8250_gsc.c b/drivers/serial/8250_gsc.c index 1ebe6b585d2d..c5d0addfda4f 100644 --- a/drivers/serial/8250_gsc.c +++ b/drivers/serial/8250_gsc.c | |||
| @@ -22,7 +22,6 @@ | |||
| 22 | #include <asm/hardware.h> | 22 | #include <asm/hardware.h> |
| 23 | #include <asm/parisc-device.h> | 23 | #include <asm/parisc-device.h> |
| 24 | #include <asm/io.h> | 24 | #include <asm/io.h> |
| 25 | #include <asm/serial.h> /* for LASI_BASE_BAUD */ | ||
| 26 | 25 | ||
| 27 | #include "8250.h" | 26 | #include "8250.h" |
| 28 | 27 | ||
| @@ -54,7 +53,8 @@ serial_init_chip(struct parisc_device *dev) | |||
| 54 | 53 | ||
| 55 | memset(&port, 0, sizeof(port)); | 54 | memset(&port, 0, sizeof(port)); |
| 56 | port.iotype = UPIO_MEM; | 55 | port.iotype = UPIO_MEM; |
| 57 | port.uartclk = LASI_BASE_BAUD * 16; | 56 | /* 7.272727MHz on Lasi. Assumed the same for Dino, Wax and Timi. */ |
| 57 | port.uartclk = 7272727; | ||
| 58 | port.mapbase = address; | 58 | port.mapbase = address; |
| 59 | port.membase = ioremap_nocache(address, 16); | 59 | port.membase = ioremap_nocache(address, 16); |
| 60 | port.irq = dev->irq; | 60 | port.irq = dev->irq; |
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 653098bc2dd5..8edee745888a 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig | |||
| @@ -556,10 +556,11 @@ config SERIAL_MUX | |||
| 556 | default y | 556 | default y |
| 557 | ---help--- | 557 | ---help--- |
| 558 | Saying Y here will enable the hardware MUX serial driver for | 558 | Saying Y here will enable the hardware MUX serial driver for |
| 559 | the Nova and K class systems. The hardware MUX is not 8250/16550 | 559 | the Nova, K class systems and D class with a 'remote control card'. |
| 560 | compatible therefore the /dev/ttyB0 device is shared between the | 560 | The hardware MUX is not 8250/16550 compatible therefore the |
| 561 | Serial MUX and the PDC software console. The following steps | 561 | /dev/ttyB0 device is shared between the Serial MUX and the PDC |
| 562 | need to be completed to use the Serial MUX: | 562 | software console. The following steps need to be completed to use |
| 563 | the Serial MUX: | ||
| 563 | 564 | ||
| 564 | 1. create the device entry (mknod /dev/ttyB0 c 11 0) | 565 | 1. create the device entry (mknod /dev/ttyB0 c 11 0) |
| 565 | 2. Edit the /etc/inittab to start a getty listening on /dev/ttyB0 | 566 | 2. Edit the /etc/inittab to start a getty listening on /dev/ttyB0 |
