Kyle Swenson | 7900a3c | 2021-08-12 14:34:44 -0600 | [diff] [blame] | 1 | /* |
| 2 | * ./kernel_modules/pse/pse-sysfs.h |
| 3 | * |
| 4 | * sysfs interface for the pse-class driver |
| 5 | * |
| 6 | * Author: Cradlepoint Technology, Inc. <source@cradlepoint.com> |
| 7 | * Kyle Swenson <kswenson@cradlepoint.com> |
| 8 | * |
| 9 | * Copyright 2019 Cradlepoint Technology, Inc. |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License version 2 |
| 13 | * as published by the Free Software Foundation. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | */ |
| 21 | #ifndef __PSE_SYSFS_H__ |
| 22 | #define __PSE_SYSFS_H__ |
| 23 | extern const struct attribute_group *pse_port_dev_attr_groups[]; |
| 24 | extern uint16_t pse_port_current_table[]; |
| 25 | extern uint32_t pse_port_power_table[]; |
| 26 | |
| 27 | void pse_class_sysfs_close(struct class *class); |
| 28 | int pse_class_sysfs_init(struct class *class); |
| 29 | void pse_port_sysfs_close(struct pse_port_device *port); |
| 30 | int pse_port_sysfs_init(struct pse_port_device *port); |
| 31 | |
| 32 | |
| 33 | #endif |