Lines Matching +full:gpi +full:- +full:config

1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* ------------------------------------------------------------------------- */
3 /* i2c-elektor.c i2c-hw access for PCF8584 style isa bus adaptes */
4 /* ------------------------------------------------------------------------- */
5 /* Copyright (C) 1995-97 Simon G. Vogl
6 1998-99 Hans Berglund
9 /* ------------------------------------------------------------------------- */
15 for Alpha Processor Inc. UP-2000(+) boards */
28 #include <linux/i2c-algo-pcf.h>
33 #include "../algos/i2c-algo-pcf.h"
45 /* vdovikin: removed static struct i2c_pcf_isa gpi; code -
47 in some functions, called from the algo-pcf module. Sometimes it's
48 need to be rewriten - but for now just remove this for simpler reading */
56 /* ----- local functions ---------------------------------------------- */
139 return -ENODEV; in pcf_isa_init()
146 return -ENODEV; in pcf_isa_init()
152 return -ENODEV; in pcf_isa_init()
159 return -ENODEV; in pcf_isa_init()
177 /* ------------------------------------------------------------------------
193 .name = "i2c-elektor",
200 Cypress cy82c693 PCI-ISA bridge as on UP2000 board */ in elektor_match()
207 unsigned char config; in elektor_match() local
208 /* yeap, we've found cypress, let's check config */ in elektor_match()
209 if (!pci_read_config_byte(cy693_dev, 0x47, &config)) { in elektor_match()
211 dev_dbg(dev, "found cy82c693, config " in elektor_match()
212 "register 0x47 = 0x%02x\n", config); in elektor_match()
224 if ((config & 0x7f) == 0x61) { in elektor_match()
259 return -ENODEV; in elektor_probe()
281 return -ENODEV; in elektor_probe()
308 .name = "i2c-elektor",
313 MODULE_DESCRIPTION("I2C-Bus adapter routines for PCF8584 ISA bus adapter");