summaryrefslogtreecommitdiffstats
path: root/tools/serial_probe/serial.h
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-04-07 14:43:04 +0000
committerFrancois Pons <fpons@mandriva.com>2000-04-07 14:43:04 +0000
commit1800d14ff9ac6dd218d274b6b4e13e3e71baecc4 (patch)
tree4a915815837bb688748bcefaaef31e1dce35fcac /tools/serial_probe/serial.h
parentfe2f11d05f38a658db90c75ce73dbe87bfb84a64 (diff)
downloaddrakx-1800d14ff9ac6dd218d274b6b4e13e3e71baecc4.tar
drakx-1800d14ff9ac6dd218d274b6b4e13e3e71baecc4.tar.gz
drakx-1800d14ff9ac6dd218d274b6b4e13e3e71baecc4.tar.bz2
drakx-1800d14ff9ac6dd218d274b6b4e13e3e71baecc4.tar.xz
drakx-1800d14ff9ac6dd218d274b6b4e13e3e71baecc4.zip
*** empty log message ***
Diffstat (limited to 'tools/serial_probe/serial.h')
-rw-r--r--tools/serial_probe/serial.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/tools/serial_probe/serial.h b/tools/serial_probe/serial.h
new file mode 100644
index 000000000..75d178ce9
--- /dev/null
+++ b/tools/serial_probe/serial.h
@@ -0,0 +1,43 @@
+/* Copyright 1999 Red Hat, Inc.
+ *
+ * This software may be freely redistributed under the terms of the GNU
+ * public license.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ */
+
+#ifndef _KUDZU_SERIAL_H_
+#define _KUDZU_SERIAL_H_
+
+#include "device.h"
+
+struct serialDevice {
+ /* common fields */
+ struct device *next; /* next device in list */
+ int index;
+ enum deviceClass class; /* type */
+ enum deviceBus bus; /* bus it's attached to */
+ char * device; /* device file associated with it */
+ char * driver; /* driver to load, if any */
+ char * desc; /* a description */
+ int detached;
+ /* serial-specific fields */
+ struct serialDevice *(*newDevice) (struct serialDevice *dev);
+ void (*freeDevice) (struct serialDevice *dev);
+ void (*writeDevice) (FILE *file, struct serialDevice *dev);
+ int (*compareDevice) (struct serialDevice *dev1, struct serialDevice *dev2);
+ char * pnpmfr;
+ char * pnpmodel;
+ char * pnpcompat;
+ char * pnpdesc;
+
+};
+
+struct serialDevice *serialNewDevice(struct serialDevice *dev);
+struct device *serialProbe(enum deviceClass probeClass, int probeFlags,
+ struct device *devlist);
+
+#endif