| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * eisa_enumerator.c - provide support for EISA adapters in PA-RISC machines |
|---|
| 3 | 4 | * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation; either version |
|---|
| 7 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | 5 | * Copyright (c) 2002 Daniel Engstrom <5116@telia.com> |
|---|
| 10 | | - * |
|---|
| 11 | 6 | */ |
|---|
| 12 | 7 | |
|---|
| 13 | 8 | #include <linux/ioport.h> |
|---|
| .. | .. |
|---|
| 98 | 93 | res->start = mem_parent->start + get_24(buf+len+2); |
|---|
| 99 | 94 | res->end = res->start + get_16(buf+len+5)*1024; |
|---|
| 100 | 95 | res->flags = IORESOURCE_MEM; |
|---|
| 101 | | - printk("memory %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end); |
|---|
| 96 | + pr_cont("memory %pR ", res); |
|---|
| 102 | 97 | result = request_resource(mem_parent, res); |
|---|
| 103 | 98 | if (result < 0) { |
|---|
| 104 | 99 | printk(KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n"); |
|---|
| .. | .. |
|---|
| 128 | 123 | for (i=0;i<HPEE_IRQ_MAX_ENT;i++) { |
|---|
| 129 | 124 | c = get_8(buf+len); |
|---|
| 130 | 125 | |
|---|
| 131 | | - printk("IRQ %d ", c & HPEE_IRQ_CHANNEL_MASK); |
|---|
| 126 | + pr_cont("IRQ %d ", c & HPEE_IRQ_CHANNEL_MASK); |
|---|
| 132 | 127 | if (c & HPEE_IRQ_TRIG_LEVEL) { |
|---|
| 133 | 128 | eisa_make_irq_level(c & HPEE_IRQ_CHANNEL_MASK); |
|---|
| 134 | 129 | } else { |
|---|
| .. | .. |
|---|
| 158 | 153 | |
|---|
| 159 | 154 | for (i=0;i<HPEE_DMA_MAX_ENT;i++) { |
|---|
| 160 | 155 | c = get_8(buf+len); |
|---|
| 161 | | - printk("DMA %d ", c&HPEE_DMA_CHANNEL_MASK); |
|---|
| 156 | + pr_cont("DMA %d ", c&HPEE_DMA_CHANNEL_MASK); |
|---|
| 162 | 157 | /* fixme: maybe initialize the dma channel withthe timing ? */ |
|---|
| 163 | 158 | len+=2; |
|---|
| 164 | 159 | if (!(c & HPEE_DMA_MORE)) { |
|---|
| .. | .. |
|---|
| 188 | 183 | res->start = get_16(buf+len+1); |
|---|
| 189 | 184 | res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1; |
|---|
| 190 | 185 | res->flags = IORESOURCE_IO; |
|---|
| 191 | | - printk("ioports %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end); |
|---|
| 186 | + pr_cont("ioports %pR ", res); |
|---|
| 192 | 187 | result = request_resource(io_parent, res); |
|---|
| 193 | 188 | if (result < 0) { |
|---|
| 194 | 189 | printk(KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n"); |
|---|
| .. | .. |
|---|
| 406 | 401 | } |
|---|
| 407 | 402 | pos = p0 + function_len; |
|---|
| 408 | 403 | } |
|---|
| 409 | | - printk("\n"); |
|---|
| 404 | + pr_cont("\n"); |
|---|
| 410 | 405 | if (!id_string_used) { |
|---|
| 411 | 406 | kfree(board); |
|---|
| 412 | 407 | } |
|---|