ops-mace.c (fc8b28a65d81a6fdf58ef81ce5b8ac7a35304e68) ops-mace.c (378a545954abfec1c9499203206e0ffb5c2118d2)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2000, 2001 Keith M Wesolowski
7 */
8#include <linux/kernel.h>

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

28 * 3 N/C
29 * 4 N/C
30 */
31
32static inline int mkaddr(struct pci_bus *bus, unsigned int devfn,
33 unsigned int reg)
34{
35 return ((bus->number & 0xff) << 16) |
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2000, 2001 Keith M Wesolowski
7 */
8#include <linux/kernel.h>

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

28 * 3 N/C
29 * 4 N/C
30 */
31
32static inline int mkaddr(struct pci_bus *bus, unsigned int devfn,
33 unsigned int reg)
34{
35 return ((bus->number & 0xff) << 16) |
36 (devfn & 0xff) << 8) |
36 ((devfn & 0xff) << 8) |
37 (reg & 0xfc);
38}
39
40
41static int
42mace_pci_read_config(struct pci_bus *bus, unsigned int devfn,
43 int reg, int size, u32 *val)
44{

--- 44 unchanged lines hidden ---
37 (reg & 0xfc);
38}
39
40
41static int
42mace_pci_read_config(struct pci_bus *bus, unsigned int devfn,
43 int reg, int size, u32 *val)
44{

--- 44 unchanged lines hidden ---