Lines Matching refs:sio_data

2425 			    struct it87_sio_data *sio_data, int chip_cnt)  in it87_find()  argument
2450 sio_data->type = it87; in it87_find()
2453 sio_data->type = it8712; in it87_find()
2457 sio_data->type = it8716; in it87_find()
2460 sio_data->type = it8718; in it87_find()
2463 sio_data->type = it8720; in it87_find()
2466 sio_data->type = it8721; in it87_find()
2469 sio_data->type = it8728; in it87_find()
2472 sio_data->type = it8732; in it87_find()
2475 sio_data->type = it8792; in it87_find()
2478 sio_data->type = it8771; in it87_find()
2481 sio_data->type = it8772; in it87_find()
2484 sio_data->type = it8781; in it87_find()
2487 sio_data->type = it8782; in it87_find()
2490 sio_data->type = it8783; in it87_find()
2493 sio_data->type = it8786; in it87_find()
2496 sio_data->type = it8790; in it87_find()
2500 sio_data->type = it8603; in it87_find()
2503 sio_data->type = it8620; in it87_find()
2506 sio_data->type = it8622; in it87_find()
2509 sio_data->type = it8628; in it87_find()
2512 sio_data->type = it87952; in it87_find()
2521 config = &it87_devices[sio_data->type]; in it87_find()
2538 sio_data->sioaddr = sioaddr; in it87_find()
2539 sio_data->revision = superio_inb(sioaddr, DEVREV) & 0x0f; in it87_find()
2541 it87_devices[sio_data->type].model, in it87_find()
2542 *address, sio_data->revision); in it87_find()
2546 sio_data->internal |= BIT(1); in it87_find()
2549 sio_data->internal |= BIT(2); in it87_find()
2553 sio_data->internal |= BIT(3); /* in9 is AVCC */ in it87_find()
2555 sio_data->skip_in |= BIT(9); in it87_find()
2558 sio_data->skip_pwm |= BIT(3) | BIT(4) | BIT(5); in it87_find()
2560 sio_data->skip_pwm |= BIT(5); in it87_find()
2563 sio_data->skip_vid = 1; in it87_find()
2566 if (sio_data->type == it87) { in it87_find()
2569 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2571 } else if (sio_data->type == it8783) { in it87_find()
2584 sio_data->skip_fan |= BIT(2); in it87_find()
2587 sio_data->skip_pwm |= BIT(2); in it87_find()
2591 sio_data->skip_fan |= BIT(1); in it87_find()
2593 sio_data->skip_pwm |= BIT(1); in it87_find()
2597 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2601 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2625 sio_data->need_in7_reroute = true; in it87_find()
2633 sio_data->internal |= BIT(0); in it87_find()
2635 sio_data->internal |= BIT(1); in it87_find()
2637 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2639 } else if (sio_data->type == it8603) { in it87_find()
2648 sio_data->skip_pwm |= BIT(2); in it87_find()
2650 sio_data->skip_fan |= BIT(2); in it87_find()
2655 sio_data->skip_pwm |= BIT(1); in it87_find()
2657 sio_data->skip_fan |= BIT(1); in it87_find()
2659 sio_data->skip_in |= BIT(5); /* No VIN5 */ in it87_find()
2660 sio_data->skip_in |= BIT(6); /* No VIN6 */ in it87_find()
2662 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2664 } else if (sio_data->type == it8620 || sio_data->type == it8628) { in it87_find()
2672 sio_data->skip_pwm |= BIT(4); in it87_find()
2677 sio_data->skip_fan |= BIT(3); in it87_find()
2679 sio_data->skip_fan |= BIT(4); in it87_find()
2684 sio_data->skip_pwm |= BIT(2); in it87_find()
2686 sio_data->skip_fan |= BIT(2); in it87_find()
2691 sio_data->skip_pwm |= BIT(3); in it87_find()
2696 sio_data->skip_pwm |= BIT(1); in it87_find()
2698 sio_data->skip_fan |= BIT(1); in it87_find()
2701 sio_data->skip_pwm |= BIT(5); in it87_find()
2702 sio_data->skip_fan |= BIT(5); in it87_find()
2708 sio_data->internal |= BIT(0); in it87_find()
2710 sio_data->skip_in |= BIT(9); in it87_find()
2712 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2714 } else if (sio_data->type == it8622) { in it87_find()
2722 sio_data->skip_fan |= BIT(3); in it87_find()
2724 sio_data->skip_pwm |= BIT(3); in it87_find()
2729 sio_data->skip_pwm |= BIT(2); in it87_find()
2731 sio_data->skip_fan |= BIT(2); in it87_find()
2733 sio_data->skip_pwm |= BIT(4); in it87_find()
2735 sio_data->skip_fan |= BIT(4); in it87_find()
2740 sio_data->skip_pwm |= BIT(1); in it87_find()
2742 sio_data->skip_fan |= BIT(1); in it87_find()
2747 sio_data->skip_in |= BIT(9); in it87_find()
2749 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2760 switch (sio_data->type) { in it87_find()
2763 sio_data->skip_fan |= BIT(3); in it87_find()
2765 sio_data->skip_fan |= BIT(4); in it87_find()
2771 sio_data->skip_fan |= BIT(3); in it87_find()
2773 sio_data->skip_fan |= BIT(4); in it87_find()
2781 if (!sio_data->skip_vid) { in it87_find()
2785 sio_data->skip_vid = 1; in it87_find()
2791 sio_data->skip_pwm |= BIT(2); in it87_find()
2793 sio_data->skip_fan |= BIT(2); in it87_find()
2798 sio_data->skip_pwm |= BIT(1); in it87_find()
2800 sio_data->skip_fan |= BIT(1); in it87_find()
2802 if ((sio_data->type == it8718 || sio_data->type == it8720) && in it87_find()
2803 !(sio_data->skip_vid)) in it87_find()
2804 sio_data->vid_value = superio_inb(sioaddr, in it87_find()
2809 uart6 = sio_data->type == it8782 && (reg & BIT(2)); in it87_find()
2825 if ((sio_data->type == it8720 || uart6) && !(reg & BIT(1))) { in it87_find()
2828 sio_data->need_in7_reroute = true; in it87_find()
2832 sio_data->internal |= BIT(0); in it87_find()
2834 sio_data->internal |= BIT(1); in it87_find()
2846 sio_data->skip_in |= BIT(5) | BIT(6); in it87_find()
2847 sio_data->skip_temp |= BIT(2); in it87_find()
2850 sio_data->beep_pin = superio_inb(sioaddr, in it87_find()
2853 if (sio_data->beep_pin) in it87_find()
2858 sio_data->skip_pwm |= dmi_data->skip_pwm; in it87_find()
2903 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_check_tachometers_reset() local
2907 mask = 0x70 & ~(sio_data->skip_fan << 4); in it87_check_tachometers_reset()
2945 struct it87_sio_data *sio_data = dev_get_platdata(&pdev->dev); in it87_init_device() local
2999 data->has_fan &= ~sio_data->skip_fan; in it87_init_device()
3006 sio_data->skip_pwm |= BIT(4); in it87_init_device()
3008 sio_data->skip_pwm |= BIT(5); in it87_init_device()
3075 struct it87_sio_data *sio_data = dev_get_platdata(dev); in it87_probe() local
3093 data->sioaddr = sio_data->sioaddr; in it87_probe()
3094 data->type = sio_data->type; in it87_probe()
3095 data->features = it87_devices[sio_data->type].features; in it87_probe()
3096 data->peci_mask = it87_devices[sio_data->type].peci_mask; in it87_probe()
3097 data->old_peci_mask = it87_devices[sio_data->type].old_peci_mask; in it87_probe()
3105 if (sio_data->revision >= 0x03) { in it87_probe()
3111 if (sio_data->revision >= 0x08) { in it87_probe()
3138 if (sio_data->internal & BIT(0)) in it87_probe()
3140 if (sio_data->internal & BIT(1)) in it87_probe()
3142 if (sio_data->internal & BIT(2)) in it87_probe()
3144 if (sio_data->internal & BIT(3)) in it87_probe()
3146 } else if (sio_data->type == it8781 || sio_data->type == it8782 || in it87_probe()
3147 sio_data->type == it8783) { in it87_probe()
3148 if (sio_data->internal & BIT(0)) in it87_probe()
3150 if (sio_data->internal & BIT(1)) in it87_probe()
3155 if (sio_data->skip_temp & BIT(2)) { in it87_probe()
3156 if (sio_data->type == it8782 && in it87_probe()
3161 data->in_internal = sio_data->internal; in it87_probe()
3162 data->need_in7_reroute = sio_data->need_in7_reroute; in it87_probe()
3163 data->has_in = 0x3ff & ~sio_data->skip_in; in it87_probe()
3185 data->has_beep = !!sio_data->beep_pin; in it87_probe()
3190 if (!sio_data->skip_vid) { in it87_probe()
3194 data->vid = sio_data->vid_value; in it87_probe()
3205 data->has_pwm &= ~sio_data->skip_pwm; in it87_probe()
3213 it87_devices[sio_data->type].name, in it87_probe()
3288 const struct it87_sio_data *sio_data) in it87_device_add() argument
3315 err = platform_device_add_data(pdev, sio_data, in it87_device_add()
3427 struct it87_sio_data sio_data; in sm_it87_init() local
3439 memset(&sio_data, 0, sizeof(struct it87_sio_data)); in sm_it87_init()
3441 err = it87_find(sioaddr[i], &isa_address[i], &sio_data, i); in sm_it87_init()
3451 err = it87_device_add(i, isa_address[i], &sio_data); in sm_it87_init()
3461 if (sio_data.type == it87) in sm_it87_init()