1#ifndef _DEVICES_H_
2#define _DEVICES_H_
3
4#include "kpppconfig.h"
5
6static const char *devices[] = {
7#ifdef __FreeBSD__
8#if __FreeBSD_version > 600004
9 "/dev/cuad0",
10 "/dev/cuad1",
11 "/dev/cuad2",
12 "/dev/cuad3",
13 "/dev/cuad4",
14#else
15 "/dev/cuaa0",
16 "/dev/cuaa1",
17 "/dev/cuaa2",
18 "/dev/cuaa3",
19 "/dev/cuaa4",
20#endif
21#elif defined(__NetBSD__)
22 "/dev/tty00", /* "normal" modem lines */
23 "/dev/tty01",
24 "/dev/tty02",
25 "/dev/tty03",
26 "/dev/dty00", /* Dial out devices */
27 "/dev/dty01",
28 "/dev/dty02",
29 "/dev/dty03",
30 "/dev/ttyU0", /* USB stuff modems */
31 "/dev/ttyU1",
32 "/dev/ttyU2",
33 "/dev/ttyU3",
34 "/dev/dtyU0", /* USB stuff, too (dial out device) */
35 "/dev/dtyU1",
36 "/dev/dtyU2",
37 "/dev/dtyU3",
38#elif defined (__linux__)
39 "/dev/modem",
40 "/dev/ttyS0",
41 "/dev/ttyS1",
42 "/dev/ttyS2",
43 "/dev/ttyS3",
44 "/dev/ttyS4",
45 "/dev/noz0", /* 3G/UMTS modems using nozomi driver */
46 "/dev/noz1",
47 "/dev/noz2",
48 "/dev/noz3",
49#ifdef ISDNSUPPORT
50 "/dev/ttyI0",
51 "/dev/ttyI1",
52 "/dev/ttyI2",
53 "/dev/ttyI3",
54#endif
55 "/dev/usb/ttyACM0", /* USB stuff modems */
56 "/dev/usb/ttyACM1",
57 "/dev/usb/ttyACM2",
58 "/dev/usb/ttyACM3",
59 "/dev/usb/ttyUSB0", /* USB stuff modems */
60 "/dev/usb/ttyUSB1",
61 "/dev/usb/ttyUSB2",
62 "/dev/usb/ttyUSB3",
63 "/dev/ttyACM0", /* USB stuff modems with udev */
64 "/dev/ttyACM1",
65 "/dev/ttyACM2",
66 "/dev/ttyACM3",
67 "/dev/ttyUSB0",
68 "/dev/ttyUSB1",
69 "/dev/ttyUSB2",
70 "/dev/ttyUSB3",
71 "/dev/usb/tts/0", /* USB stuff modems with devfs*/
72 "/dev/usb/tts/1",
73 "/dev/usb/tts/2",
74 "/dev/usb/tts/3",
75 "/dev/rfcomm0", /* BlueTooth */
76 "/dev/rfcomm1",
77 "/dev/rfcomm2",
78 "/dev/rfcomm3",
79 "/dev/ircomm0", /* IrDA */
80 "/dev/ircomm1",
81 "/dev/ircomm2",
82 "/dev/ircomm3",
83 "/dev/ttySL0", /* necessary for slmodem driver http://www.smlink.com*/
84 "/dev/ttySL1",
85 "/dev/ttySL2",
86 "/dev/ttySL3",
87 "/dev/ttySHSF0",
88 "/dev/ttySHSF1",
89 "/dev/ttySHSF2",
90 "/dev/ttySHSF3", /* necessary for conexant modem which use hsfserial commercial module */
91#elif defined(__SVR4)
92 "/dev/cua/a",
93 "/dev/cua/b",
94 "/dev/ttya",
95 "/dev/ttyb",
96#endif
97 0};
98
99// default device number from the list above
100const int DEV_DEFAULT = 0;
101
102#endif
103