pci.c (57c8a661d95dff48dd9c2f2496139082bbaf241a) pci.c (7e1c4e27928e5f87b9b1eaf06dc31773b2f1e7f1)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/arch/alpha/kernel/pci.c
4 *
5 * Extruded from code written by
6 * Dave Rusling (david.rusling@reo.mts.dec.com)
7 * David Mosberger (davidm@cs.arizona.edu)
8 */

--- 378 unchanged lines hidden (view full) ---

387 }
388}
389
390struct pci_controller * __init
391alloc_pci_controller(void)
392{
393 struct pci_controller *hose;
394
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/arch/alpha/kernel/pci.c
4 *
5 * Extruded from code written by
6 * Dave Rusling (david.rusling@reo.mts.dec.com)
7 * David Mosberger (davidm@cs.arizona.edu)
8 */

--- 378 unchanged lines hidden (view full) ---

387 }
388}
389
390struct pci_controller * __init
391alloc_pci_controller(void)
392{
393 struct pci_controller *hose;
394
395 hose = memblock_alloc(sizeof(*hose), 0);
395 hose = memblock_alloc(sizeof(*hose), SMP_CACHE_BYTES);
396
397 *hose_tail = hose;
398 hose_tail = &hose->next;
399
400 return hose;
401}
402
403struct resource * __init
404alloc_resource(void)
405{
396
397 *hose_tail = hose;
398 hose_tail = &hose->next;
399
400 return hose;
401}
402
403struct resource * __init
404alloc_resource(void)
405{
406 return memblock_alloc(sizeof(struct resource), 0);
406 return memblock_alloc(sizeof(struct resource), SMP_CACHE_BYTES);
407}
408
409
410/* Provide information on locations of various I/O regions in physical
411 memory. Do this on a per-card basis so that we choose the right hose. */
412
413SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, bus,
414 unsigned long, dfn)

--- 53 unchanged lines hidden ---
407}
408
409
410/* Provide information on locations of various I/O regions in physical
411 memory. Do this on a per-card basis so that we choose the right hose. */
412
413SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, bus,
414 unsigned long, dfn)

--- 53 unchanged lines hidden ---