/* * include/linux/platform_data/pwm_fan.h * * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef _PWM_FAN_H_ #define _PWM_FAN_H_ #define MAX_ACTIVE_STATES 10 struct pwm_fan_platform_data { int active_steps; int active_rpm[MAX_ACTIVE_STATES]; int active_pwm[MAX_ACTIVE_STATES]; int active_rru[MAX_ACTIVE_STATES]; int active_rrd[MAX_ACTIVE_STATES]; int state_cap_lookup[MAX_ACTIVE_STATES]; int pwm_period; int pwm_id; int step_time; int precision_multiplier; int tach_gpio; int state_cap; }; #endif