blob: 7be7d55bc49ea9e92c674ef256f075b6fafb50bb [file] [log] [blame]
Lidza Louina0b99d582013-08-01 17:00:20 -04001/*
2 * Copyright 2003 Digi International (www.digi.com)
3 * Scott H Kilau <Scott_Kilau at digi dot com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the
12 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 * PURPOSE. See the GNU General Public License for more details.
Lidza Louina0b99d582013-08-01 17:00:20 -040014 */
15
16#ifndef __DGNC_SYSFS_H
17#define __DGNC_SYSFS_H
18
Lidza Louina0b99d582013-08-01 17:00:20 -040019#include <linux/device.h>
Giedrius Statkevičiusc754ff92015-03-13 15:56:35 +020020#include "dgnc_driver.h"
Lidza Louina0b99d582013-08-01 17:00:20 -040021
Lidza Louina03425f52013-09-09 15:01:22 -040022struct dgnc_board;
Lidza Louina0b99d582013-08-01 17:00:20 -040023struct channel_t;
24struct un_t;
25struct pci_driver;
26struct class_device;
27
Joe Perches35bb99b2015-08-10 14:51:17 -070028void dgnc_create_ports_sysfiles(struct dgnc_board *bd);
29void dgnc_remove_ports_sysfiles(struct dgnc_board *bd);
Lidza Louina0b99d582013-08-01 17:00:20 -040030
Joe Perches35bb99b2015-08-10 14:51:17 -070031void dgnc_create_driver_sysfiles(struct pci_driver *);
32void dgnc_remove_driver_sysfiles(struct pci_driver *);
Lidza Louina0b99d582013-08-01 17:00:20 -040033
Joe Perches35bb99b2015-08-10 14:51:17 -070034int dgnc_tty_class_init(void);
35int dgnc_tty_class_destroy(void);
Lidza Louina0b99d582013-08-01 17:00:20 -040036
Joe Perches35bb99b2015-08-10 14:51:17 -070037void dgnc_create_tty_sysfs(struct un_t *un, struct device *c);
38void dgnc_remove_tty_sysfs(struct device *c);
Lidza Louina0b99d582013-08-01 17:00:20 -040039
Lidza Louina0b99d582013-08-01 17:00:20 -040040#endif