pc300too.c (d72f78db55d6daa4542668de1b2cb4f974708a99) pc300too.c (ae6440483b545176b888bfe74971aa40a5749d46)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Cyclades PC300 synchronous serial card driver for Linux
4 *
5 * Copyright (C) 2000-2008 Krzysztof Halasa <khc@pm.waw.pl>
6 *
7 * For information see <https://www.kernel.org/pub/linux/utils/net/hdlc/>.
8 *

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

39#undef DEBUG_PKT
40#define DEBUG_RINGS
41
42#define PC300_PLX_SIZE 0x80 /* PLX control window size (128 B) */
43#define PC300_SCA_SIZE 0x400 /* SCA window size (1 KB) */
44#define MAX_TX_BUFFERS 10
45
46static int pci_clock_freq = 33000000;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Cyclades PC300 synchronous serial card driver for Linux
4 *
5 * Copyright (C) 2000-2008 Krzysztof Halasa <khc@pm.waw.pl>
6 *
7 * For information see <https://www.kernel.org/pub/linux/utils/net/hdlc/>.
8 *

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

39#undef DEBUG_PKT
40#define DEBUG_RINGS
41
42#define PC300_PLX_SIZE 0x80 /* PLX control window size (128 B) */
43#define PC300_SCA_SIZE 0x400 /* SCA window size (1 KB) */
44#define MAX_TX_BUFFERS 10
45
46static int pci_clock_freq = 33000000;
47static int use_crystal_clock = 0;
47static int use_crystal_clock;
48static unsigned int CLOCK_BASE;
49
50/* Masks to access the init_ctrl PLX register */
51#define PC300_CLKSEL_MASK (0x00000004UL)
52#define PC300_CHMEDIA_MASK(port) (0x00000020UL << ((port) * 3))
53#define PC300_CTYPE_MASK (0x00000800UL)
54
55enum { PC300_RSV = 1, PC300_X21, PC300_TE }; /* card types */

--- 457 unchanged lines hidden ---
48static unsigned int CLOCK_BASE;
49
50/* Masks to access the init_ctrl PLX register */
51#define PC300_CLKSEL_MASK (0x00000004UL)
52#define PC300_CHMEDIA_MASK(port) (0x00000020UL << ((port) * 3))
53#define PC300_CTYPE_MASK (0x00000800UL)
54
55enum { PC300_RSV = 1, PC300_X21, PC300_TE }; /* card types */

--- 457 unchanged lines hidden ---