• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/irda/

Lines Matching refs:cfg_base

123 	unsigned short cfg_base; /* I/O port for chip configuration */
143 unsigned int cfg_base;
223 static const struct smsc_chip * __init smsc_ircc_probe(unsigned short cfg_base, u8 reg, const struct smsc_chip *chip, char *type);
224 static int __init smsc_superio_flat(const struct smsc_chip *chips, unsigned short cfg_base, char *type);
225 static int __init smsc_superio_paged(const struct smsc_chip *chips, unsigned short cfg_base, char *type);
226 static int __init smsc_superio_fdc(unsigned short cfg_base);
227 static int __init smsc_superio_lpc(unsigned short cfg_base);
2071 unsigned int cfg_base, found;
2076 while (address->cfg_base) {
2077 cfg_base = address->cfg_base;
2079 /*printk(KERN_WARNING "%s(): probing: 0x%02x for: 0x%02x\n", __func__, cfg_base, address->type);*/
2084 if (!smsc_superio_flat(fdc_chips_flat, cfg_base, type))
2088 if (!smsc_superio_paged(fdc_chips_paged, cfg_base, type))
2094 if (!smsc_superio_flat(lpc_chips_flat, cfg_base, type))
2098 if (!smsc_superio_paged(lpc_chips_paged, cfg_base, type))
2163 static int __init smsc_superio_paged(const struct smsc_chip *chips, unsigned short cfg_base, char *type)
2170 if (smsc_ircc_probe(cfg_base, 0x20, chips, type) == NULL)
2174 outb(0x07, cfg_base);
2175 outb(0x05, cfg_base + 1);
2178 outb(0x60, cfg_base);
2179 sir_io = inb(cfg_base + 1) << 8;
2180 outb(0x61, cfg_base);
2181 sir_io |= inb(cfg_base + 1);
2184 outb(0x62, cfg_base);
2185 fir_io = inb(cfg_base + 1) << 8;
2186 outb(0x63, cfg_base);
2187 fir_io |= inb(cfg_base + 1);
2188 outb(0x2b, cfg_base); /* ??? */
2194 outb(SMSCSIO_CFGEXITKEY, cfg_base);
2200 static int __init smsc_access(unsigned short cfg_base, unsigned char reg)
2204 outb(reg, cfg_base);
2205 return inb(cfg_base) != reg ? -1 : 0;
2208 static const struct smsc_chip * __init smsc_ircc_probe(unsigned short cfg_base, u8 reg, const struct smsc_chip *chip, char *type)
2216 outb(SMSCSIO_CFGEXITKEY, cfg_base);
2218 if (inb(cfg_base) == SMSCSIO_CFGEXITKEY) /* not a smc superio chip */
2221 outb(reg, cfg_base);
2223 xdevid = inb(cfg_base + 1);
2227 outb(SMSCSIO_CFGACCESSKEY, cfg_base);
2232 if (smsc_access(cfg_base, reg))
2235 devid = inb(cfg_base + 1);
2242 if (smsc_access(cfg_base, reg + 1))
2245 rev = inb(cfg_base + 1);
2264 devid, rev, cfg_base, type, chip->name);
2277 static int __init smsc_superio_fdc(unsigned short cfg_base)
2281 if (!request_region(cfg_base, 2, driver_name)) {
2282 IRDA_WARNING("%s: can't get cfg_base of 0x%03x\n",
2283 __func__, cfg_base);
2285 if (!smsc_superio_flat(fdc_chips_flat, cfg_base, "FDC") ||
2286 !smsc_superio_paged(fdc_chips_paged, cfg_base, "FDC"))
2289 release_region(cfg_base, 2);
2295 static int __init smsc_superio_lpc(unsigned short cfg_base)
2299 if (!request_region(cfg_base, 2, driver_name)) {
2300 IRDA_WARNING("%s: can't get cfg_base of 0x%03x\n",
2301 __func__, cfg_base);
2303 if (!smsc_superio_flat(lpc_chips_flat, cfg_base, "LPC") ||
2304 !smsc_superio_paged(lpc_chips_paged, cfg_base, "LPC"))
2307 release_region(cfg_base, 2);
2346 .cfg_base = 0x004e,
2360 .cfg_base = 0x004e,
2373 .cfg_base = 0x004e,
2387 .cfg_base = 0x002e,
2401 .cfg_base = 0x002e,
2414 .cfg_base = 0x002e,
2428 .cfg_base = 0x002e,
2442 .cfg_base = 0x002e,
2459 unsigned short iobase = conf->cfg_base;
2621 switch(conf->cfg_base) {
2636 conf->cfg_base);
2803 tmpconf.cfg_base = ircc_cfg;