Lines Matching refs:eeprom
194 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()
827 switch(mp->eeprom.cpuvers) { in determine_reg_space_size()
837 mp->reg_size = ((4096<<1) + mp->eeprom.ramsz); in determine_reg_space_size()
844 mp->eeprom.cpuvers); in determine_reg_space_size()
854 mp->eeprom.cval, mp->eeprom.cpuvers, in dump_eeprom()
855 mp->eeprom.id[0], mp->eeprom.id[1], mp->eeprom.id[2], in dump_eeprom()
856 mp->eeprom.id[3], mp->eeprom.id[4], mp->eeprom.id[5]); in dump_eeprom()
857 printk("EEPROM: ramsz[%08x]\n", mp->eeprom.ramsz); in dump_eeprom()
859 mp->eeprom.fvers[0], mp->eeprom.fvers[1], mp->eeprom.fvers[2], in dump_eeprom()
860 mp->eeprom.fvers[3], mp->eeprom.fvers[4], mp->eeprom.fvers[5], in dump_eeprom()
861 mp->eeprom.fvers[6], mp->eeprom.fvers[7]); in dump_eeprom()
863 mp->eeprom.fvers[8], mp->eeprom.fvers[9], mp->eeprom.fvers[10], in dump_eeprom()
864 mp->eeprom.fvers[11], mp->eeprom.fvers[12], mp->eeprom.fvers[13], in dump_eeprom()
865 mp->eeprom.fvers[14], mp->eeprom.fvers[15]); in dump_eeprom()
867 mp->eeprom.fvers[16], mp->eeprom.fvers[17], mp->eeprom.fvers[18], in dump_eeprom()
868 mp->eeprom.fvers[19], mp->eeprom.fvers[20], mp->eeprom.fvers[21], in dump_eeprom()
869 mp->eeprom.fvers[22], mp->eeprom.fvers[23]); in dump_eeprom()
871 mp->eeprom.fvers[24], mp->eeprom.fvers[25], mp->eeprom.fvers[26], in dump_eeprom()
872 mp->eeprom.fvers[27], mp->eeprom.fvers[28], mp->eeprom.fvers[29], in dump_eeprom()
873 mp->eeprom.fvers[30], mp->eeprom.fvers[31]); in dump_eeprom()
875 mp->eeprom.mvers[0], mp->eeprom.mvers[1], mp->eeprom.mvers[2], in dump_eeprom()
876 mp->eeprom.mvers[3], mp->eeprom.mvers[4], mp->eeprom.mvers[5], in dump_eeprom()
877 mp->eeprom.mvers[6], mp->eeprom.mvers[7]); in dump_eeprom()
879 mp->eeprom.mvers[8], mp->eeprom.mvers[9], mp->eeprom.mvers[10], in dump_eeprom()
880 mp->eeprom.mvers[11], mp->eeprom.mvers[12], mp->eeprom.mvers[13], in dump_eeprom()
881 mp->eeprom.mvers[14], mp->eeprom.mvers[15]); in dump_eeprom()
883 mp->eeprom.dlval, mp->eeprom.brd_type, mp->eeprom.bus_type, in dump_eeprom()
884 mp->eeprom.prod_code); in dump_eeprom()
885 printk("EEPROM: serial_num[%08x]\n", mp->eeprom.serial_num); in dump_eeprom()
919 (char *)&mp->eeprom, sizeof(struct myri_eeprom)); in myri_ether_init()
924 mp->eeprom.bus_type = BUS_TYPE_SBUS; in myri_ether_init()
925 mp->eeprom.cpuvers = prom_getintdefault(sdev->prom_node,"cpu_version",0); in myri_ether_init()
926 mp->eeprom.cval = prom_getintdefault(sdev->prom_node,"clock_value",0); in myri_ether_init()
927 mp->eeprom.ramsz = prom_getintdefault(sdev->prom_node,"sram_size",0); in myri_ether_init()
928 DET(("cpuvers[%d] cval[%d] ramsz[%d]\n", mp->eeprom.cpuvers, in myri_ether_init()
929 mp->eeprom.cval, mp->eeprom.ramsz)); in myri_ether_init()
930 if (mp->eeprom.cpuvers == 0) { in myri_ether_init()
932 mp->eeprom.cpuvers = CPUVERS_2_3; in myri_ether_init()
934 if (mp->eeprom.cpuvers < CPUVERS_3_0) { in myri_ether_init()
936 mp->eeprom.cval = 0; in myri_ether_init()
938 if (mp->eeprom.ramsz == 0) { in myri_ether_init()
940 mp->eeprom.ramsz = (128 * 1024); in myri_ether_init()
946 memcpy(&mp->eeprom.id[0], &prop_buf[0], 6); in myri_ether_init()
950 &mp->eeprom.fvers[0], 32); in myri_ether_init()
953 memset(&mp->eeprom.fvers[0], 0, 32); in myri_ether_init()
955 if (mp->eeprom.cpuvers == CPUVERS_4_1) { in myri_ether_init()
957 if (mp->eeprom.ramsz == (128 * 1024)) { in myri_ether_init()
959 mp->eeprom.ramsz = (256 * 1024); in myri_ether_init()
961 if ((mp->eeprom.cval==0x40414041)||(mp->eeprom.cval==0x90449044)){ in myri_ether_init()
963 mp->eeprom.cval, 0x50e450e4)); in myri_ether_init()
964 mp->eeprom.cval = 0x50e450e4; in myri_ether_init()
975 dev->dev_addr[i] = mp->eeprom.id[i], in myri_ether_init()
982 if (mp->eeprom.cpuvers < CPUVERS_4_0) { in myri_ether_init()
1005 mp->eeprom.ramsz, "MyriCOM SRAM"); in myri_ether_init()
1011 if (mp->eeprom.cpuvers >= CPUVERS_4_0) in myri_ether_init()