• Home
  • Raw
  • Download

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 ---------------------------------------------- */
140 return -ENODEV; in pcf_isa_init()
147 return -ENODEV; in pcf_isa_init()
153 return -ENODEV; in pcf_isa_init()
160 return -ENODEV; in pcf_isa_init()
178 /* ------------------------------------------------------------------------
194 .name = "i2c-elektor",
201 Cypress cy82c693 PCI-ISA bridge as on UP2000 board */ in elektor_match()
208 unsigned char config; in elektor_match() local
209 /* yeap, we've found cypress, let's check config */ in elektor_match()
210 if (!pci_read_config_byte(cy693_dev, 0x47, &config)) { in elektor_match()
212 dev_dbg(dev, "found cy82c693, config " in elektor_match()
213 "register 0x47 = 0x%02x\n", config); in elektor_match()
225 if ((config & 0x7f) == 0x61) { in elektor_match()
260 return -ENODEV; in elektor_probe()
282 return -ENODEV; in elektor_probe()
311 .name = "i2c-elektor",
316 MODULE_DESCRIPTION("I2C-Bus adapter routines for PCF8584 ISA bus adapter");