Home
last modified time | relevance | path

Searched refs:eeprom (Results 1 – 25 of 42) sorted by relevance

12

/linux-2.4.37.9/arch/cris/drivers/
Deeprom.c155 static struct eeprom_type eeprom; variable
171 init_waitqueue_head(&eeprom.wait_q); in eeprom_init()
172 eeprom.busy = 0; in eeprom_init()
197 eeprom.size = 0; in eeprom_init()
198 eeprom.usec_delay_writecycles = INITIAL_WRITEDELAY_US; in eeprom_init()
199 eeprom.usec_delay_step = 128; in eeprom_init()
200 eeprom.adapt_state = 0; in eeprom_init()
227 eeprom.size = EEPROM_2KB; in eeprom_init()
228 eeprom.select_cmd = 0xA0; in eeprom_init()
229 eeprom.sequential_write_pagesize = 16; in eeprom_init()
[all …]
DMakefile17 obj-$(CONFIG_ETRAX_I2C_EEPROM) += eeprom.o
/linux-2.4.37.9/drivers/net/
Dmyri_sbus.c194 for (i = 0; i < mp->eeprom.ramsz; i++) in myri_load_lanai()
197 if (mp->eeprom.cpuvers >= CPUVERS_3_0) in myri_load_lanai()
198 sbus_writel(mp->eeprom.cval, mp->lregs + LANAI_CVAL); in myri_load_lanai()
239 if (mp->eeprom.cpuvers == CPUVERS_4_0) in myri_load_lanai()
817 mp->eeprom.id[0] = 0; in set_boardid_from_idprom()
818 mp->eeprom.id[1] = idprom->id_machtype; in set_boardid_from_idprom()
819 mp->eeprom.id[2] = (idprom->id_sernum >> 16) & 0xff; in set_boardid_from_idprom()
820 mp->eeprom.id[3] = (idprom->id_sernum >> 8) & 0xff; in set_boardid_from_idprom()
821 mp->eeprom.id[4] = (idprom->id_sernum >> 0) & 0xff; in set_boardid_from_idprom()
822 mp->eeprom.id[5] = num; in set_boardid_from_idprom()
[all …]
Dcirrus.c465 static int cirrus_eeprom (struct net_device *dev,cirrus_eeprom_t *eeprom) in cirrus_eeprom() argument
510 eeprom->io_base = buf[2]; in cirrus_eeprom()
511 eeprom->irq = buf[3]; in cirrus_eeprom()
512 eeprom->dma = buf[4]; in cirrus_eeprom()
513 eeprom->mem_base = (buf[7] << 16) | buf[6]; in cirrus_eeprom()
514 eeprom->rom_base = (buf[9] << 16) | buf[8]; in cirrus_eeprom()
515 eeprom->rom_mask = (buf[11] << 16) | buf[10]; in cirrus_eeprom()
517 word = (u16 *) eeprom->mac; in cirrus_eeprom()
572 cirrus_eeprom_t eeprom; in cirrus_probe() local
637 if (!cirrus_eeprom (dev,&eeprom)) in cirrus_probe()
[all …]
Deepro100.c664 u16 eeprom[0x100]; in speedo_found1() local
715 eeprom[i] = value; in speedo_found1()
738 if (eeprom[3] & 0x0100) in speedo_found1()
765 if ((eeprom[3] & 0x03) != 0x03) in speedo_found1()
770 eeprom[8], eeprom[9]>>8, eeprom[9] & 0xff); in speedo_found1()
772 if (eeprom[5] & (1<<i)) in speedo_found1()
775 phys[(eeprom[6]>>8)&15], eeprom[6] & 0x1f); in speedo_found1()
776 if (eeprom[7] & 0x0700) in speedo_found1()
778 phys[(eeprom[7]>>8)&7]); in speedo_found1()
779 if (((eeprom[6]>>8) & 0x3f) == DP83840 in speedo_found1()
[all …]
Dnatsemi.c2095 struct ethtool_eeprom eeprom; in netdev_ethtool_ioctl() local
2099 if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) in netdev_ethtool_ioctl()
2102 if (eeprom.offset > eeprom.offset+eeprom.len) in netdev_ethtool_ioctl()
2105 if ((eeprom.offset+eeprom.len) > NATSEMI_EEPROM_SIZE) { in netdev_ethtool_ioctl()
2106 eeprom.len = NATSEMI_EEPROM_SIZE-eeprom.offset; in netdev_ethtool_ioctl()
2108 eeprom.magic = PCI_VENDOR_ID_NS | (PCI_DEVICE_ID_NS_83815<<16); in netdev_ethtool_ioctl()
2109 if (copy_to_user(useraddr, &eeprom, sizeof(eeprom))) in netdev_ethtool_ioctl()
2120 if (copy_to_user(useraddr, eebuf+eeprom.offset, eeprom.len)) in netdev_ethtool_ioctl()
Db44.c1680 u8 eeprom[128]; in b44_get_invariants() local
1683 err = b44_read_eeprom(bp, &eeprom[0]); in b44_get_invariants()
1687 bp->dev->dev_addr[0] = eeprom[79]; in b44_get_invariants()
1688 bp->dev->dev_addr[1] = eeprom[78]; in b44_get_invariants()
1689 bp->dev->dev_addr[2] = eeprom[81]; in b44_get_invariants()
1690 bp->dev->dev_addr[3] = eeprom[80]; in b44_get_invariants()
1691 bp->dev->dev_addr[4] = eeprom[83]; in b44_get_invariants()
1692 bp->dev->dev_addr[5] = eeprom[82]; in b44_get_invariants()
1694 bp->phy_addr = eeprom[90] & 0x1f; in b44_get_invariants()
1695 bp->mdc_port = (eeprom[90] >> 14) & 0x1; in b44_get_invariants()
D3c59x.c1044 unsigned int eeprom[0x40], checksum = 0; /* EEPROM contents */ in vortex_probe1() local
1213 eeprom[i] = inw(ioaddr + Wn0EepromData); in vortex_probe1()
1217 checksum ^= eeprom[i]; in vortex_probe1()
1221 checksum ^= eeprom[i++]; in vortex_probe1()
1227 ((u16 *)dev->dev_addr)[i] = htons(eeprom[i + 10]); in vortex_probe1()
1252 "%02d-%02d\n", eeprom[6]&0xff, eeprom[6]>>8, eeprom[0x14], in vortex_probe1()
1253 step, (eeprom[4]>>5) & 15, eeprom[4] & 31, eeprom[4]>>9); in vortex_probe1()
1287 vp->info1 = eeprom[13]; in vortex_probe1()
1288 vp->info2 = eeprom[15]; in vortex_probe1()
1289 vp->capabilities = eeprom[16]; in vortex_probe1()
D3c515.c656 unsigned int eeprom[0x40], checksum = 0; /* EEPROM contents */ in corkscrew_probe1() local
674 eeprom[i] = inw(ioaddr + Wn0EepromData); in corkscrew_probe1()
675 checksum ^= eeprom[i]; in corkscrew_probe1()
677 phys_addr[i] = htons(eeprom[i]); in corkscrew_probe1()
684 if (eeprom[16] == 0x11c7) { /* Corkscrew */ in corkscrew_probe1()
722 vp->capabilities = eeprom[16]; in corkscrew_probe1()
/linux-2.4.37.9/include/linux/
Deeprom.h15 struct eeprom { struct
35 u8 eeprom_readb(struct eeprom *ee, unsigned address); argument
36 void eeprom_read(struct eeprom *ee, unsigned address, u8 *bytes,
38 void eeprom_writeb(struct eeprom *ee, unsigned address, u8 data);
39 void eeprom_write(struct eeprom *ee, unsigned address, u8 *bytes,
47 void setup_ee_mem_bitbanger(struct eeprom *ee, long memaddr, int eesel_bit, int eeclk_bit, int eedo… in setup_ee_mem_bitbanger()
61 static inline void eeprom_update(struct eeprom *ee, u32 mask, int pol) in eeprom_update()
79 void eeprom_clk_lo(struct eeprom *ee) in eeprom_clk_lo()
87 void eeprom_clk_hi(struct eeprom *ee) in eeprom_clk_hi()
95 void eeprom_send_addr(struct eeprom *ee, unsigned address) in eeprom_send_addr()
[all …]
/linux-2.4.37.9/arch/m68k/sun3x/
Dtime.c46 volatile unsigned char *eeprom = (unsigned char *)SUN3X_EEPROM; in sun3x_gettod() local
49 *(eeprom + M_CONTROL) |= C_READ; in sun3x_gettod()
52 *yearp = BCD_TO_BIN(*(eeprom + M_YEAR)); in sun3x_gettod()
53 *monp = BCD_TO_BIN(*(eeprom + M_MONTH)) +1; in sun3x_gettod()
54 *dayp = BCD_TO_BIN(*(eeprom + M_DATE)); in sun3x_gettod()
55 *hourp = BCD_TO_BIN(*(eeprom + M_HOUR)); in sun3x_gettod()
56 *minp = BCD_TO_BIN(*(eeprom + M_MIN)); in sun3x_gettod()
57 *secp = BCD_TO_BIN(*(eeprom + M_SEC)); in sun3x_gettod()
60 *(eeprom + M_CONTROL) &= ~C_READ; in sun3x_gettod()
/linux-2.4.37.9/net/core/
Dethtool.c250 struct ethtool_eeprom eeprom; in ethtool_get_eeprom() local
258 if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) in ethtool_get_eeprom()
262 if (eeprom.offset + eeprom.len <= eeprom.offset) in ethtool_get_eeprom()
266 if (eeprom.offset + eeprom.len > ops->get_eeprom_len(dev)) in ethtool_get_eeprom()
269 data = kmalloc(eeprom.len, GFP_USER); in ethtool_get_eeprom()
274 if (copy_from_user(data, useraddr + sizeof(eeprom), eeprom.len)) in ethtool_get_eeprom()
277 ret = ops->get_eeprom(dev, &eeprom, data); in ethtool_get_eeprom()
282 if (copy_to_user(useraddr, &eeprom, sizeof(eeprom))) in ethtool_get_eeprom()
284 if (copy_to_user(useraddr + sizeof(eeprom), data, eeprom.len)) in ethtool_get_eeprom()
295 struct ethtool_eeprom eeprom; in ethtool_set_eeprom() local
[all …]
/linux-2.4.37.9/drivers/net/e1000/
De1000_hw.c4438 struct e1000_eeprom_info *eeprom = &hw->eeprom; in e1000_init_eeprom_params() local
4450 eeprom->type = e1000_eeprom_microwire; in e1000_init_eeprom_params()
4451 eeprom->word_size = 64; in e1000_init_eeprom_params()
4452 eeprom->opcode_bits = 3; in e1000_init_eeprom_params()
4453 eeprom->address_bits = 6; in e1000_init_eeprom_params()
4454 eeprom->delay_usec = 50; in e1000_init_eeprom_params()
4455 eeprom->use_eerd = FALSE; in e1000_init_eeprom_params()
4456 eeprom->use_eewr = FALSE; in e1000_init_eeprom_params()
4463 eeprom->type = e1000_eeprom_microwire; in e1000_init_eeprom_params()
4464 eeprom->opcode_bits = 3; in e1000_init_eeprom_params()
[all …]
De1000_ethtool.c472 return adapter->hw.eeprom.word_size * 2; in e1000_get_eeprom_len()
477 struct ethtool_eeprom *eeprom, uint8_t *bytes) in e1000_get_eeprom() argument
486 if (eeprom->len == 0) in e1000_get_eeprom()
489 eeprom->magic = hw->vendor_id | (hw->device_id << 16); in e1000_get_eeprom()
491 first_word = eeprom->offset >> 1; in e1000_get_eeprom()
492 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in e1000_get_eeprom()
499 if (hw->eeprom.type == e1000_eeprom_spi) in e1000_get_eeprom()
514 memcpy(bytes, (uint8_t *)eeprom_buff + (eeprom->offset & 1), in e1000_get_eeprom()
515 eeprom->len); in e1000_get_eeprom()
523 struct ethtool_eeprom *eeprom, uint8_t *bytes) in e1000_set_eeprom() argument
[all …]
/linux-2.4.37.9/arch/sparc/kernel/
Dtime.c220 data1 = regs->eeprom[0]; /* Read some data. */ in has_low_battery()
221 regs->eeprom[0] = ~data1; /* Write back the complement. */ in has_low_battery()
222 data2 = regs->eeprom[0]; /* Read back the complement. */ in has_low_battery()
223 regs->eeprom[0] = data1; /* Restore the original value. */ in has_low_battery()
/linux-2.4.37.9/drivers/net/tulip/
DMakefile12 obj-y := eeprom.o interrupt.o media.o \
Deeprom.c95 unsigned char *ee_data = tp->eeprom; in tulip_build_fake_mediatable()
141 unsigned char *ee_data = tp->eeprom; in tulip_parse_eeprom()
/linux-2.4.37.9/arch/mips64/mm/
Dsc-ip22.c150 unsigned int size = ip22_eeprom_read(&sgimc->eeprom, 17); in indy_sc_probe()
/linux-2.4.37.9/arch/mips/mm/
Dsc-ip22.c150 unsigned int size = ip22_eeprom_read(&sgimc->eeprom, 17); in indy_sc_probe()
/linux-2.4.37.9/arch/mips/sgi-ip22/
Dip22-nvram.c106 return ip22_eeprom_read(&hpc3c0->eeprom, reg); in ip22_nvram_read()
/linux-2.4.37.9/drivers/atm/
Dlanai.c301 u8 eeprom[LANAI_EEPROM_SIZE]; member
1007 memset(&lanai->eeprom[EEPROM_MAC], 0, 6); in eeprom_read()
1068 lanai->eeprom[address] = data; in eeprom_read()
1091 return be32_to_cpup((u32 *) (&lanai->eeprom[address])); in eeprom_be4()
1099 const u8 *e = lanai->eeprom; in eeprom_validate()
1173 return &lanai->eeprom[EEPROM_MAC]; in eeprom_mac()
2742 lanai->eeprom[EEPROM_MAC + 0], in lanai_proc_read()
2743 lanai->eeprom[EEPROM_MAC + 1], in lanai_proc_read()
2744 lanai->eeprom[EEPROM_MAC + 2], in lanai_proc_read()
2745 lanai->eeprom[EEPROM_MAC + 3], in lanai_proc_read()
[all …]
/linux-2.4.37.9/include/asm-sparc/
Dmostek.h55 volatile char eeprom[2008]; /* This is the eeprom, don't touch! */ member
/linux-2.4.37.9/include/asm-mips/sgi/
Dmc.h60 volatile u32 eeprom; /* EEPROM byte reg for r4k */ member
Dhpc3.h209 volatile u32 eeprom; /* EEPROM data reg. */ member
/linux-2.4.37.9/include/asm-mips64/sgi/
Dmc.h60 volatile u32 eeprom; /* EEPROM byte reg for r4k */ member

12